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.001941/0.001941, allocations: 108.3 kB / 19.7 MB, free: 1.918 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.002945/0.002945, allocations: 214.1 kB / 22.99 MB, free: 4.977 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.717/1.717, allocations: 207.7 MB / 233.8 MB, free: 9.805 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.2523/0.2523, allocations: 44.27 MB / 330.3 MB, free: 9.309 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.002294/0.002294, allocations: 66.72 kB / 468 MB, free: 3.852 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1368/0.1391, allocations: 61.05 MB / 0.5166 GB, free: 6.672 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002981/0.142, allocations: 1.51 MB / 0.5181 GB, free: 5.152 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009731/0.143, allocations: 0.4957 MB / 0.5186 GB, free: 4.648 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.253e-05/0.1431, allocations: 0 / 0.5186 GB, free: 4.648 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.332e-05/0.1431, allocations: 11.88 kB / 0.5186 GB, free: 4.637 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 9.098e-05/0.1432, allocations: 15.84 kB / 0.5186 GB, free: 4.621 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002459/0.1434, allocations: 35.91 kB / 0.5187 GB, free: 4.586 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001323/0.1436, allocations: 95.69 kB / 0.5187 GB, free: 4.492 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.711e-05/0.1437, allocations: 7.984 kB / 0.5188 GB, free: 4.484 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001225/0.1438, allocations: 43.84 kB / 0.5188 GB, free: 4.441 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.325e-05/0.1439, allocations: 35.83 kB / 0.5188 GB, free: 4.406 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.414e-05/0.1439, allocations: 8 kB / 0.5188 GB, free: 4.398 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.959e-05/0.1439, allocations: 11.94 kB / 0.5189 GB, free: 4.387 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.201e-05/0.144, allocations: 15.98 kB / 0.5189 GB, free: 4.371 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 8.066e-05/0.144, allocations: 31.86 kB / 0.5189 GB, free: 4.34 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001573/0.1442, allocations: 79.58 kB / 0.519 GB, free: 4.262 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.416e-06/0.1442, allocations: 4 kB / 0.519 GB, free: 4.258 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.1442, allocations: 4 kB / 0.519 GB, free: 4.254 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.572e-06/0.1442, allocations: 0 / 0.519 GB, free: 4.254 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.0007005/0.1449, allocations: 322.1 kB / 0.5193 GB, free: 3.91 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.516e-05/0.1449, allocations: 8.031 kB / 0.5193 GB, free: 3.902 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001132/0.1451, allocations: 12.89 kB / 0.5193 GB, free: 3.891 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001297/0.1452, allocations: 118.4 kB / 0.5194 GB, free: 3.75 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.222e-05/0.1452, allocations: 8.359 kB / 0.5194 GB, free: 3.742 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.116e-05/0.1452, allocations: 16.31 kB / 0.5194 GB, free: 3.727 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002149/0.1454, allocations: 89.95 kB / 0.5195 GB, free: 3.633 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.548e-06/0.1455, allocations: 0 / 0.5195 GB, free: 3.633 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.254e-05/0.1455, allocations: 0 / 0.5195 GB, free: 3.633 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5e-06/0.1455, allocations: 0 / 0.5195 GB, free: 3.633 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001305/0.1456, allocations: 43.97 kB / 0.5196 GB, free: 3.59 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005329/0.1461, allocations: 256.4 kB / 0.5198 GB, free: 3.309 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000197/0.1463, allocations: 78.48 kB / 0.5199 GB, free: 3.223 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001012/0.1464, allocations: 48.83 kB / 0.5199 GB, free: 3.172 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.211e-05/0.1465, allocations: 0 / 0.5199 GB, free: 3.172 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002283/0.1467, allocations: 103.5 kB / 0.52 GB, free: 3.059 MB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 1.593e-06/0.1467, allocations: 0 / 0.52 GB, free: 3.059 MB / 398.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004741/0.1472, allocations: 189.8 kB / 0.5202 GB, free: 2.867 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.273e-05/0.1472, allocations: 55.39 kB / 0.5203 GB, free: 2.801 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001098/0.1473, allocations: 121.8 kB / 0.5204 GB, free: 2.672 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.727e-05/0.1474, allocations: 33.7 kB / 0.5204 GB, free: 2.633 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.015e-05/0.1474, allocations: 96.34 kB / 0.5205 GB, free: 2.535 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.752e-05/0.1475, allocations: 39.75 kB / 0.5205 GB, free: 2.496 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.474e-05/0.1475, allocations: 37.7 kB / 0.5206 GB, free: 2.453 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001636/0.1477, allocations: 322.8 kB / 0.5209 GB, free: 2.129 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.773e-05/0.1478, allocations: 31.98 kB / 0.5209 GB, free: 2.098 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001255/0.1479, allocations: 77.12 kB / 0.521 GB, free: 2.004 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002176/0.1481, allocations: 129 kB / 0.5211 GB, free: 1.859 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.1481, allocations: 0 / 0.5211 GB, free: 1.859 MB / 398.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002967/0.1484, allocations: 157.4 kB / 0.5213 GB, free: 1.699 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.446e-05/0.1484, allocations: 8 kB / 0.5213 GB, free: 1.691 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.1484, allocations: 0 / 0.5213 GB, free: 1.691 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.649e-05/0.1485, allocations: 4 kB / 0.5213 GB, free: 1.688 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001256/0.1486, allocations: 23.92 kB / 0.5213 GB, free: 1.664 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.937e-06/0.1486, allocations: 4.094 kB / 0.5213 GB, free: 1.66 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.451e-05/0.1487, allocations: 15.95 kB / 0.5213 GB, free: 1.645 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.523e-05/0.1487, allocations: 8 kB / 0.5213 GB, free: 1.637 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.0001379/0.1488, allocations: 136.1 kB / 0.5215 GB, free: 1.496 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.794e-05/0.1488, allocations: 7.953 kB / 0.5215 GB, free: 1.488 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.439e-05/0.1489, allocations: 8.438 kB / 0.5215 GB, free: 1.477 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.058e-06/0.1489, allocations: 4 kB / 0.5215 GB, free: 1.473 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.593e-06/0.1489, allocations: 7.875 kB / 0.5215 GB, free: 1.465 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.1489, allocations: 3.938 kB / 0.5215 GB, free: 1.461 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005527/0.1494, allocations: 378.1 kB / 0.5219 GB, free: 1.055 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.466e-06/0.1494, allocations: 7.984 kB / 0.5219 GB, free: 1.047 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.824e-05/0.1495, allocations: 15.94 kB / 0.5219 GB, free: 1.031 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.1495, allocations: 0 / 0.5219 GB, free: 1.031 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.403e-05/0.1495, allocations: 3.938 kB / 0.5219 GB, free: 1.027 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.1495, allocations: 0 / 0.5219 GB, free: 1.027 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.538e-06/0.1495, allocations: 7.984 kB / 0.5219 GB, free: 1.02 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003473/0.1499, allocations: 251.5 kB / 0.5221 GB, free: 0.7578 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.639e-05/0.1499, allocations: 11.94 kB / 0.5221 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.367e-05/0.1499, allocations: 3.938 kB / 0.5221 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000114/0.15, allocations: 15.98 kB / 0.5222 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.559e-05/0.1501, allocations: 7.984 kB / 0.5222 GB, free: 0.7188 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.752e-05/0.1501, allocations: 4 kB / 0.5222 GB, free: 0.7148 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.206e-05/0.1501, allocations: 91.27 kB / 0.5223 GB, free: 0.625 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1501, allocations: 0 / 0.5223 GB, free: 0.625 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002677/0.1504, allocations: 24 kB / 0.5223 GB, free: 0.6016 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.0001212/0.1505, allocations: 107.1 kB / 0.5224 GB, free: 500 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002726/0.1508, allocations: 100.1 kB / 0.5225 GB, free: 400 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/0.1508, allocations: 4.062 kB / 0.5225 GB, free: 396 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001166/0.1509, allocations: 51.91 kB / 0.5225 GB, free: 344 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002886/0.1512, allocations: 12 kB / 0.5225 GB, free: 332 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004755/0.1517, allocations: 199.7 kB / 0.5227 GB, free: 104 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.651e-05/0.1518, allocations: 79.58 kB / 0.5228 GB, free: 4 kB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.82e-05/0.1518, allocations: 8.969 kB / 0.5228 GB, free: 15.99 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.477e-05/0.1519, allocations: 19.44 kB / 0.5228 GB, free: 15.97 MB / 414.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1519, allocations: 0 / 0.5228 GB, free: 15.97 MB / 414.1 MB Notification: Performance of Templates: time 0.004199/0.1561, allocations: 1.099 MB / 0.5239 GB, free: 14.89 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/FirstOrderHold/FirstOrderHold.csv","/var/lib/jenkins/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: 5.344338160008192]