Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009384/0.0009384, allocations: 175.5 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.36/1.36, allocations: 221.3 MB / 235.5 MB, free: 2.953 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008034/0.0008034, allocations: 93.89 kB / 286.5 MB, free: 228 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.395e-05/2.398e-05, allocations: 7.984 kB / 343.8 MB, free: 4.316 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08119/0.08123, allocations: 50.41 MB / 394.2 MB, free: 1.867 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2711/0.3523, allocations: 77.49 MB / 471.7 MB, free: 10.07 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001706/0.3525, allocations: 75.78 kB / 471.8 MB, free: 10 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005759/0.3583, allocations: 2.213 MB / 474 MB, free: 7.801 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.3583, allocations: 2.625 kB / 474 MB, free: 7.801 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.13e-05/0.3583, allocations: 4 kB / 474 MB, free: 7.797 MB / 346.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.0004144/0.3588, allocations: 383.1 kB / 474.4 MB, free: 7.375 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.513e-05/0.3588, allocations: 12.03 kB / 474.4 MB, free: 7.363 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.99e-05/0.3589, allocations: 15.86 kB / 474.4 MB, free: 7.348 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001901/0.3591, allocations: 194.8 kB / 474.6 MB, free: 7.117 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.212e-05/0.3591, allocations: 4.188 kB / 474.6 MB, free: 7.113 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.582e-05/0.3591, allocations: 8 kB / 474.6 MB, free: 7.105 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001892/0.3593, allocations: 107.7 kB / 474.7 MB, free: 6.992 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.233e-05/0.3593, allocations: 0 / 474.7 MB, free: 6.992 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.462e-05/0.3593, allocations: 4 kB / 474.7 MB, free: 6.988 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.843e-06/0.3594, allocations: 11.95 kB / 474.7 MB, free: 6.977 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.946e-05/0.3595, allocations: 47.92 kB / 474.8 MB, free: 6.93 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006599/0.3601, allocations: 0.5402 MB / 475.3 MB, free: 6.32 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001175/0.3603, allocations: 70.61 kB / 475.4 MB, free: 6.242 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.709e-05/0.3603, allocations: 24.86 kB / 475.4 MB, free: 6.215 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.477e-05/0.3603, allocations: 3.938 kB / 475.4 MB, free: 6.211 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.215e-05/0.3604, allocations: 38.56 kB / 475.5 MB, free: 6.164 MB / 346.7 MB Notification: Performance of pre-optimization done (n=7): time 2.615e-06/0.3604, allocations: 0 / 475.5 MB, free: 6.164 MB / 346.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001616/0.3605, allocations: 74.53 kB / 475.5 MB, free: 6.086 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.561e-05/0.3606, allocations: 51.41 kB / 475.6 MB, free: 6.023 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.273e-05/0.3607, allocations: 122.6 kB / 475.7 MB, free: 5.898 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.247e-05/0.3607, allocations: 25.7 kB / 475.7 MB, free: 5.867 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.738e-05/0.3607, allocations: 111.8 kB / 475.8 MB, free: 5.754 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.54e-05/0.3608, allocations: 31.55 kB / 475.9 MB, free: 5.723 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.248e-06/0.3608, allocations: 0 / 475.9 MB, free: 5.723 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.144e-05/0.3609, allocations: 322.8 kB / 476.2 MB, free: 5.398 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.871e-05/0.3609, allocations: 20 kB / 476.2 MB, free: 5.379 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.971e-05/0.361, allocations: 56.22 kB / 476.3 MB, free: 5.309 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.858e-05/0.361, allocations: 20 kB / 476.3 MB, free: 5.289 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.361, allocations: 8 kB / 476.3 MB, free: 5.281 MB / 346.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001578/0.3612, allocations: 109.5 kB / 476.4 MB, free: 5.168 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.364e-05/0.3612, allocations: 8 kB / 476.4 MB, free: 5.16 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.138e-06/0.3612, allocations: 0 / 476.4 MB, free: 5.16 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.182e-05/0.3613, allocations: 4 kB / 476.4 MB, free: 5.156 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001653/0.3614, allocations: 31.92 kB / 476.4 MB, free: 5.125 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.227e-06/0.3614, allocations: 7.953 kB / 476.4 MB, free: 5.117 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.421e-05/0.3615, allocations: 28.05 kB / 476.5 MB, free: 5.09 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.378e-06/0.3615, allocations: 4 kB / 476.5 MB, free: 5.086 MB / 346.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 () * 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 5.89e-05/0.3616, allocations: 105 kB / 476.6 MB, free: 4.977 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.866e-05/0.3616, allocations: 7.906 kB / 476.6 MB, free: 4.969 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.412e-05/0.3617, allocations: 16.61 kB / 476.6 MB, free: 4.953 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.422e-06/0.3617, allocations: 0 / 476.6 MB, free: 4.953 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/0.3617, allocations: 0 / 476.6 MB, free: 4.953 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.3617, allocations: 3.953 kB / 476.6 MB, free: 4.949 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002112/0.3619, allocations: 205.7 kB / 476.8 MB, free: 4.699 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.3619, allocations: 0 / 476.8 MB, free: 4.699 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001439/0.3621, allocations: 27.92 kB / 476.8 MB, free: 4.672 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.953e-06/0.3621, allocations: 0 / 476.8 MB, free: 4.672 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.157e-06/0.3621, allocations: 0 / 476.8 MB, free: 4.672 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.3621, allocations: 0 / 476.8 MB, free: 4.672 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.3621, allocations: 4.094 kB / 476.8 MB, free: 4.668 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001968/0.3623, allocations: 203.4 kB / 477 MB, free: 4.453 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.8e-05/0.3624, allocations: 89.05 kB / 477.1 MB, free: 4.348 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.658e-05/0.3624, allocations: 0 / 477.1 MB, free: 4.348 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.957e-05/0.3625, allocations: 11.94 kB / 477.1 MB, free: 4.336 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.325e-05/0.3625, allocations: 7.984 kB / 477.1 MB, free: 4.328 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.446e-06/0.3626, allocations: 4 kB / 477.1 MB, free: 4.324 MB / 346.7 MB Notification: Performance of sorting global known variables: time 4.634e-05/0.3626, allocations: 99.86 kB / 477.2 MB, free: 4.227 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3626, allocations: 0 / 477.2 MB, free: 4.227 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002217/0.3628, allocations: 23.98 kB / 477.3 MB, free: 4.203 MB / 346.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 () * 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.0001007/0.363, allocations: 109.7 kB / 477.4 MB, free: 4.09 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001195/0.3631, allocations: 55.92 kB / 477.4 MB, free: 4.035 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.3631, allocations: 0 / 477.4 MB, free: 4.035 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 4.049e-05/0.3631, allocations: 24 kB / 477.5 MB, free: 4.012 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002238/0.3634, allocations: 19.92 kB / 477.5 MB, free: 3.992 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004603/0.3638, allocations: 260.1 kB / 477.7 MB, free: 3.711 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002031/0.364, allocations: 0.7121 MB / 478.4 MB, free: 2.973 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 4.361e-05/0.3641, allocations: 12.41 kB / 478.5 MB, free: 2.961 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.572e-05/0.3641, allocations: 11.44 kB / 478.5 MB, free: 2.949 MB / 346.7 MB Notification: Performance of SimCode: time 3.3e-07/0.3641, allocations: 0 / 478.5 MB, free: 2.949 MB / 346.7 MB Notification: Performance of Templates: time 0.002652/0.3668, allocations: 0.851 MB / 479.3 MB, free: 2.109 MB / 346.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/Continuous/Continuous.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches