Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001048/0.001048, allocations: 110.1 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001124/0.001124, allocations: 199.3 kB / 19.23 MB, free: 3.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.393/1.393, allocations: 222.9 MB / 242.9 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2305/0.2305, allocations: 44.18 MB / 337.3 MB, free: 2.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001269/0.00127, allocations: 55.75 kB / 409.1 MB, free: 27.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1233/0.1246, allocations: 60.83 MB / 469.9 MB, free: 14.4 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.003013/0.1277, allocations: 1.522 MB / 471.4 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007924/0.1285, allocations: 490.8 kB / 471.9 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.533e-05/0.1286, allocations: 3.938 kB / 471.9 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.69e-05/0.1286, allocations: 3.938 kB / 471.9 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.472e-05/0.1287, allocations: 15.84 kB / 472 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001961/0.1289, allocations: 43.89 kB / 472 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000124/0.129, allocations: 87.7 kB / 472.1 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001057/0.1291, allocations: 12 kB / 472.1 MB, free: 12.21 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001048/0.1292, allocations: 35.91 kB / 472.1 MB, free: 12.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.213e-05/0.1293, allocations: 47.77 kB / 472.2 MB, free: 12.13 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.201e-05/0.1294, allocations: 11.94 kB / 472.2 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.692e-05/0.1294, allocations: 8 kB / 472.2 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.841e-05/0.1294, allocations: 15.97 kB / 472.2 MB, free: 12.1 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.634e-05/0.1295, allocations: 39.8 kB / 472.2 MB, free: 12.06 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000124/0.1296, allocations: 68.05 kB / 472.3 MB, free: 11.99 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.1296, allocations: 0 / 472.3 MB, free: 11.99 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.1296, allocations: 8 kB / 472.3 MB, free: 11.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.069e-06/0.1297, allocations: 0 / 472.3 MB, free: 11.98 MB / 350.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.0006452/0.1303, allocations: 391.2 kB / 472.7 MB, free: 11.55 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.938e-05/0.1304, allocations: 12.03 kB / 472.7 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.189e-05/0.1304, allocations: 12.83 kB / 472.7 MB, free: 11.53 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001437/0.1305, allocations: 176.2 kB / 472.9 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.529e-05/0.1306, allocations: 8.375 kB / 472.9 MB, free: 11.31 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.016e-05/0.1306, allocations: 12.31 kB / 472.9 MB, free: 11.3 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001833/0.1308, allocations: 85.95 kB / 473 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.816e-06/0.1308, allocations: 0 / 473 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.441e-05/0.1308, allocations: 4 kB / 473 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.578e-06/0.1308, allocations: 0 / 473 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001229/0.131, allocations: 43.97 kB / 473.1 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005941/0.1316, allocations: 332.7 kB / 473.4 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002204/0.1318, allocations: 94.42 kB / 473.5 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001017/0.1319, allocations: 48.77 kB / 473.5 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.621e-05/0.132, allocations: 4 kB / 473.5 MB, free: 10.63 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002769/0.1322, allocations: 98.61 kB / 473.6 MB, free: 10.53 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.693e-06/0.1323, allocations: 0 / 473.6 MB, free: 10.53 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004797/0.1327, allocations: 185.5 kB / 473.8 MB, free: 10.34 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.44e-05/0.1328, allocations: 59.39 kB / 473.9 MB, free: 10.27 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001198/0.1329, allocations: 113.8 kB / 474 MB, free: 10.15 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.86e-05/0.133, allocations: 33.7 kB / 474 MB, free: 10.11 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.286e-05/0.133, allocations: 92.41 kB / 474.1 MB, free: 10.01 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.38e-05/0.1331, allocations: 35.55 kB / 474.1 MB, free: 9.977 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.087e-05/0.1332, allocations: 41.7 kB / 474.2 MB, free: 9.93 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001538/0.1333, allocations: 326.8 kB / 474.5 MB, free: 9.602 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.449e-05/0.1334, allocations: 31.98 kB / 474.5 MB, free: 9.57 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001174/0.1335, allocations: 77.12 kB / 474.6 MB, free: 9.477 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002196/0.1338, allocations: 125 kB / 474.7 MB, free: 9.336 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.1338, allocations: 0 / 474.7 MB, free: 9.336 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002992/0.1341, allocations: 161.7 kB / 474.9 MB, free: 9.172 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.3e-05/0.1341, allocations: 8 kB / 474.9 MB, free: 9.164 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.1341, allocations: 0 / 474.9 MB, free: 9.164 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.786e-05/0.1342, allocations: 4 kB / 474.9 MB, free: 9.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001174/0.1343, allocations: 19.92 kB / 474.9 MB, free: 9.141 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.32e-05/0.1343, allocations: 7.938 kB / 474.9 MB, free: 9.133 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.865e-05/0.1344, allocations: 15.84 kB / 474.9 MB, free: 9.117 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.465e-05/0.1344, allocations: 4 kB / 474.9 MB, free: 9.113 MB / 350.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.0001654/0.1346, allocations: 132.1 kB / 475.1 MB, free: 8.973 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.102e-05/0.1346, allocations: 15.91 kB / 475.1 MB, free: 8.957 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.381e-05/0.1346, allocations: 8.5 kB / 475.1 MB, free: 8.945 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-06/0.1346, allocations: 3.938 kB / 475.1 MB, free: 8.941 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/0.1347, allocations: 4 kB / 475.1 MB, free: 8.938 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.1347, allocations: 0 / 475.1 MB, free: 8.938 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006526/0.1353, allocations: 438.5 kB / 475.5 MB, free: 8.453 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.751e-06/0.1353, allocations: 7.938 kB / 475.5 MB, free: 8.445 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.608e-05/0.1354, allocations: 12.36 kB / 475.5 MB, free: 8.434 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.916e-06/0.1354, allocations: 4 kB / 475.5 MB, free: 8.43 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.302e-05/0.1354, allocations: 0 / 475.5 MB, free: 8.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.998e-06/0.1354, allocations: 4 kB / 475.5 MB, free: 8.426 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.856e-06/0.1355, allocations: 7.875 kB / 475.6 MB, free: 8.418 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003624/0.1358, allocations: 247.4 kB / 475.8 MB, free: 8.16 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.339e-05/0.1359, allocations: 92.89 kB / 475.9 MB, free: 8.051 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.196e-05/0.1359, allocations: 7.984 kB / 475.9 MB, free: 8.043 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001084/0.1361, allocations: 11.94 kB / 475.9 MB, free: 8.031 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.861e-05/0.1361, allocations: 11.98 kB / 475.9 MB, free: 8.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.377e-05/0.1361, allocations: 7.984 kB / 475.9 MB, free: 8.012 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.365e-05/0.1362, allocations: 87.28 kB / 476 MB, free: 7.926 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.1362, allocations: 0 / 476 MB, free: 7.926 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002597/0.1365, allocations: 27.98 kB / 476 MB, free: 7.898 MB / 350.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.0001422/0.1366, allocations: 103.1 kB / 476.1 MB, free: 7.789 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002896/0.1369, allocations: 114.1 kB / 476.2 MB, free: 7.68 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.1369, allocations: 0 / 476.2 MB, free: 7.68 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001224/0.1371, allocations: 63.89 kB / 476.3 MB, free: 7.617 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002773/0.1373, allocations: 7.938 kB / 476.3 MB, free: 7.609 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005284/0.1379, allocations: 229.5 kB / 476.5 MB, free: 7.355 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003285/0.1382, allocations: 0.6924 MB / 477.2 MB, free: 6.637 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.286e-05/0.1383, allocations: 15.44 kB / 477.3 MB, free: 6.621 MB / 350.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1383, allocations: 0 / 477.3 MB, free: 6.621 MB / 350.1 MB Notification: Performance of Templates: time 0.00318/0.1415, allocations: 1.225 MB / 478.5 MB, free: 5.402 MB / 350.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/FirstOrderHold/FirstOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches