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.002373/0.002373, allocations: 182.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2/2, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001888/0.001887, allocations: 86.64 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3402/0.3402, allocations: 43.5 MB / 359.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.429e-05/3.444e-05, allocations: 4 kB / 425.3 MB, free: 23.38 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1136/0.1136, allocations: 58.87 MB / 484.1 MB, free: 12.47 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4649/0.5786, allocations: 86.03 MB / 0.5568 GB, free: 1.57 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002193/0.5788, allocations: 66.62 kB / 0.5569 GB, free: 1.539 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006443/0.5853, allocations: 1.654 MB / 0.5585 GB, free: 120 kB / 362.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.5853, allocations: 0 / 0.5585 GB, free: 120 kB / 362.7 MB Notification: Performance of Transformations before backend: time 1.294e-05/0.5854, allocations: 0 / 0.5585 GB, free: 120 kB / 362.7 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.0005809/0.586, allocations: 373.9 kB / 0.5588 GB, free: 15.71 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.029e-05/0.586, allocations: 8.031 kB / 0.5588 GB, free: 15.7 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.657e-05/0.5861, allocations: 11.91 kB / 0.5589 GB, free: 15.69 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000265/0.5864, allocations: 186.1 kB / 0.559 GB, free: 15.47 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.278e-05/0.5864, allocations: 8 kB / 0.559 GB, free: 15.46 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.442e-05/0.5865, allocations: 11.34 kB / 0.5591 GB, free: 15.46 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002159/0.5867, allocations: 77.64 kB / 0.5591 GB, free: 15.39 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-06/0.5867, allocations: 0 / 0.5591 GB, free: 15.39 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.735e-05/0.5867, allocations: 0 / 0.5591 GB, free: 15.39 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.678e-06/0.5868, allocations: 7.609 kB / 0.5591 GB, free: 15.39 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001185/0.5869, allocations: 29.94 kB / 0.5592 GB, free: 15.37 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008895/0.5878, allocations: 358.1 kB / 0.5595 GB, free: 15 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001509/0.588, allocations: 44.3 kB / 0.5595 GB, free: 14.96 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.936e-05/0.588, allocations: 11.86 kB / 0.5596 GB, free: 14.95 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.9e-05/0.5881, allocations: 4.047 kB / 0.5596 GB, free: 14.94 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001906/0.5883, allocations: 80.95 kB / 0.5596 GB, free: 14.86 MB / 378.7 MB Notification: Performance of pre-optimization done (n=7): time 2.945e-06/0.5883, allocations: 0 / 0.5596 GB, free: 14.86 MB / 378.7 MB Notification: Performance of matching and sorting (n=7): time 0.000263/0.5886, allocations: 72.52 kB / 0.5597 GB, free: 14.79 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.05e-05/0.5886, allocations: 51.41 kB / 0.5598 GB, free: 14.73 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001629/0.5888, allocations: 129.7 kB / 0.5599 GB, free: 14.6 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.838e-05/0.5889, allocations: 32.5 kB / 0.5599 GB, free: 14.57 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.5e-05/0.589, allocations: 164.7 kB / 0.5601 GB, free: 14.41 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.975e-05/0.589, allocations: 18.91 kB / 0.5601 GB, free: 14.39 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.583e-06/0.589, allocations: 0 / 0.5601 GB, free: 14.39 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001351/0.5892, allocations: 314.2 kB / 0.5604 GB, free: 14.08 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.522e-05/0.5892, allocations: 11.44 kB / 0.5604 GB, free: 14.07 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.581e-05/0.5893, allocations: 43 kB / 0.5604 GB, free: 14.03 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.462e-05/0.5894, allocations: 23.05 kB / 0.5605 GB, free: 14.01 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.5894, allocations: 0 / 0.5605 GB, free: 14.01 MB / 378.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002039/0.5896, allocations: 78.94 kB / 0.5605 GB, free: 13.94 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.275e-05/0.5897, allocations: 8.141 kB / 0.5605 GB, free: 13.93 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.031e-05/0.5897, allocations: 4 kB / 0.5605 GB, free: 13.93 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.553e-05/0.5897, allocations: 11.92 kB / 0.5606 GB, free: 13.92 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001145/0.5899, allocations: 4 kB / 0.5606 GB, free: 13.91 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.17e-05/0.5899, allocations: 4 kB / 0.5606 GB, free: 13.91 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001297/0.59, allocations: 8.078 kB / 0.5606 GB, free: 13.9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.317e-05/0.59, allocations: 11.31 kB / 0.5606 GB, free: 13.89 MB / 378.7 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.0001115/0.5902, allocations: 116 kB / 0.5607 GB, free: 13.78 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.973e-05/0.5902, allocations: 7.906 kB / 0.5607 GB, free: 13.77 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.623e-05/0.5903, allocations: 11.64 kB / 0.5607 GB, free: 13.76 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.943e-06/0.5903, allocations: 4 kB / 0.5607 GB, free: 13.76 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.74e-06/0.5903, allocations: 224 / 0.5607 GB, free: 13.76 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.743e-06/0.5903, allocations: 0 / 0.5607 GB, free: 13.76 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005573/0.5909, allocations: 351.9 kB / 0.5611 GB, free: 13.38 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.612e-06/0.5909, allocations: 8 kB / 0.5611 GB, free: 13.38 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.22e-05/0.591, allocations: 3.953 kB / 0.5611 GB, free: 13.37 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.042e-05/0.5911, allocations: 7.984 kB / 0.5611 GB, free: 13.36 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.539e-05/0.5911, allocations: 3.375 kB / 0.5611 GB, free: 13.36 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.086e-06/0.5911, allocations: 0 / 0.5611 GB, free: 13.36 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.5911, allocations: 0 / 0.5611 GB, free: 13.36 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003096/0.5914, allocations: 180.2 kB / 0.5612 GB, free: 13.19 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.044e-05/0.5915, allocations: 85.05 kB / 0.5613 GB, free: 13.09 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.006e-05/0.5915, allocations: 12 kB / 0.5613 GB, free: 13.07 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001786/0.5917, allocations: 7.188 kB / 0.5613 GB, free: 13.07 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.249e-05/0.5918, allocations: 11.92 kB / 0.5614 GB, free: 13.06 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.394e-05/0.5919, allocations: 4 kB / 0.5614 GB, free: 13.05 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001093/0.592, allocations: 109 kB / 0.5615 GB, free: 12.96 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.592, allocations: 0 / 0.5615 GB, free: 12.96 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003194/0.5923, allocations: 12 kB / 0.5615 GB, free: 12.95 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: 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.0001533/0.5925, allocations: 98.88 kB / 0.5616 GB, free: 12.85 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001846/0.5927, allocations: 53.34 kB / 0.5616 GB, free: 12.8 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.5927, allocations: 0 / 0.5616 GB, free: 12.8 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 7.798e-05/0.5928, allocations: 19.44 kB / 0.5616 GB, free: 12.79 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003347/0.5931, allocations: 20.86 kB / 0.5617 GB, free: 12.78 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007183/0.5939, allocations: 174.8 kB / 0.5618 GB, free: 12.59 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003694/0.5943, allocations: 0.7043 MB / 0.5625 GB, free: 11.86 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.365e-05/0.5944, allocations: 15.44 kB / 0.5625 GB, free: 11.84 MB / 378.7 MB Notification: Performance of SimCode: time 4.098e-06/0.5944, allocations: 0 / 0.5625 GB, free: 11.84 MB / 378.7 MB Notification: Performance of Templates: time 0.004047/0.5984, allocations: 1.139 MB / 0.5636 GB, free: 10.71 MB / 378.7 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