Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001001/0.001001, allocations: 202.8 kB / 18.07 MB, free: 3.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.254/1.254, allocations: 226.5 MB / 245.3 MB, free: 6.477 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008407/0.0008406, allocations: 101 kB / 297.4 MB, free: 6.684 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002468/0.0002468, allocations: 4 kB / 357.4 MB, free: 10.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2195/0.2197, allocations: 51.3 MB / 408.7 MB, free: 27.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09947/0.3193, allocations: 78.3 MB / 487 MB, free: 13.29 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002373/0.3196, allocations: 72.5 kB / 487 MB, free: 13.22 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006164/0.3258, allocations: 2.277 MB / 489.3 MB, free: 10.96 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.665e-06/0.3258, allocations: 0 / 489.3 MB, free: 10.96 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.065e-05/0.3258, allocations: 4 kB / 489.3 MB, free: 10.95 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.0004842/0.3263, allocations: 399.4 kB / 489.7 MB, free: 10.51 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.918e-05/0.3264, allocations: 8.031 kB / 489.7 MB, free: 10.5 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.071e-05/0.3264, allocations: 16.78 kB / 489.7 MB, free: 10.49 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000169/0.3266, allocations: 196.1 kB / 489.9 MB, free: 10.26 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.361e-05/0.3266, allocations: 8.562 kB / 489.9 MB, free: 10.25 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.878e-05/0.3266, allocations: 16.28 kB / 489.9 MB, free: 10.23 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002576/0.3269, allocations: 127 kB / 490.1 MB, free: 10.1 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.204e-05/0.3269, allocations: 0 / 490.1 MB, free: 10.1 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.3e-05/0.3269, allocations: 0 / 490.1 MB, free: 10.1 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.831e-06/0.327, allocations: 4 kB / 490.1 MB, free: 10.1 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002196/0.3272, allocations: 91.81 kB / 490.2 MB, free: 10.01 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006726/0.3279, allocations: 0.5325 MB / 490.7 MB, free: 9.41 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001917/0.3281, allocations: 98.52 kB / 490.8 MB, free: 9.305 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001123/0.3282, allocations: 44.83 kB / 490.8 MB, free: 9.258 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.401e-05/0.3282, allocations: 0 / 490.8 MB, free: 9.258 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.006e-05/0.3282, allocations: 30.56 kB / 490.9 MB, free: 9.219 MB / 362.7 MB Notification: Performance of pre-optimization done (n=7): time 2.254e-06/0.3283, allocations: 0 / 490.9 MB, free: 9.219 MB / 362.7 MB Notification: Performance of matching and sorting (n=7): time 0.0003939/0.3287, allocations: 141.5 kB / 491 MB, free: 9.074 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.782e-05/0.3287, allocations: 55.39 kB / 491.1 MB, free: 9.008 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.603e-05/0.3288, allocations: 121.8 kB / 491.2 MB, free: 8.879 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.19e-05/0.3288, allocations: 29.7 kB / 491.2 MB, free: 8.844 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.09e-05/0.3289, allocations: 111.8 kB / 491.3 MB, free: 8.73 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.129e-05/0.3289, allocations: 27.64 kB / 491.3 MB, free: 8.703 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.612e-06/0.3289, allocations: 4 kB / 491.3 MB, free: 8.699 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.749e-05/0.329, allocations: 322.8 kB / 491.7 MB, free: 8.375 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001054/0.3291, allocations: 31.98 kB / 491.7 MB, free: 8.344 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001167/0.3292, allocations: 80.19 kB / 491.8 MB, free: 8.25 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002191/0.3294, allocations: 109.5 kB / 491.9 MB, free: 8.129 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.3295, allocations: 3.938 kB / 491.9 MB, free: 8.125 MB / 362.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002855/0.3298, allocations: 149.4 kB / 492 MB, free: 7.973 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.43e-05/0.3298, allocations: 8 kB / 492 MB, free: 7.965 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.528e-06/0.3298, allocations: 0 / 492 MB, free: 7.965 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.142e-05/0.3298, allocations: 0 / 492 MB, free: 7.965 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001786/0.33, allocations: 35.97 kB / 492.1 MB, free: 7.93 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.825e-06/0.33, allocations: 7.875 kB / 492.1 MB, free: 7.922 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.83e-05/0.3301, allocations: 20.03 kB / 492.1 MB, free: 7.902 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.856e-06/0.3301, allocations: 4.094 kB / 492.1 MB, free: 7.898 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.704e-05/0.3302, allocations: 129.7 kB / 492.2 MB, free: 7.762 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.871e-05/0.3302, allocations: 11.89 kB / 492.2 MB, free: 7.75 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.278e-05/0.3303, allocations: 8.375 kB / 492.2 MB, free: 7.742 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-06/0.3303, allocations: 0 / 492.2 MB, free: 7.742 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.3303, allocations: 4 kB / 492.2 MB, free: 7.738 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-06/0.3303, allocations: 4 kB / 492.3 MB, free: 7.734 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000177/0.3305, allocations: 201.7 kB / 492.4 MB, free: 7.488 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.3305, allocations: 0 / 492.4 MB, free: 7.488 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001396/0.3306, allocations: 19.98 kB / 492.5 MB, free: 7.469 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.709e-06/0.3306, allocations: 4 kB / 492.5 MB, free: 7.465 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.267e-05/0.3306, allocations: 4 kB / 492.5 MB, free: 7.461 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.3307, allocations: 3.938 kB / 492.5 MB, free: 7.457 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.3307, allocations: 0 / 492.5 MB, free: 7.457 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003835/0.331, allocations: 247.6 kB / 492.7 MB, free: 7.199 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.774e-05/0.3311, allocations: 85.05 kB / 492.8 MB, free: 7.098 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.935e-05/0.3311, allocations: 8 kB / 492.8 MB, free: 7.09 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.031e-05/0.3312, allocations: 4 kB / 492.8 MB, free: 7.086 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.236e-05/0.3313, allocations: 11.98 kB / 492.8 MB, free: 7.074 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.659e-06/0.3313, allocations: 0 / 492.8 MB, free: 7.074 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.313e-05/0.3313, allocations: 98.36 kB / 492.9 MB, free: 6.98 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3313, allocations: 0 / 492.9 MB, free: 6.98 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002382/0.3316, allocations: 27.94 kB / 493 MB, free: 6.953 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (load.phi,load.w,PI.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001056/0.3317, allocations: 103.2 kB / 493.1 MB, free: 6.84 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002711/0.332, allocations: 103.9 kB / 493.2 MB, free: 6.738 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.332, allocations: 0 / 493.2 MB, free: 6.738 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001026/0.3321, allocations: 40.22 kB / 493.2 MB, free: 6.699 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000333/0.3324, allocations: 22.25 kB / 493.2 MB, free: 6.68 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006508/0.3331, allocations: 478.1 kB / 493.7 MB, free: 6.176 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002163/0.3333, allocations: 0.6965 MB / 494.4 MB, free: 5.453 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.155e-05/0.3334, allocations: 15.44 kB / 494.4 MB, free: 5.438 MB / 362.7 MB Notification: Performance of SimCode: time 2.31e-07/0.3334, allocations: 0 / 494.4 MB, free: 5.438 MB / 362.7 MB Notification: Performance of Templates: time 0.002466/0.3358, allocations: 1.244 MB / 495.6 MB, free: 4.195 MB / 362.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/Continuous/Continuous.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches