Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator") translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00148/0.00148, allocations: 122.1 kB / 17.79 MB, free: 5.227 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001732/0.001732, allocations: 205.2 kB / 18.73 MB, free: 4.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.415/1.415, allocations: 227.4 MB / 246.9 MB, free: 10.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2168/0.2168, allocations: 46.1 MB / 344.3 MB, free: 11.47 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001445/0.001445, allocations: 75.88 kB / 481.3 MB, free: 4.066 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3364/0.3379, allocations: 62.45 MB / 0.531 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.002568/0.3405, allocations: 1.636 MB / 0.5326 GB, free: 12.32 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001/0.3415, allocations: 0.5904 MB / 0.5332 GB, free: 11.85 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.103e-05/0.3416, allocations: 5.188 kB / 0.5332 GB, free: 11.84 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000114/0.3418, allocations: 17.27 kB / 0.5332 GB, free: 11.83 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.427e-05/0.3418, allocations: 9.031 kB / 0.5332 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003287/0.3421, allocations: 84.25 kB / 0.5333 GB, free: 11.76 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001794/0.3423, allocations: 113.1 kB / 0.5334 GB, free: 11.69 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001374/0.3425, allocations: 32.34 kB / 0.5334 GB, free: 11.67 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.541e-05/0.3426, allocations: 48.39 kB / 0.5335 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.235e-05/0.3427, allocations: 41.39 kB / 0.5335 GB, free: 11.61 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.728e-05/0.3427, allocations: 8.25 kB / 0.5335 GB, free: 11.61 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.759e-05/0.3427, allocations: 6.875 kB / 0.5335 GB, free: 11.61 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.094e-05/0.3428, allocations: 27.98 kB / 0.5335 GB, free: 11.59 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.696e-05/0.3428, allocations: 36.05 kB / 0.5336 GB, free: 11.56 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001431/0.343, allocations: 92.06 kB / 0.5337 GB, free: 11.49 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.343, allocations: 0 / 0.5337 GB, free: 11.49 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.343, allocations: 4 kB / 0.5337 GB, free: 11.49 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.061e-06/0.343, allocations: 1.375 kB / 0.5337 GB, free: 11.49 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0006425/0.3436, allocations: 410.2 kB / 0.5341 GB, free: 11.08 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.268e-05/0.3437, allocations: 8.25 kB / 0.5341 GB, free: 11.08 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.457e-05/0.3437, allocations: 10.34 kB / 0.5341 GB, free: 11.08 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002535/0.344, allocations: 213.8 kB / 0.5343 GB, free: 10.84 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.866e-05/0.344, allocations: 8.5 kB / 0.5343 GB, free: 10.84 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.671e-05/0.3441, allocations: 5.875 kB / 0.5343 GB, free: 10.84 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002843/0.3443, allocations: 103.1 kB / 0.5344 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.406e-06/0.3444, allocations: 0 / 0.5344 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.513e-05/0.3444, allocations: 5.375 kB / 0.5344 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.959e-06/0.3444, allocations: 1.375 kB / 0.5344 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001604/0.3446, allocations: 50.22 kB / 0.5344 GB, free: 10.75 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006777/0.3453, allocations: 387.6 kB / 0.5348 GB, free: 10.38 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003409/0.3456, allocations: 103.3 kB / 0.5349 GB, free: 10.32 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001158/0.3457, allocations: 39.38 kB / 0.5349 GB, free: 10.3 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.36e-05/0.3458, allocations: 5.031 kB / 0.5349 GB, free: 10.3 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002425/0.346, allocations: 97.16 kB / 0.535 GB, free: 10.22 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.483e-06/0.346, allocations: 0 / 0.535 GB, free: 10.22 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.000467/0.3465, allocations: 142.8 kB / 0.5352 GB, free: 10.14 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.042e-05/0.3465, allocations: 56.5 kB / 0.5352 GB, free: 10.08 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001274/0.3467, allocations: 145.7 kB / 0.5354 GB, free: 9.957 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.173e-05/0.3467, allocations: 34.88 kB / 0.5354 GB, free: 9.918 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.22e-05/0.3468, allocations: 100.5 kB / 0.5355 GB, free: 9.82 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.457e-05/0.3468, allocations: 27.33 kB / 0.5355 GB, free: 9.797 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.542e-05/0.3469, allocations: 28.72 kB / 0.5356 GB, free: 9.77 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001116/0.347, allocations: 321.2 kB / 0.5359 GB, free: 9.449 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001276/0.3471, allocations: 45.06 kB / 0.5359 GB, free: 9.426 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001267/0.3472, allocations: 50.14 kB / 0.536 GB, free: 9.395 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002147/0.3475, allocations: 76.27 kB / 0.536 GB, free: 9.352 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.3475, allocations: 0 / 0.536 GB, free: 9.352 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002918/0.3478, allocations: 122.1 kB / 0.5361 GB, free: 9.281 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.639e-05/0.3478, allocations: 8.875 kB / 0.5361 GB, free: 9.277 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.681e-06/0.3478, allocations: 1.125 kB / 0.5361 GB, free: 9.277 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.128e-05/0.3478, allocations: 1 kB / 0.5362 GB, free: 9.277 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001003/0.3479, allocations: 14.8 kB / 0.5362 GB, free: 9.273 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.43e-06/0.3479, allocations: 2.094 kB / 0.5362 GB, free: 9.273 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.91e-05/0.348, allocations: 21.3 kB / 0.5362 GB, free: 9.262 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.093e-06/0.3481, allocations: 2.75 kB / 0.5362 GB, free: 9.262 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,change.u,$PRE.change.u,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,integrator.reset,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.083e-05/0.3482, allocations: 136.5 kB / 0.5363 GB, free: 9.125 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.295e-05/0.3482, allocations: 11.84 kB / 0.5363 GB, free: 9.117 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.477e-05/0.3482, allocations: 16.53 kB / 0.5363 GB, free: 9.102 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.3483, allocations: 0 / 0.5363 GB, free: 9.102 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.3483, allocations: 1.406 kB / 0.5363 GB, free: 9.102 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.3483, allocations: 0 / 0.5363 GB, free: 9.102 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005015/0.3488, allocations: 389.8 kB / 0.5367 GB, free: 8.73 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.3488, allocations: 3.938 kB / 0.5367 GB, free: 8.727 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.748e-05/0.3489, allocations: 13.64 kB / 0.5367 GB, free: 8.723 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.3489, allocations: 0 / 0.5367 GB, free: 8.723 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.25e-05/0.3489, allocations: 5.188 kB / 0.5367 GB, free: 8.719 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.364e-06/0.3489, allocations: 9.641 kB / 0.5368 GB, free: 8.711 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/0.3489, allocations: 0 / 0.5368 GB, free: 8.711 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004741/0.3494, allocations: 253.8 kB / 0.537 GB, free: 8.52 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.006e-05/0.3495, allocations: 91.05 kB / 0.5371 GB, free: 8.414 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.057e-05/0.3495, allocations: 1.469 kB / 0.5371 GB, free: 8.414 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001496/0.3496, allocations: 18.62 kB / 0.5371 GB, free: 8.406 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.898e-05/0.3497, allocations: 14.45 kB / 0.5371 GB, free: 8.398 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.365e-06/0.3497, allocations: 3.062 kB / 0.5371 GB, free: 8.398 MB / 398.1 MB Notification: Performance of sorting global known variables: time 8.899e-05/0.3498, allocations: 116.2 kB / 0.5372 GB, free: 8.305 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3498, allocations: 3.938 kB / 0.5372 GB, free: 8.301 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002382/0.3501, allocations: 17.53 kB / 0.5372 GB, free: 8.297 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.y) * Number of discrete variables: 5 (integrator.reset,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,change.u) * Number of discrete states: 1 (change.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001004/0.3502, allocations: 96.19 kB / 0.5373 GB, free: 8.207 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003234/0.3505, allocations: 87.75 kB / 0.5374 GB, free: 8.172 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.3505, allocations: 3.938 kB / 0.5374 GB, free: 8.168 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001502/0.3507, allocations: 43.67 kB / 0.5375 GB, free: 8.152 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003244/0.351, allocations: 20.55 kB / 0.5375 GB, free: 8.141 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000945/0.352, allocations: 274 kB / 0.5377 GB, free: 7.934 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002838/0.3523, allocations: 0.6945 MB / 0.5384 GB, free: 7.23 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.713e-05/0.3523, allocations: 10.2 kB / 0.5384 GB, free: 7.227 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.677e-05/0.3524, allocations: 17.19 kB / 0.5385 GB, free: 7.219 MB / 398.1 MB Notification: Performance of SimCode: time 2.7e-07/0.3524, allocations: 0 / 0.5385 GB, free: 7.219 MB / 398.1 MB Notification: Performance of Templates: time 0.003787/0.3562, allocations: 1.232 MB / 0.5397 GB, free: 6.602 MB / 398.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches