Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firstOrderHold.c|firstOrderHold.firstTrigger|firstOrderHold.pre_uSample|firstOrderHold.tSample|firstOrderHold.uSample|zeroOrderHold.firstTrigger|zeroOrderHold.ySample",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold") translateModel(ModelicaTest.Blocks.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firstOrderHold.c|firstOrderHold.firstTrigger|firstOrderHold.pre_uSample|firstOrderHold.tSample|firstOrderHold.uSample|zeroOrderHold.firstTrigger|zeroOrderHold.ySample",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000956/0.0009559, allocations: 175 kB / 17.41 MB, free: 4.387 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.294/1.294, allocations: 225.7 MB / 243.9 MB, free: 10.17 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007902/0.0007902, allocations: 95.89 kB / 295.1 MB, free: 9.703 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3057/0.3057, allocations: 44.32 MB / 390.5 MB, free: 38.28 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003235/0.0003235, allocations: 8 kB / 463.1 MB, free: 456 kB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3498/0.3502, allocations: 61.89 MB / 0.5127 GB, free: 38.04 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.001437/0.3517, allocations: 1.234 MB / 0.5139 GB, free: 37.14 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006432/0.3523, allocations: 465.2 kB / 0.5144 GB, free: 36.82 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.455e-05/0.3524, allocations: 0 / 0.5144 GB, free: 36.82 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 2.165e-05/0.3524, allocations: 3.938 kB / 0.5144 GB, free: 36.82 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 9.585e-05/0.3525, allocations: 11.11 kB / 0.5144 GB, free: 36.81 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001781/0.3527, allocations: 38.28 kB / 0.5144 GB, free: 36.79 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001009/0.3528, allocations: 84.98 kB / 0.5145 GB, free: 36.75 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001177/0.3529, allocations: 9.219 kB / 0.5145 GB, free: 36.75 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000111/0.3531, allocations: 32.91 kB / 0.5146 GB, free: 36.73 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.836e-05/0.3531, allocations: 41.36 kB / 0.5146 GB, free: 36.71 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.118e-05/0.3532, allocations: 3.094 kB / 0.5146 GB, free: 36.71 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.4e-05/0.3532, allocations: 2.844 kB / 0.5146 GB, free: 36.71 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 2.536e-05/0.3532, allocations: 14 kB / 0.5146 GB, free: 36.71 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 5.149e-05/0.3533, allocations: 71.77 kB / 0.5147 GB, free: 36.65 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001026/0.3534, allocations: 65.84 kB / 0.5147 GB, free: 36.63 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.111e-06/0.3534, allocations: 4 kB / 0.5147 GB, free: 36.62 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.056e-06/0.3534, allocations: 0 / 0.5147 GB, free: 36.62 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.538e-06/0.3534, allocations: 3.938 kB / 0.5148 GB, free: 36.62 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.000541/0.354, allocations: 387.1 kB / 0.5151 GB, free: 36.25 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.737e-05/0.354, allocations: 8.844 kB / 0.5151 GB, free: 36.25 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.695e-05/0.3541, allocations: 13.89 kB / 0.5151 GB, free: 36.24 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.783e-05/0.3542, allocations: 167.2 kB / 0.5153 GB, free: 36.04 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.507e-05/0.3542, allocations: 14.16 kB / 0.5153 GB, free: 36.04 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.601e-05/0.3542, allocations: 6.516 kB / 0.5153 GB, free: 36.04 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001716/0.3544, allocations: 86.44 kB / 0.5154 GB, free: 35.98 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.518e-06/0.3544, allocations: 0 / 0.5154 GB, free: 35.98 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.322e-05/0.3544, allocations: 14.08 kB / 0.5154 GB, free: 35.98 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.554e-06/0.3544, allocations: 0 / 0.5154 GB, free: 35.98 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001181/0.3546, allocations: 47.97 kB / 0.5155 GB, free: 35.96 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004522/0.355, allocations: 327.2 kB / 0.5158 GB, free: 35.66 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000187/0.3552, allocations: 95.05 kB / 0.5159 GB, free: 35.61 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.226e-05/0.3553, allocations: 43.86 kB / 0.5159 GB, free: 35.59 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.885e-05/0.3554, allocations: 14.73 kB / 0.5159 GB, free: 35.58 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002098/0.3556, allocations: 99.75 kB / 0.516 GB, free: 35.52 MB / 378.7 MB Notification: Performance of pre-optimization done (n=14): time 1.483e-06/0.3556, allocations: 4 kB / 0.516 GB, free: 35.51 MB / 378.7 MB Notification: Performance of matching and sorting (n=14): time 0.00038/0.356, allocations: 193.2 kB / 0.5162 GB, free: 35.43 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.156e-05/0.356, allocations: 57.28 kB / 0.5163 GB, free: 35.37 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.274e-05/0.3561, allocations: 118.9 kB / 0.5164 GB, free: 35.26 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.497e-05/0.3561, allocations: 36.44 kB / 0.5164 GB, free: 35.22 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.95e-05/0.3561, allocations: 91.08 kB / 0.5165 GB, free: 35.13 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.017e-05/0.3562, allocations: 41.16 kB / 0.5165 GB, free: 35.1 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.621e-06/0.3562, allocations: 0 / 0.5165 GB, free: 35.1 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.321e-05/0.3562, allocations: 324.7 kB / 0.5168 GB, free: 34.78 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.479e-05/0.3563, allocations: 37.58 kB / 0.5169 GB, free: 34.77 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.409e-05/0.3564, allocations: 75.66 kB / 0.517 GB, free: 34.71 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001604/0.3566, allocations: 128.1 kB / 0.5171 GB, free: 34.62 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.3566, allocations: 4 kB / 0.5171 GB, free: 34.61 MB / 378.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002506/0.3569, allocations: 156.9 kB / 0.5172 GB, free: 34.54 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.403e-05/0.3569, allocations: 5.594 kB / 0.5172 GB, free: 34.54 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.3569, allocations: 1.547 kB / 0.5172 GB, free: 34.54 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.497e-05/0.3569, allocations: 6.828 kB / 0.5172 GB, free: 34.54 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001145/0.357, allocations: 27.02 kB / 0.5173 GB, free: 34.53 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.247e-06/0.357, allocations: 11.14 kB / 0.5173 GB, free: 34.52 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.83e-05/0.3571, allocations: 6.484 kB / 0.5173 GB, free: 34.52 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.478e-05/0.3571, allocations: 9.438 kB / 0.5173 GB, free: 34.52 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.firstOrderHold.firstTrigger,firstOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.ySample,$whenCondition1,zeroOrderHold.sampleTrigger,$whenCondition2,firstOrderHold.sampleTrigger,zeroOrderHold.ySample,$PRE.firstOrderHold.tSample,firstOrderHold.tSample,$PRE.firstOrderHold.uSample,firstOrderHold.uSample,$PRE.firstOrderHold.pre_uSample,firstOrderHold.pre_uSample,$PRE.firstOrderHold.c,firstOrderHold.c) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.052e-05/0.3572, allocations: 130 kB / 0.5174 GB, free: 34.39 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.533e-05/0.3572, allocations: 8.859 kB / 0.5174 GB, free: 34.39 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.074e-05/0.3573, allocations: 11.88 kB / 0.5174 GB, free: 34.38 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.3573, allocations: 0.9688 kB / 0.5174 GB, free: 34.38 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.3573, allocations: 5.156 kB / 0.5174 GB, free: 34.37 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/0.3573, allocations: 4.891 kB / 0.5174 GB, free: 34.37 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004252/0.3577, allocations: 448 kB / 0.5179 GB, free: 34.01 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/0.3577, allocations: 0.6094 kB / 0.5179 GB, free: 34.01 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.236e-05/0.3578, allocations: 14.61 kB / 0.5179 GB, free: 34 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.3578, allocations: 0 / 0.5179 GB, free: 34 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.505e-05/0.3578, allocations: 8.797 kB / 0.5179 GB, free: 34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.3578, allocations: 0 / 0.5179 GB, free: 34 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.3578, allocations: 4.375 kB / 0.5179 GB, free: 34 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002475/0.3581, allocations: 252.3 kB / 0.5181 GB, free: 33.83 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.532e-05/0.3581, allocations: 87.64 kB / 0.5182 GB, free: 33.73 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.131e-05/0.3582, allocations: 3.422 kB / 0.5182 GB, free: 33.73 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.766e-05/0.3583, allocations: 20.56 kB / 0.5182 GB, free: 33.71 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.486e-05/0.3583, allocations: 10.23 kB / 0.5183 GB, free: 33.71 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.888e-05/0.3583, allocations: 7.891 kB / 0.5183 GB, free: 33.71 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.423e-05/0.3584, allocations: 95.08 kB / 0.5184 GB, free: 33.63 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3584, allocations: 0 / 0.5184 GB, free: 33.63 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002115/0.3586, allocations: 23.25 kB / 0.5184 GB, free: 33.62 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 (firstOrderHold.sampleTrigger,zeroOrderHold.sampleTrigger,$whenCondition2,$whenCondition1,zeroOrderHold.firstTrigger,zeroOrderHold.ySample,firstOrderHold.firstTrigger,firstOrderHold.tSample,firstOrderHold.uSample,firstOrderHold.pre_uSample,firstOrderHold.c) * Number of discrete states: 3 (zeroOrderHold.ySample,firstOrderHold.uSample,firstOrderHold.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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 8.53e-05/0.3587, allocations: 103.7 kB / 0.5185 GB, free: 33.54 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002152/0.3589, allocations: 114.8 kB / 0.5186 GB, free: 33.5 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.3589, allocations: 0 / 0.5186 GB, free: 33.5 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 9.862e-05/0.359, allocations: 50.89 kB / 0.5186 GB, free: 33.49 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002754/0.3593, allocations: 13.31 kB / 0.5186 GB, free: 33.48 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004221/0.3597, allocations: 235.7 kB / 0.5189 GB, free: 33.3 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000143/0.3599, allocations: 0.6952 MB / 0.5196 GB, free: 32.61 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 4.267e-05/0.3599, allocations: 11.59 kB / 0.5196 GB, free: 32.6 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.516e-05/0.36, allocations: 16.95 kB / 0.5196 GB, free: 32.59 MB / 378.7 MB Notification: Performance of SimCode: time 2.1e-07/0.36, allocations: 0 / 0.5196 GB, free: 32.59 MB / 378.7 MB Notification: Performance of Templates: time 0.003018/0.363, allocations: 0.9025 MB / 0.5205 GB, free: 32.5 MB / 378.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/FirstOrderHold/FirstOrderHold.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches