Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.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.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.ResetHoldIntegrator") translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.ResetHoldIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00222/0.00222, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.016/2.016, 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.001119/0.001118, allocations: 99.08 kB / 262.1 MB, free: 13.87 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.2924/0.2924, allocations: 43.49 MB / 353.6 MB, free: 2.27 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.99e-05/1.988e-05, allocations: 4.219 kB / 418.2 MB, free: 41.04 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3911/0.3912, allocations: 58.85 MB / 477.1 MB, free: 5.258 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1552/0.5464, allocations: 85.37 MB / 0.5493 GB, free: 13.94 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000237/0.5467, allocations: 63.97 kB / 0.5493 GB, free: 13.88 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.006877/0.5536, allocations: 1.642 MB / 0.5509 GB, free: 12.23 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.5537, allocations: 0 / 0.5509 GB, free: 12.23 MB / 395.1 MB Notification: Performance of Transformations before backend: time 1.247e-05/0.5537, allocations: 4 kB / 0.5509 GB, free: 12.23 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0005547/0.5542, allocations: 366.4 kB / 0.5513 GB, free: 11.83 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.501e-05/0.5543, allocations: 8.031 kB / 0.5513 GB, free: 11.82 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.633e-05/0.5544, allocations: 7.906 kB / 0.5513 GB, free: 11.81 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002511/0.5546, allocations: 196.2 kB / 0.5515 GB, free: 11.58 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.796e-05/0.5547, allocations: 0 / 0.5515 GB, free: 11.58 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.328e-05/0.5547, allocations: 7.906 kB / 0.5515 GB, free: 11.57 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001323/0.5548, allocations: 28 kB / 0.5515 GB, free: 11.55 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001574/0.555, allocations: 61.69 kB / 0.5516 GB, free: 11.48 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.026e-05/0.555, allocations: 0 / 0.5516 GB, free: 11.48 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.015e-05/0.5551, allocations: 7.984 kB / 0.5516 GB, free: 11.47 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.954e-06/0.5551, allocations: 6.938 kB / 0.5516 GB, free: 11.47 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000713/0.5558, allocations: 329.1 kB / 0.5519 GB, free: 11.11 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001201/0.556, allocations: 38.58 kB / 0.5519 GB, free: 11.06 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.167e-05/0.556, allocations: 23.42 kB / 0.552 GB, free: 11.04 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.434e-05/0.556, allocations: 0 / 0.552 GB, free: 11.04 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000167/0.5562, allocations: 67.39 kB / 0.552 GB, free: 10.96 MB / 395.1 MB Notification: Performance of pre-optimization done (n=7): time 1.904e-06/0.5562, allocations: 0 / 0.552 GB, free: 10.96 MB / 395.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002255/0.5565, allocations: 65.53 kB / 0.5521 GB, free: 10.89 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.857e-05/0.5565, allocations: 55.41 kB / 0.5521 GB, free: 10.82 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000121/0.5567, allocations: 113 kB / 0.5522 GB, free: 10.71 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 4.544e-05/0.5567, allocations: 29.7 kB / 0.5523 GB, free: 10.67 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.814e-05/0.5568, allocations: 166.7 kB / 0.5524 GB, free: 10.5 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.546e-05/0.5569, allocations: 19.7 kB / 0.5525 GB, free: 10.48 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.061e-06/0.5569, allocations: 0 / 0.5525 GB, free: 10.48 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001338/0.557, allocations: 314.8 kB / 0.5528 GB, free: 10.17 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.192e-05/0.5571, allocations: 15.94 kB / 0.5528 GB, free: 10.15 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.912e-05/0.5572, allocations: 34.58 kB / 0.5528 GB, free: 10.11 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.677e-05/0.5573, allocations: 15.98 kB / 0.5528 GB, free: 10.09 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.5573, allocations: 0 / 0.5528 GB, free: 10.09 MB / 395.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001758/0.5575, allocations: 69.62 kB / 0.5529 GB, free: 10.02 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.104e-05/0.5575, allocations: 8 kB / 0.5529 GB, free: 10.01 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.5575, allocations: 0 / 0.5529 GB, free: 10.01 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.968e-05/0.5575, allocations: 8.016 kB / 0.5529 GB, free: 10 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000103/0.5576, allocations: 8.547 kB / 0.5529 GB, free: 9.996 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.087e-06/0.5577, allocations: 4 kB / 0.5529 GB, free: 9.992 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001192/0.5578, allocations: 16.12 kB / 0.5529 GB, free: 9.977 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.268e-06/0.5578, allocations: 0 / 0.5529 GB, free: 9.977 MB / 395.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,fallingEdge.y,$PRE.fallingEdge.not_u,fallingEdge.not_u) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001062/0.5579, allocations: 116 kB / 0.553 GB, free: 9.859 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.575e-05/0.558, allocations: 11.73 kB / 0.553 GB, free: 9.852 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.403e-05/0.558, allocations: 12.61 kB / 0.5531 GB, free: 9.84 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.581e-06/0.558, allocations: 8 kB / 0.5531 GB, free: 9.832 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.925e-06/0.5581, allocations: 3.953 kB / 0.5531 GB, free: 9.828 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.5581, allocations: 0 / 0.5531 GB, free: 9.828 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004484/0.5585, allocations: 307.3 kB / 0.5534 GB, free: 9.484 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.5586, allocations: 0 / 0.5534 GB, free: 9.484 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.656e-05/0.5586, allocations: 7.938 kB / 0.5534 GB, free: 9.477 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/0.5587, allocations: 0 / 0.5534 GB, free: 9.477 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.32e-05/0.5587, allocations: 0 / 0.5534 GB, free: 9.477 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.449e-06/0.5587, allocations: 7.953 kB / 0.5534 GB, free: 9.469 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.12e-06/0.5587, allocations: 3.984 kB / 0.5534 GB, free: 9.465 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002835/0.559, allocations: 183.5 kB / 0.5536 GB, free: 9.27 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.906e-05/0.5591, allocations: 81.02 kB / 0.5536 GB, free: 9.172 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.38e-05/0.5591, allocations: 0 / 0.5536 GB, free: 9.172 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001476/0.5593, allocations: 11.98 kB / 0.5536 GB, free: 9.16 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.831e-05/0.5593, allocations: 12.11 kB / 0.5537 GB, free: 9.148 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.238e-06/0.5594, allocations: 4 kB / 0.5537 GB, free: 9.145 MB / 395.1 MB Notification: Performance of sorting global known variables: time 7.998e-05/0.5595, allocations: 100.3 kB / 0.5538 GB, free: 9.047 MB / 395.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.5595, allocations: 0 / 0.5538 GB, free: 9.047 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.0003285/0.5598, allocations: 19.98 kB / 0.5538 GB, free: 9.027 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: 5 (fallingEdge.y,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,fallingEdge.not_u) * Number of discrete states: 1 (fallingEdge.not_u) * 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 (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.0001578/0.56, allocations: 103.5 kB / 0.5539 GB, free: 8.918 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.0001595/0.5602, allocations: 32 kB / 0.5539 GB, free: 8.887 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.5602, allocations: 0 / 0.5539 GB, free: 8.887 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 6.894e-05/0.5603, allocations: 23.94 kB / 0.5539 GB, free: 8.863 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003157/0.5606, allocations: 16.11 kB / 0.5539 GB, free: 8.848 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006662/0.5613, allocations: 172.1 kB / 0.5541 GB, free: 8.648 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003189/0.5616, allocations: 0.7079 MB / 0.5548 GB, free: 7.914 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.657e-05/0.5617, allocations: 11.44 kB / 0.5548 GB, free: 7.902 MB / 395.1 MB Notification: Performance of SimCode: time 1.072e-06/0.5617, allocations: 4 kB / 0.5548 GB, free: 7.898 MB / 395.1 MB Notification: Performance of Templates: time 0.003545/0.5652, allocations: 1.079 MB / 0.5559 GB, free: 6.828 MB / 395.1 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.ResetHoldIntegrator --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches