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.002149/0.002148, allocations: 179 kB / 8.364 MB, free: 0.707 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.998/1.998, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001046/0.001045, allocations: 86.83 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2912/0.2912, allocations: 43.49 MB / 353.6 MB, free: 2.262 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.62e-05/2.649e-05, allocations: 4.219 kB / 418.2 MB, free: 41.05 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4001/0.4002, allocations: 58.85 MB / 477.1 MB, free: 5.262 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1568/0.557, allocations: 84.14 MB / 0.5481 GB, free: 15.18 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002341/0.5573, allocations: 59.97 kB / 0.5481 GB, free: 15.12 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.003606/0.5609, allocations: 0.9853 MB / 0.5491 GB, free: 14.13 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.561, allocations: 4 kB / 0.5491 GB, free: 14.13 MB / 395.1 MB Notification: Performance of Transformations before backend: time 1.023e-05/0.561, allocations: 0 / 0.5491 GB, free: 14.13 MB / 395.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.0003795/0.5614, allocations: 330.4 kB / 0.5494 GB, free: 13.76 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.482e-05/0.5614, allocations: 8.031 kB / 0.5494 GB, free: 13.75 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.159e-05/0.5615, allocations: 11.91 kB / 0.5494 GB, free: 13.74 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002116/0.5617, allocations: 179 kB / 0.5496 GB, free: 13.53 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.373e-05/0.5617, allocations: 4 kB / 0.5496 GB, free: 13.52 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.528e-05/0.5618, allocations: 3.984 kB / 0.5496 GB, free: 13.52 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.823e-05/0.5619, allocations: 12 kB / 0.5496 GB, free: 13.51 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001038/0.562, allocations: 41.7 kB / 0.5496 GB, free: 13.46 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.167e-05/0.562, allocations: 0 / 0.5496 GB, free: 13.46 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.351e-05/0.562, allocations: 3.938 kB / 0.5497 GB, free: 13.46 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.562, allocations: 0 / 0.5497 GB, free: 13.46 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005957/0.5626, allocations: 265.3 kB / 0.5499 GB, free: 13.16 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.456e-05/0.5627, allocations: 18.58 kB / 0.5499 GB, free: 13.13 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.455e-05/0.5627, allocations: 12.92 kB / 0.5499 GB, free: 13.12 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.389e-05/0.5628, allocations: 0 / 0.5499 GB, free: 13.12 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001092/0.5629, allocations: 59.89 kB / 0.55 GB, free: 13.05 MB / 395.1 MB Notification: Performance of pre-optimization done (n=3): time 1.593e-06/0.5629, allocations: 0 / 0.55 GB, free: 13.05 MB / 395.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001376/0.5631, allocations: 37.69 kB / 0.55 GB, free: 13 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.077e-05/0.5631, allocations: 59.34 kB / 0.5501 GB, free: 12.93 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.957e-05/0.5632, allocations: 104.9 kB / 0.5502 GB, free: 12.82 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 1.672e-05/0.5632, allocations: 29.64 kB / 0.5502 GB, free: 12.79 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.585e-05/0.5633, allocations: 158.5 kB / 0.5504 GB, free: 12.64 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 2e-05/0.5633, allocations: 11.89 kB / 0.5504 GB, free: 12.62 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.447e-06/0.5634, allocations: 4 kB / 0.5504 GB, free: 12.62 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001601/0.5635, allocations: 314.8 kB / 0.5507 GB, free: 12.3 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.803e-05/0.5636, allocations: 4 kB / 0.5507 GB, free: 12.3 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.959e-05/0.5636, allocations: 25.59 kB / 0.5507 GB, free: 12.27 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.705e-05/0.5637, allocations: 4 kB / 0.5507 GB, free: 12.27 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.5637, allocations: 0 / 0.5507 GB, free: 12.27 MB / 395.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.000107/0.5638, allocations: 45.69 kB / 0.5508 GB, free: 12.21 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.838e-05/0.5638, allocations: 4 kB / 0.5508 GB, free: 12.21 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.5638, allocations: 4.031 kB / 0.5508 GB, free: 12.21 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.138e-05/0.5639, allocations: 8 kB / 0.5508 GB, free: 12.2 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.96e-05/0.5639, allocations: 0 / 0.5508 GB, free: 12.2 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.272e-06/0.564, allocations: 7.938 kB / 0.5508 GB, free: 12.19 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.256e-05/0.564, allocations: 14.31 kB / 0.5508 GB, free: 12.18 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.741e-06/0.564, allocations: 0 / 0.5508 GB, free: 12.18 MB / 395.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 ($whenCondition1,greaterEqualThreshold.y) * Number of discrete 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 8.213e-05/0.5641, allocations: 105 kB / 0.5509 GB, free: 12.07 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.288e-05/0.5642, allocations: 0 / 0.5509 GB, free: 12.07 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.358e-05/0.5642, allocations: 12.34 kB / 0.5509 GB, free: 12.05 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.966e-06/0.5642, allocations: 4 kB / 0.5509 GB, free: 12.05 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.449e-06/0.5642, allocations: 0 / 0.5509 GB, free: 12.05 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.5642, allocations: 0 / 0.5509 GB, free: 12.05 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003721/0.5646, allocations: 271.2 kB / 0.5512 GB, free: 11.74 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-06/0.5646, allocations: 3.984 kB / 0.5512 GB, free: 11.74 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.02e-05/0.5647, allocations: 7.938 kB / 0.5512 GB, free: 11.73 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.5647, allocations: 0 / 0.5512 GB, free: 11.73 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.558e-06/0.5647, allocations: 0 / 0.5512 GB, free: 11.73 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.5647, allocations: 0 / 0.5512 GB, free: 11.73 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.5648, allocations: 4 kB / 0.5512 GB, free: 11.73 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001734/0.5649, allocations: 151.4 kB / 0.5513 GB, free: 11.56 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.761e-05/0.565, allocations: 77.11 kB / 0.5514 GB, free: 11.47 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.526e-05/0.565, allocations: 4.031 kB / 0.5514 GB, free: 11.46 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.587e-05/0.5651, allocations: 0 / 0.5514 GB, free: 11.46 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.397e-05/0.5652, allocations: 3.984 kB / 0.5514 GB, free: 11.46 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.049e-05/0.5652, allocations: 4 kB / 0.5514 GB, free: 11.46 MB / 395.1 MB Notification: Performance of sorting global known variables: time 5.581e-05/0.5653, allocations: 91.28 kB / 0.5515 GB, free: 11.37 MB / 395.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.5653, allocations: 0 / 0.5515 GB, free: 11.37 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.0002953/0.5656, allocations: 7.953 kB / 0.5515 GB, free: 11.36 MB / 395.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 () * 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 0.0001359/0.5657, allocations: 103.2 kB / 0.5516 GB, free: 11.25 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 8.269e-05/0.5658, allocations: 12.28 kB / 0.5516 GB, free: 11.24 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.5658, allocations: 0 / 0.5516 GB, free: 11.24 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 2.637e-05/0.5659, allocations: 8 kB / 0.5516 GB, free: 11.23 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002539/0.5661, allocations: 8.188 kB / 0.5516 GB, free: 11.22 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002871/0.5664, allocations: 111.7 kB / 0.5517 GB, free: 11.08 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002977/0.5668, allocations: 0.6962 MB / 0.5524 GB, free: 10.36 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.886e-05/0.5668, allocations: 11.44 kB / 0.5524 GB, free: 10.35 MB / 395.1 MB Notification: Performance of SimCode: time 9.31e-07/0.5668, allocations: 0 / 0.5524 GB, free: 10.35 MB / 395.1 MB Notification: Performance of Templates: time 0.002648/0.5695, allocations: 0.6911 MB / 0.5531 GB, free: 9.656 MB / 395.1 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/jenkins1/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