Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.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.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator") translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001366/0.001365, allocations: 118.8 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001451/0.001451, allocations: 198 kB / 18.73 MB, free: 4.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.543/1.543, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2868/0.2868, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001765/0.001765, allocations: 75.88 kB / 481.3 MB, free: 4.074 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5638/0.5655, allocations: 62.43 MB / 0.531 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002383/0.568, allocations: 0.8159 MB / 0.5318 GB, free: 13 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002177/0.5682, allocations: 50.41 kB / 0.5318 GB, free: 12.96 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.338e-05/0.5683, allocations: 0 / 0.5318 GB, free: 12.96 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001391/0.5684, allocations: 3.938 kB / 0.5318 GB, free: 12.96 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.12e-05/0.5685, allocations: 7.469 kB / 0.5318 GB, free: 12.95 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001346/0.5686, allocations: 23.5 kB / 0.5319 GB, free: 12.93 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001171/0.5687, allocations: 38.05 kB / 0.5319 GB, free: 12.91 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001271/0.5689, allocations: 17.27 kB / 0.5319 GB, free: 12.9 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.857e-05/0.5689, allocations: 12.11 kB / 0.5319 GB, free: 12.89 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.31e-05/0.569, allocations: 22.55 kB / 0.5319 GB, free: 12.87 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.808e-05/0.569, allocations: 2.75 kB / 0.5319 GB, free: 12.87 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.174e-05/0.569, allocations: 2.594 kB / 0.5319 GB, free: 12.87 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.234e-05/0.569, allocations: 6.656 kB / 0.532 GB, free: 12.87 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.773e-05/0.5691, allocations: 14.53 kB / 0.532 GB, free: 12.86 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001242/0.5692, allocations: 38 kB / 0.532 GB, free: 12.83 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.466e-06/0.5692, allocations: 0 / 0.532 GB, free: 12.83 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.5692, allocations: 0 / 0.532 GB, free: 12.83 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.392e-06/0.5692, allocations: 5.25 kB / 0.532 GB, free: 12.82 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004668/0.5697, allocations: 360.6 kB / 0.5324 GB, free: 12.44 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.277e-05/0.5698, allocations: 9.906 kB / 0.5324 GB, free: 12.44 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.513e-05/0.5698, allocations: 3.406 kB / 0.5324 GB, free: 12.44 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002476/0.5701, allocations: 183.2 kB / 0.5325 GB, free: 12.23 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.107e-06/0.5701, allocations: 2.875 kB / 0.5325 GB, free: 12.23 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.661e-05/0.5701, allocations: 2.062 kB / 0.5325 GB, free: 12.23 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000122/0.5702, allocations: 49.97 kB / 0.5326 GB, free: 12.18 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/0.5702, allocations: 4.188 kB / 0.5326 GB, free: 12.18 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.337e-05/0.5703, allocations: 9.297 kB / 0.5326 GB, free: 12.17 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.5703, allocations: 0 / 0.5326 GB, free: 12.17 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.59e-05/0.5703, allocations: 17.05 kB / 0.5326 GB, free: 12.16 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004885/0.5708, allocations: 292.9 kB / 0.5329 GB, free: 11.85 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.784e-05/0.5709, allocations: 24.11 kB / 0.5329 GB, free: 11.82 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.801e-05/0.5709, allocations: 11.11 kB / 0.5329 GB, free: 11.81 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.866e-06/0.5709, allocations: 1.031 kB / 0.5329 GB, free: 11.81 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.187e-05/0.571, allocations: 54.22 kB / 0.533 GB, free: 11.75 MB / 398.1 MB Notification: Performance of pre-optimization done (n=3): time 9.72e-07/0.571, allocations: 0 / 0.533 GB, free: 11.75 MB / 398.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001592/0.5712, allocations: 51.11 kB / 0.533 GB, free: 11.71 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.681e-05/0.5712, allocations: 51.41 kB / 0.5331 GB, free: 11.65 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001012/0.5713, allocations: 116.1 kB / 0.5332 GB, free: 11.54 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.681e-05/0.5714, allocations: 33.7 kB / 0.5332 GB, free: 11.5 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.339e-05/0.5714, allocations: 98.73 kB / 0.5333 GB, free: 11.4 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.639e-05/0.5715, allocations: 5.266 kB / 0.5333 GB, free: 11.4 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.46e-05/0.5715, allocations: 22.5 kB / 0.5334 GB, free: 11.38 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001285/0.5716, allocations: 320 kB / 0.5337 GB, free: 11.05 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.186e-05/0.5717, allocations: 11.81 kB / 0.5337 GB, free: 11.05 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.859e-05/0.5717, allocations: 14.56 kB / 0.5337 GB, free: 11.03 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.424e-05/0.5718, allocations: 37.48 kB / 0.5337 GB, free: 11 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.5718, allocations: 0 / 0.5337 GB, free: 11 MB / 398.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.747e-05/0.5718, allocations: 53.05 kB / 0.5338 GB, free: 10.95 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.601e-05/0.5719, allocations: 5.625 kB / 0.5338 GB, free: 10.95 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.118e-06/0.5719, allocations: 0 / 0.5338 GB, free: 10.95 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.556e-05/0.5719, allocations: 5.141 kB / 0.5338 GB, free: 10.95 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.171e-05/0.5719, allocations: 3.5 kB / 0.5338 GB, free: 10.95 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.743e-06/0.5719, allocations: 1.094 kB / 0.5338 GB, free: 10.95 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.697e-05/0.572, allocations: 5.141 kB / 0.5338 GB, free: 10.95 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.593e-06/0.572, allocations: 10.28 kB / 0.5338 GB, free: 10.94 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: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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 8.73e-05/0.5721, allocations: 112.1 kB / 0.5339 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.07e-05/0.5721, allocations: 2.562 kB / 0.5339 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.777e-05/0.5721, allocations: 9.312 kB / 0.5339 GB, free: 10.81 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.623e-06/0.5721, allocations: 9.391 kB / 0.5339 GB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.5722, allocations: 0 / 0.5339 GB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-06/0.5722, allocations: 336 / 0.5339 GB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002802/0.5724, allocations: 301.2 kB / 0.5342 GB, free: 10.47 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.5725, allocations: 4 kB / 0.5342 GB, free: 10.47 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.922e-05/0.5725, allocations: 2.188 kB / 0.5342 GB, free: 10.47 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.57e-06/0.5725, allocations: 3.984 kB / 0.5342 GB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.857e-06/0.5725, allocations: 1.062 kB / 0.5342 GB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.376e-06/0.5725, allocations: 3.938 kB / 0.5342 GB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.5725, allocations: 1.25 kB / 0.5342 GB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001493/0.5727, allocations: 147.3 kB / 0.5344 GB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.011e-05/0.5727, allocations: 83.34 kB / 0.5344 GB, free: 10.22 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.326e-05/0.5728, allocations: 4.062 kB / 0.5345 GB, free: 10.21 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.385e-05/0.5728, allocations: 5.062 kB / 0.5345 GB, free: 10.21 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.267e-05/0.5729, allocations: 6.391 kB / 0.5345 GB, free: 10.21 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.273e-06/0.5729, allocations: 5.219 kB / 0.5345 GB, free: 10.2 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.788e-05/0.5729, allocations: 91.98 kB / 0.5346 GB, free: 10.12 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5729, allocations: 0 / 0.5346 GB, free: 10.12 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002029/0.5731, allocations: 4.906 kB / 0.5346 GB, free: 10.12 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: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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 Backend phase and start with SimCode phase: time 9.23e-05/0.5732, allocations: 95.31 kB / 0.5347 GB, free: 10.03 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.123e-05/0.5733, allocations: 23.5 kB / 0.5347 GB, free: 10.02 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.5733, allocations: 0 / 0.5347 GB, free: 10.02 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 2.078e-05/0.5734, allocations: 18.55 kB / 0.5347 GB, free: 10.01 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002521/0.5736, allocations: 3.5 kB / 0.5347 GB, free: 10.01 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002984/0.5739, allocations: 140.4 kB / 0.5348 GB, free: 9.871 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002578/0.5742, allocations: 0.6815 MB / 0.5355 GB, free: 9.172 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.101e-05/0.5742, allocations: 5.609 kB / 0.5355 GB, free: 9.168 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.321e-05/0.5743, allocations: 10 kB / 0.5355 GB, free: 9.16 MB / 398.1 MB Notification: Performance of SimCode: time 2.3e-07/0.5743, allocations: 8 kB / 0.5355 GB, free: 9.152 MB / 398.1 MB Notification: Performance of Templates: time 0.002843/0.5771, allocations: 0.4978 MB / 0.536 GB, free: 8.902 MB / 398.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches