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/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.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_3.2.3_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_3.2.3_ModelicaTest.Blocks.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001191/0.001191, allocations: 183 kB / 16.63 MB, free: 5.137 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.334/1.334, allocations: 205.1 MB / 222.5 MB, free: 8.477 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.001058/0.001057, allocations: 100.9 kB / 269.9 MB, free: 8.426 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3287/0.3287, allocations: 43.49 MB / 360.7 MB, free: 51.23 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009993/0.0009994, allocations: 55.91 kB / 429.2 MB, free: 6.391 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.109, allocations: 57.76 MB / 487 MB, free: 12.55 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002746/0.1118, allocations: 1.582 MB / 488.6 MB, free: 10.96 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.000932/0.1127, allocations: 0.5307 MB / 489.1 MB, free: 10.42 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.122e-05/0.1128, allocations: 0 / 489.1 MB, free: 10.42 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 3.209e-05/0.1128, allocations: 7.922 kB / 489.1 MB, free: 10.41 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 7.703e-05/0.1129, allocations: 7.938 kB / 489.1 MB, free: 10.4 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001847/0.1131, allocations: 35.89 kB / 489.2 MB, free: 10.37 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001093/0.1133, allocations: 83.72 kB / 489.2 MB, free: 10.29 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.963e-05/0.1134, allocations: 15.97 kB / 489.3 MB, free: 10.27 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001139/0.1135, allocations: 31.91 kB / 489.3 MB, free: 10.24 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.958e-05/0.1136, allocations: 43.83 kB / 489.3 MB, free: 10.2 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.964e-05/0.1136, allocations: 4 kB / 489.3 MB, free: 10.19 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.637e-05/0.1136, allocations: 4 kB / 489.3 MB, free: 10.19 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 2.914e-05/0.1136, allocations: 19.91 kB / 489.4 MB, free: 10.17 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 5.104e-05/0.1137, allocations: 35.8 kB / 489.4 MB, free: 10.13 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001122/0.1138, allocations: 75.94 kB / 489.5 MB, free: 10.06 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.1138, allocations: 0 / 489.5 MB, free: 10.06 MB / 378.7 MB Notification: Performance of FrontEnd: time 9.12e-07/0.1138, allocations: 3.938 kB / 489.5 MB, free: 10.05 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.948e-06/0.1138, allocations: 0 / 489.5 MB, free: 10.05 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.000632/0.1145, allocations: 403.2 kB / 489.9 MB, free: 9.613 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.521e-05/0.1145, allocations: 8.031 kB / 489.9 MB, free: 9.605 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.544e-05/0.1146, allocations: 8.844 kB / 489.9 MB, free: 9.598 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001288/0.1147, allocations: 180.2 kB / 490.1 MB, free: 9.383 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.017e-05/0.1148, allocations: 4.375 kB / 490.1 MB, free: 9.379 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.761e-05/0.1148, allocations: 12.36 kB / 490.1 MB, free: 9.367 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001953/0.115, allocations: 89.89 kB / 490.2 MB, free: 9.273 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.135e-06/0.115, allocations: 4 kB / 490.2 MB, free: 9.27 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.335e-05/0.115, allocations: 4 kB / 490.2 MB, free: 9.266 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.187e-06/0.115, allocations: 0 / 490.2 MB, free: 9.266 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001229/0.1152, allocations: 43.97 kB / 490.2 MB, free: 9.223 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004979/0.1157, allocations: 328.8 kB / 490.5 MB, free: 8.852 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001663/0.1158, allocations: 86.55 kB / 490.6 MB, free: 8.758 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.527e-05/0.1159, allocations: 48.78 kB / 490.7 MB, free: 8.707 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.777e-05/0.116, allocations: 0 / 490.7 MB, free: 8.707 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002083/0.1162, allocations: 91.36 kB / 490.8 MB, free: 8.605 MB / 378.7 MB Notification: Performance of pre-optimization done (n=14): time 1.513e-06/0.1162, allocations: 224 / 490.8 MB, free: 8.605 MB / 378.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003909/0.1166, allocations: 189.7 kB / 490.9 MB, free: 8.414 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.722e-05/0.1166, allocations: 67.34 kB / 491 MB, free: 8.336 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.855e-05/0.1167, allocations: 121.7 kB / 491.1 MB, free: 8.207 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.085e-05/0.1168, allocations: 33.7 kB / 491.2 MB, free: 8.168 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.388e-05/0.1168, allocations: 88.42 kB / 491.2 MB, free: 8.078 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.887e-05/0.1169, allocations: 39.53 kB / 491.3 MB, free: 8.039 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.208e-05/0.1169, allocations: 37.7 kB / 491.3 MB, free: 7.996 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.765e-05/0.117, allocations: 322.8 kB / 491.6 MB, free: 7.672 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.146e-05/0.1171, allocations: 39.98 kB / 491.7 MB, free: 7.633 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.706e-05/0.1172, allocations: 77.5 kB / 491.8 MB, free: 7.539 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001795/0.1174, allocations: 121.1 kB / 491.9 MB, free: 7.402 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.1174, allocations: 3.984 kB / 491.9 MB, free: 7.398 MB / 378.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002489/0.1177, allocations: 157.3 kB / 492 MB, free: 7.238 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.375e-05/0.1177, allocations: 7.938 kB / 492 MB, free: 7.23 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.1177, allocations: 4 kB / 492 MB, free: 7.227 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.167e-05/0.1177, allocations: 160 / 492 MB, free: 7.227 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000105/0.1178, allocations: 35.86 kB / 492.1 MB, free: 7.191 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.174e-06/0.1178, allocations: 4 kB / 492.1 MB, free: 7.188 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.196e-05/0.1179, allocations: 11.84 kB / 492.1 MB, free: 7.176 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.309e-05/0.1179, allocations: 8 kB / 492.1 MB, free: 7.168 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 (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 8.757e-05/0.118, allocations: 128 kB / 492.2 MB, free: 7.035 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.885e-05/0.1181, allocations: 11.89 kB / 492.2 MB, free: 7.023 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.987e-05/0.1181, allocations: 12.5 kB / 492.2 MB, free: 7.016 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.841e-06/0.1181, allocations: 3.938 kB / 492.3 MB, free: 7.012 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.1181, allocations: 4 kB / 492.3 MB, free: 7.008 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.035e-06/0.1181, allocations: 0 / 492.3 MB, free: 7.008 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004717/0.1186, allocations: 442.4 kB / 492.7 MB, free: 6.52 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.045e-06/0.1186, allocations: 3.938 kB / 492.7 MB, free: 6.516 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.43e-05/0.1187, allocations: 11.98 kB / 492.7 MB, free: 6.504 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.1187, allocations: 0 / 492.7 MB, free: 6.504 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.214e-05/0.1187, allocations: 4 kB / 492.7 MB, free: 6.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.1187, allocations: 0 / 492.7 MB, free: 6.5 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.1187, allocations: 4 kB / 492.7 MB, free: 6.496 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005547/0.1193, allocations: 0.8494 MB / 493.6 MB, free: 5.59 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.586e-05/0.1193, allocations: 88.95 kB / 493.6 MB, free: 5.484 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.258e-05/0.1194, allocations: 3.984 kB / 493.7 MB, free: 5.48 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001012/0.1195, allocations: 4 kB / 493.7 MB, free: 5.477 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.861e-05/0.1195, allocations: 15.98 kB / 493.7 MB, free: 5.461 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.826e-05/0.1195, allocations: 7.984 kB / 493.7 MB, free: 5.453 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.465e-05/0.1196, allocations: 91.22 kB / 493.8 MB, free: 5.363 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1196, allocations: 0 / 493.8 MB, free: 5.363 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003303/0.1199, allocations: 31.92 kB / 493.8 MB, free: 5.332 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 9.551e-05/0.12, allocations: 111.1 kB / 493.9 MB, free: 5.211 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002161/0.1203, allocations: 108 kB / 494 MB, free: 5.105 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.1203, allocations: 4.281 kB / 494 MB, free: 5.102 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001004/0.1204, allocations: 47.92 kB / 494.1 MB, free: 5.055 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002491/0.1206, allocations: 19.92 kB / 494.1 MB, free: 5.035 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004584/0.1211, allocations: 356.3 kB / 494.4 MB, free: 4.648 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002021/0.1213, allocations: 0.6926 MB / 495.1 MB, free: 3.93 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 4.052e-05/0.1214, allocations: 12.88 kB / 495.1 MB, free: 3.918 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.279e-05/0.1214, allocations: 15.44 kB / 495.2 MB, free: 3.902 MB / 378.7 MB Notification: Performance of SimCode: time 2.1e-07/0.1214, allocations: 0 / 495.2 MB, free: 3.902 MB / 378.7 MB Notification: Performance of Templates: time 0.002934/0.1244, allocations: 0.9683 MB / 496.1 MB, free: 2.938 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.makefile (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) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/FirstOrderHold/FirstOrderHold.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches