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.001466/0.001466, allocations: 109 kB / 20.45 MB, free: 1.52 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.001723/0.001723, allocations: 215.3 kB / 23.76 MB, free: 4.746 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.266/1.266, allocations: 207.6 MB / 234.5 MB, free: 9.992 MB / 190.1 MB " [Timeout remaining time 179] 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.1984/0.1984, allocations: 44.23 MB / 331 MB, free: 9.539 MB / 270.1 MB " [Timeout remaining time 180] 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.002208/0.002208, allocations: 78.55 kB / 468.7 MB, free: 4.031 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09933/0.1015, allocations: 61.03 MB / 0.5174 GB, free: 6.855 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002827/0.1044, allocations: 1.544 MB / 0.5189 GB, free: 5.305 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009622/0.1053, allocations: 0.5386 MB / 0.5194 GB, free: 4.758 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.853e-05/0.1054, allocations: 3.938 kB / 0.5194 GB, free: 4.754 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.38e-05/0.1054, allocations: 7.922 kB / 0.5194 GB, free: 4.746 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.45e-05/0.1055, allocations: 11.88 kB / 0.5194 GB, free: 4.734 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001887/0.1057, allocations: 35.89 kB / 0.5194 GB, free: 4.699 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001232/0.1058, allocations: 87.7 kB / 0.5195 GB, free: 4.613 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001101/0.1059, allocations: 23.95 kB / 0.5196 GB, free: 4.59 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001279/0.106, allocations: 39.86 kB / 0.5196 GB, free: 4.551 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.482e-05/0.1061, allocations: 39.83 kB / 0.5196 GB, free: 4.512 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.581e-05/0.1061, allocations: 8 kB / 0.5196 GB, free: 4.504 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.575e-05/0.1062, allocations: 8 kB / 0.5196 GB, free: 4.496 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.957e-05/0.1062, allocations: 23.91 kB / 0.5197 GB, free: 4.473 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.949e-05/0.1062, allocations: 27.88 kB / 0.5197 GB, free: 4.445 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001317/0.1064, allocations: 83.58 kB / 0.5198 GB, free: 4.363 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.1064, allocations: 0 / 0.5198 GB, free: 4.363 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.1064, allocations: 0 / 0.5198 GB, free: 4.363 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.536e-06/0.1064, allocations: 0 / 0.5198 GB, free: 4.363 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.0006306/0.107, allocations: 326.1 kB / 0.5201 GB, free: 4.016 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.069e-05/0.107, allocations: 8.031 kB / 0.5201 GB, free: 4.008 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.062e-05/0.1071, allocations: 8.891 kB / 0.5201 GB, free: 4 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001342/0.1072, allocations: 130.4 kB / 0.5202 GB, free: 3.848 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.742e-05/0.1072, allocations: 4.359 kB / 0.5202 GB, free: 3.844 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.107e-05/0.1073, allocations: 8.375 kB / 0.5202 GB, free: 3.836 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001882/0.1074, allocations: 89.95 kB / 0.5203 GB, free: 3.742 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.876e-06/0.1075, allocations: 0 / 0.5203 GB, free: 3.742 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.736e-05/0.1075, allocations: 8 kB / 0.5203 GB, free: 3.734 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.037e-06/0.1075, allocations: 0 / 0.5203 GB, free: 3.734 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001224/0.1076, allocations: 43.97 kB / 0.5204 GB, free: 3.691 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005634/0.1082, allocations: 295.7 kB / 0.5207 GB, free: 3.359 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001813/0.1083, allocations: 86.53 kB / 0.5207 GB, free: 3.266 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.808e-05/0.1084, allocations: 44.84 kB / 0.5208 GB, free: 3.219 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.987e-05/0.1085, allocations: 0 / 0.5208 GB, free: 3.219 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002142/0.1087, allocations: 103.4 kB / 0.5209 GB, free: 3.105 MB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 1.212e-06/0.1087, allocations: 224 / 0.5209 GB, free: 3.105 MB / 398.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004197/0.1091, allocations: 189.6 kB / 0.5211 GB, free: 2.914 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.629e-05/0.1091, allocations: 59.34 kB / 0.5211 GB, free: 2.844 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001028/0.1092, allocations: 117.8 kB / 0.5212 GB, free: 2.719 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.464e-05/0.1093, allocations: 29.7 kB / 0.5213 GB, free: 2.684 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.486e-05/0.1093, allocations: 96.36 kB / 0.5213 GB, free: 2.586 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.229e-05/0.1094, allocations: 35.72 kB / 0.5214 GB, free: 2.551 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.214e-05/0.1094, allocations: 37.72 kB / 0.5214 GB, free: 2.508 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001786/0.1096, allocations: 322.8 kB / 0.5217 GB, free: 2.184 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001011/0.1097, allocations: 43.97 kB / 0.5218 GB, free: 2.141 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001131/0.1098, allocations: 77.06 kB / 0.5218 GB, free: 2.047 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002119/0.11, allocations: 125 kB / 0.522 GB, free: 1.906 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.454e-06/0.11, allocations: 4 kB / 0.522 GB, free: 1.902 MB / 398.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002793/0.1103, allocations: 161.4 kB / 0.5221 GB, free: 1.738 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.383e-05/0.1103, allocations: 4 kB / 0.5221 GB, free: 1.734 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.037e-06/0.1103, allocations: 4.531 kB / 0.5221 GB, free: 1.73 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.471e-05/0.1103, allocations: 4 kB / 0.5221 GB, free: 1.727 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001089/0.1105, allocations: 27.86 kB / 0.5222 GB, free: 1.699 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.57e-06/0.1105, allocations: 0 / 0.5222 GB, free: 1.699 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.368e-05/0.1105, allocations: 19.89 kB / 0.5222 GB, free: 1.68 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.089e-05/0.1105, allocations: 4 kB / 0.5222 GB, free: 1.676 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.0001133/0.1106, allocations: 135.7 kB / 0.5223 GB, free: 1.535 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.779e-05/0.1107, allocations: 7.953 kB / 0.5223 GB, free: 1.527 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.924e-05/0.1107, allocations: 8.438 kB / 0.5223 GB, free: 1.516 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.1107, allocations: 11.94 kB / 0.5223 GB, free: 1.504 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.516e-06/0.1107, allocations: 0 / 0.5223 GB, free: 1.504 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.331e-06/0.1107, allocations: 3.984 kB / 0.5223 GB, free: 1.5 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005313/0.1112, allocations: 409.5 kB / 0.5227 GB, free: 1.051 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.088e-06/0.1112, allocations: 3.938 kB / 0.5227 GB, free: 1.047 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.313e-05/0.1113, allocations: 7.984 kB / 0.5227 GB, free: 1.039 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.989e-06/0.1113, allocations: 4 kB / 0.5227 GB, free: 1.035 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.18e-05/0.1113, allocations: 4 kB / 0.5228 GB, free: 1.031 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.1113, allocations: 4 kB / 0.5228 GB, free: 1.027 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.1113, allocations: 0 / 0.5228 GB, free: 1.027 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003161/0.1116, allocations: 243.5 kB / 0.523 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.803e-05/0.1117, allocations: 15.88 kB / 0.523 GB, free: 0.7578 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.205e-05/0.1117, allocations: 4 kB / 0.523 GB, free: 0.7539 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001058/0.1118, allocations: 11.98 kB / 0.523 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.083e-05/0.1118, allocations: 7.984 kB / 0.523 GB, free: 0.7344 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.9e-05/0.1118, allocations: 12 kB / 0.523 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.545e-05/0.1119, allocations: 95.2 kB / 0.5231 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1119, allocations: 0 / 0.5231 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002519/0.1121, allocations: 20 kB / 0.5231 GB, free: 0.6094 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 9.578e-05/0.1122, allocations: 103.2 kB / 0.5232 GB, free: 0.5 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002474/0.1125, allocations: 103.8 kB / 0.5233 GB, free: 408 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.1125, allocations: 320 / 0.5233 GB, free: 408 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001153/0.1126, allocations: 55.91 kB / 0.5234 GB, free: 352 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002523/0.1129, allocations: 11.94 kB / 0.5234 GB, free: 340 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004387/0.1133, allocations: 225.7 kB / 0.5236 GB, free: 80 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003472/0.1136, allocations: 0.6924 MB / 0.5243 GB, free: 15.36 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.378e-05/0.1137, allocations: 23.42 kB / 0.5243 GB, free: 15.34 MB / 414.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1137, allocations: 11.88 kB / 0.5243 GB, free: 15.32 MB / 414.1 MB Notification: Performance of Templates: time 0.002871/0.1166, allocations: 1.209 MB / 0.5255 GB, free: 14.12 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: 6.39010456809774]