Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.SelfResettingIntegrator") translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.SelfResettingIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008471/0.0008471, allocations: 175.2 kB / 16.72 MB, free: 4.957 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.177/1.177, allocations: 205.4 MB / 222.9 MB, free: 9.012 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007768/0.0007768, allocations: 100.8 kB / 271.2 MB, free: 8.234 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2731/0.2731, allocations: 43.56 MB / 363.1 MB, free: 52.18 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003304/0.0003305, allocations: 12 kB / 432 MB, free: 5.836 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08681/0.08716, allocations: 58.85 MB / 490.8 MB, free: 10.91 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.0009008/0.08809, allocations: 0.5324 MB / 491.3 MB, free: 10.38 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001691/0.08827, allocations: 43.91 kB / 491.4 MB, free: 10.33 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.176e-05/0.08833, allocations: 0 / 491.4 MB, free: 10.33 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 8.264e-05/0.08843, allocations: 3.938 kB / 491.4 MB, free: 10.33 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 1.88e-05/0.08845, allocations: 11.94 kB / 491.4 MB, free: 10.32 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 9.121e-05/0.08855, allocations: 11.98 kB / 491.4 MB, free: 10.3 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 8.885e-05/0.08865, allocations: 39.84 kB / 491.5 MB, free: 10.27 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.397e-05/0.08874, allocations: 15.98 kB / 491.5 MB, free: 10.25 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.9e-05/0.08877, allocations: 7.938 kB / 491.5 MB, free: 10.24 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.601e-05/0.08881, allocations: 11.92 kB / 491.5 MB, free: 10.23 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.358e-05/0.08883, allocations: 4 kB / 491.5 MB, free: 10.23 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.025e-06/0.08884, allocations: 0 / 491.5 MB, free: 10.23 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.188e-05/0.08886, allocations: 0 / 491.5 MB, free: 10.23 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.687e-05/0.0889, allocations: 41.58 kB / 491.5 MB, free: 10.18 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 6.147e-05/0.08897, allocations: 27.94 kB / 491.6 MB, free: 10.15 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.08898, allocations: 4 kB / 491.6 MB, free: 10.15 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.08899, allocations: 3.938 kB / 491.6 MB, free: 10.14 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.006e-06/0.089, allocations: 0 / 491.6 MB, free: 10.14 MB / 378.7 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.0003308/0.08933, allocations: 339.7 kB / 491.9 MB, free: 9.762 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.108e-05/0.08937, allocations: 8.031 kB / 491.9 MB, free: 9.754 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.853e-05/0.0894, allocations: 8.844 kB / 491.9 MB, free: 9.746 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001458/0.08956, allocations: 180.2 kB / 492.1 MB, free: 9.531 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.113e-05/0.08957, allocations: 8.375 kB / 492.1 MB, free: 9.523 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.945e-05/0.0896, allocations: 4.375 kB / 492.1 MB, free: 9.52 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001003/0.0897, allocations: 50.25 kB / 492.2 MB, free: 9.465 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.523e-06/0.08972, allocations: 192 / 492.2 MB, free: 9.465 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.118e-05/0.08973, allocations: 3.938 kB / 492.2 MB, free: 9.461 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.25e-06/0.08974, allocations: 3.984 kB / 492.2 MB, free: 9.457 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.357e-05/0.08979, allocations: 15.98 kB / 492.2 MB, free: 9.441 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004495/0.09025, allocations: 304.6 kB / 492.5 MB, free: 9.094 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.271e-05/0.09031, allocations: 18.58 kB / 492.5 MB, free: 9.066 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.54e-05/0.09033, allocations: 12.92 kB / 492.5 MB, free: 9.051 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.446e-06/0.09034, allocations: 0 / 492.5 MB, free: 9.051 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.9e-05/0.09044, allocations: 55.34 kB / 492.6 MB, free: 8.984 MB / 378.7 MB Notification: Performance of pre-optimization done (n=3): time 1.051e-06/0.09045, allocations: 0 / 492.6 MB, free: 8.984 MB / 378.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001201/0.09057, allocations: 45.69 kB / 492.6 MB, free: 8.934 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.553e-05/0.09061, allocations: 55.41 kB / 492.7 MB, free: 8.867 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.397e-05/0.0907, allocations: 121.8 kB / 492.8 MB, free: 8.738 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.254e-05/0.09072, allocations: 25.7 kB / 492.8 MB, free: 8.707 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.997e-05/0.09076, allocations: 96.06 kB / 492.9 MB, free: 8.609 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.093e-05/0.09078, allocations: 7.906 kB / 492.9 MB, free: 8.602 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.537e-06/0.09079, allocations: 4 kB / 492.9 MB, free: 8.598 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.702e-05/0.09088, allocations: 314.8 kB / 493.2 MB, free: 8.281 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.721e-05/0.0909, allocations: 11.98 kB / 493.2 MB, free: 8.27 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.777e-05/0.09094, allocations: 21.66 kB / 493.2 MB, free: 8.242 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.592e-05/0.09098, allocations: 25.72 kB / 493.3 MB, free: 8.211 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.432e-06/0.09098, allocations: 0 / 493.3 MB, free: 8.211 MB / 378.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.549e-05/0.09106, allocations: 57.53 kB / 493.3 MB, free: 8.148 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.082e-05/0.09108, allocations: 4.375 kB / 493.3 MB, free: 8.145 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.818e-06/0.09109, allocations: 4 kB / 493.3 MB, free: 8.141 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.167e-05/0.09111, allocations: 0 / 493.3 MB, free: 8.141 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.936e-05/0.09114, allocations: 8.031 kB / 493.3 MB, free: 8.133 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.839e-06/0.09116, allocations: 3.938 kB / 493.4 MB, free: 8.129 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.177e-05/0.09119, allocations: 7.984 kB / 493.4 MB, free: 8.121 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.2e-06/0.0912, allocations: 3.938 kB / 493.4 MB, free: 8.117 MB / 378.7 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 ($whenCondition1,greaterEqualThreshold.y) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.018e-05/0.09128, allocations: 113.8 kB / 493.5 MB, free: 7.996 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.706e-06/0.09129, allocations: 0 / 493.5 MB, free: 7.996 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.009e-05/0.09132, allocations: 11.91 kB / 493.5 MB, free: 7.984 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.09132, allocations: 0 / 493.5 MB, free: 7.984 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.726e-06/0.09133, allocations: 0 / 493.5 MB, free: 7.984 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-06/0.09134, allocations: 4 kB / 493.5 MB, free: 7.98 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002564/0.0916, allocations: 318.6 kB / 493.8 MB, free: 7.613 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-06/0.09161, allocations: 0 / 493.8 MB, free: 7.613 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.849e-05/0.09165, allocations: 0 / 493.8 MB, free: 7.613 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.09165, allocations: 0 / 493.8 MB, free: 7.613 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.728e-06/0.09167, allocations: 4 kB / 493.8 MB, free: 7.609 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.386e-06/0.09168, allocations: 3.938 kB / 493.8 MB, free: 7.605 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.09168, allocations: 0 / 493.8 MB, free: 7.605 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001259/0.09181, allocations: 156.6 kB / 494 MB, free: 7.438 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.108e-05/0.09185, allocations: 81.02 kB / 494 MB, free: 7.34 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.29e-05/0.09187, allocations: 4.031 kB / 494 MB, free: 7.336 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.921e-05/0.09193, allocations: 3.938 kB / 494 MB, free: 7.332 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.992e-05/0.09196, allocations: 0 / 494 MB, free: 7.332 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.903e-06/0.09197, allocations: 7.984 kB / 494.1 MB, free: 7.324 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.928e-05/0.09203, allocations: 91.28 kB / 494.1 MB, free: 7.234 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.09203, allocations: 3.938 kB / 494.1 MB, free: 7.23 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0001998/0.09224, allocations: 8.062 kB / 494.2 MB, free: 7.223 MB / 378.7 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 (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 7.442e-05/0.09232, allocations: 99.22 kB / 494.3 MB, free: 7.117 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 6.531e-05/0.09239, allocations: 19.94 kB / 494.3 MB, free: 7.098 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.0924, allocations: 0 / 494.3 MB, free: 7.098 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.638e-05/0.09242, allocations: 4 kB / 494.3 MB, free: 7.094 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002472/0.09267, allocations: 19.78 kB / 494.3 MB, free: 7.078 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002619/0.09294, allocations: 176.4 kB / 494.5 MB, free: 6.871 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002103/0.09316, allocations: 0.6851 MB / 495.2 MB, free: 6.16 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.876e-05/0.09319, allocations: 7.438 kB / 495.2 MB, free: 6.152 MB / 378.7 MB Notification: Performance of SimCode: time 3.31e-07/0.09319, allocations: 0 / 495.2 MB, free: 6.152 MB / 378.7 MB Notification: Performance of Templates: time 0.001707/0.09491, allocations: 0.7344 MB / 495.9 MB, free: 5.418 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.SelfResettingIntegrator --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches