Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001701/0.001701, allocations: 100.4 kB / 20.45 MB, free: 1.383 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002052/0.002052, allocations: 205.2 kB / 23.74 MB, free: 4.543 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.66/1.66, allocations: 207.7 MB / 234.6 MB, free: 9.797 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2653/0.2653, allocations: 44.26 MB / 331.1 MB, free: 9.316 MB / 270.1 MB " [Timeout remaining time 179] 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 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 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5041,variableFilter="time|firstOrderHold.c|firstOrderHold.firstTrigger|firstOrderHold.pre_uSample|firstOrderHold.tSample|firstOrderHold.uSample|zeroOrderHold.firstTrigger|zeroOrderHold.ySample",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold") translateModel(ModelicaTest.Blocks.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5041,variableFilter="time|firstOrderHold.c|firstOrderHold.firstTrigger|firstOrderHold.pre_uSample|firstOrderHold.tSample|firstOrderHold.uSample|zeroOrderHold.firstTrigger|zeroOrderHold.ySample",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002628/0.002628, allocations: 67.91 kB / 468.7 MB, free: 3.871 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1291/0.1317, allocations: 61.04 MB / 0.5174 GB, free: 6.695 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.003482/0.1352, allocations: 1.518 MB / 0.5188 GB, free: 5.172 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001108/0.1363, allocations: 0.4996 MB / 0.5193 GB, free: 4.664 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.205e-05/0.1364, allocations: 0 / 0.5193 GB, free: 4.664 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.499e-05/0.1364, allocations: 7.875 kB / 0.5193 GB, free: 4.656 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001036/0.1365, allocations: 19.84 kB / 0.5194 GB, free: 4.637 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002426/0.1368, allocations: 31.91 kB / 0.5194 GB, free: 4.605 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001452/0.1369, allocations: 95.69 kB / 0.5195 GB, free: 4.512 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001187/0.137, allocations: 15.97 kB / 0.5195 GB, free: 4.496 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001437/0.1372, allocations: 35.92 kB / 0.5195 GB, free: 4.461 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.371e-05/0.1373, allocations: 35.83 kB / 0.5196 GB, free: 4.426 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.472e-05/0.1373, allocations: 8 kB / 0.5196 GB, free: 4.418 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.814e-05/0.1373, allocations: 7.938 kB / 0.5196 GB, free: 4.41 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.191e-05/0.1373, allocations: 19.92 kB / 0.5196 GB, free: 4.391 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.901e-05/0.1374, allocations: 31.86 kB / 0.5196 GB, free: 4.359 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001557/0.1376, allocations: 79.64 kB / 0.5197 GB, free: 4.281 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.1376, allocations: 0 / 0.5197 GB, free: 4.281 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.1376, allocations: 0 / 0.5197 GB, free: 4.281 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.806e-06/0.1376, allocations: 0 / 0.5197 GB, free: 4.281 MB / 398.1 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.0007549/0.1383, allocations: 330 kB / 0.52 GB, free: 3.93 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.343e-05/0.1384, allocations: 8.031 kB / 0.52 GB, free: 3.922 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.409e-05/0.1384, allocations: 8.891 kB / 0.52 GB, free: 3.914 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002059/0.1387, allocations: 126.3 kB / 0.5202 GB, free: 3.766 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.752e-05/0.1387, allocations: 8.359 kB / 0.5202 GB, free: 3.758 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.833e-05/0.1387, allocations: 12.38 kB / 0.5202 GB, free: 3.746 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002563/0.139, allocations: 85.95 kB / 0.5203 GB, free: 3.656 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.492e-05/0.139, allocations: 4 kB / 0.5203 GB, free: 3.652 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.109e-05/0.139, allocations: 8 kB / 0.5203 GB, free: 3.645 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.69e-06/0.139, allocations: 0 / 0.5203 GB, free: 3.645 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001443/0.1392, allocations: 43.97 kB / 0.5203 GB, free: 3.602 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006668/0.1398, allocations: 252.4 kB / 0.5206 GB, free: 3.324 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002272/0.14, allocations: 82.48 kB / 0.5206 GB, free: 3.234 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.869e-05/0.1401, allocations: 36.83 kB / 0.5207 GB, free: 3.195 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.448e-05/0.1402, allocations: 8 kB / 0.5207 GB, free: 3.188 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003178/0.1405, allocations: 99.48 kB / 0.5208 GB, free: 3.078 MB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 2.305e-06/0.1405, allocations: 4 kB / 0.5208 GB, free: 3.074 MB / 398.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005271/0.141, allocations: 181.5 kB / 0.5209 GB, free: 2.891 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.936e-05/0.1411, allocations: 67.38 kB / 0.521 GB, free: 2.812 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001335/0.1412, allocations: 113.8 kB / 0.5211 GB, free: 2.691 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.351e-05/0.1413, allocations: 33.7 kB / 0.5212 GB, free: 2.652 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.424e-05/0.1414, allocations: 96.36 kB / 0.5212 GB, free: 2.555 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.319e-05/0.1414, allocations: 27.75 kB / 0.5213 GB, free: 2.527 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.255e-05/0.1415, allocations: 41.7 kB / 0.5213 GB, free: 2.48 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001799/0.1417, allocations: 330.8 kB / 0.5216 GB, free: 2.148 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.225e-05/0.1418, allocations: 31.98 kB / 0.5217 GB, free: 2.117 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001232/0.1419, allocations: 77.12 kB / 0.5217 GB, free: 2.023 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002164/0.1421, allocations: 129.2 kB / 0.5219 GB, free: 1.879 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.235e-06/0.1421, allocations: 4 kB / 0.5219 GB, free: 1.875 MB / 398.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002936/0.1424, allocations: 153.5 kB / 0.522 GB, free: 1.719 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.216e-05/0.1424, allocations: 8 kB / 0.522 GB, free: 1.711 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/0.1424, allocations: 0 / 0.522 GB, free: 1.711 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.545e-05/0.1424, allocations: 0 / 0.522 GB, free: 1.711 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001119/0.1426, allocations: 23.92 kB / 0.522 GB, free: 1.688 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.164e-05/0.1426, allocations: 8.312 kB / 0.522 GB, free: 1.68 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.943e-05/0.1426, allocations: 12.11 kB / 0.5221 GB, free: 1.668 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.353e-05/0.1427, allocations: 8 kB / 0.5221 GB, free: 1.66 MB / 398.1 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 (firstOrderHold.firstTrigger,$PRE.firstOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.ySample,zeroOrderHold.sampleTrigger,$whenCondition1,firstOrderHold.sampleTrigger,$whenCondition2,firstOrderHold.c,$PRE.firstOrderHold.c,firstOrderHold.pre_uSample,$PRE.firstOrderHold.pre_uSample,firstOrderHold.uSample,$PRE.firstOrderHold.uSample,firstOrderHold.tSample,$PRE.firstOrderHold.tSample,zeroOrderHold.ySample) * 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 0.0001337/0.1428, allocations: 135.8 kB / 0.5222 GB, free: 1.52 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.952e-05/0.1428, allocations: 15.89 kB / 0.5222 GB, free: 1.504 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.622e-05/0.1428, allocations: 8.438 kB / 0.5222 GB, free: 1.492 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.1428, allocations: 0 / 0.5222 GB, free: 1.492 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.612e-06/0.1429, allocations: 11.88 kB / 0.5222 GB, free: 1.48 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.387e-06/0.1429, allocations: 3.938 kB / 0.5222 GB, free: 1.477 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005528/0.1434, allocations: 378.1 kB / 0.5226 GB, free: 1.07 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.579e-06/0.1434, allocations: 3.984 kB / 0.5226 GB, free: 1.066 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.271e-05/0.1435, allocations: 15.94 kB / 0.5226 GB, free: 1.051 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.1435, allocations: 0 / 0.5226 GB, free: 1.051 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.484e-05/0.1435, allocations: 7.938 kB / 0.5226 GB, free: 1.043 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.606e-06/0.1435, allocations: 3.984 kB / 0.5226 GB, free: 1.039 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.1435, allocations: 0 / 0.5226 GB, free: 1.039 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003474/0.1438, allocations: 251.5 kB / 0.5229 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.97e-05/0.1439, allocations: 11.94 kB / 0.5229 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.776e-05/0.1439, allocations: 7.938 kB / 0.5229 GB, free: 0.7578 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001069/0.144, allocations: 11.98 kB / 0.5229 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.095e-05/0.144, allocations: 11.98 kB / 0.5229 GB, free: 0.7344 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.002e-05/0.144, allocations: 4 kB / 0.5229 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.212e-05/0.1441, allocations: 91.27 kB / 0.523 GB, free: 0.6406 MB / 398.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1441, allocations: 0 / 0.523 GB, free: 0.6406 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002561/0.1444, allocations: 20 kB / 0.523 GB, free: 0.6211 MB / 398.1 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 0.0001182/0.1445, allocations: 111.1 kB / 0.5231 GB, free: 0.5039 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002643/0.1448, allocations: 96.64 kB / 0.5232 GB, free: 420 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.1448, allocations: 320 / 0.5232 GB, free: 420 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001152/0.1449, allocations: 55.91 kB / 0.5233 GB, free: 364 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002838/0.1452, allocations: 12.23 kB / 0.5233 GB, free: 352 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000532/0.1457, allocations: 229.7 kB / 0.5235 GB, free: 88 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001044/0.1458, allocations: 79.58 kB / 0.5236 GB, free: 15.99 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.406e-05/0.1458, allocations: 11.44 kB / 0.5236 GB, free: 15.98 MB / 414.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1458, allocations: 288 / 0.5236 GB, free: 15.98 MB / 414.1 MB Notification: Performance of Templates: time 0.003516/0.1493, allocations: 1.258 MB / 0.5248 GB, free: 14.72 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/FirstOrderHold/FirstOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.588415623176843]