Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.Blocks.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00134/0.00134, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001416/0.001416, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.341/1.341, allocations: 227.4 MB / 247.5 MB, free: 10.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2077/0.2077, allocations: 46.1 MB / 344.9 MB, free: 11.53 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001369/0.00137, allocations: 73.7 kB / 419 MB, free: 19.05 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1276/0.1289, allocations: 62.45 MB / 481.4 MB, free: 4.562 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002805/0.1318, allocations: 1.544 MB / 483 MB, free: 3.012 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009002/0.1327, allocations: 0.5454 MB / 483.5 MB, free: 2.461 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.033e-05/0.1328, allocations: 3.938 kB / 483.5 MB, free: 2.457 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.166e-05/0.1328, allocations: 7.875 kB / 483.5 MB, free: 2.449 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.849e-05/0.1329, allocations: 15.86 kB / 483.6 MB, free: 2.434 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002276/0.1332, allocations: 51.88 kB / 483.6 MB, free: 2.383 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001281/0.1333, allocations: 87.77 kB / 483.7 MB, free: 2.297 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.438e-05/0.1334, allocations: 11.98 kB / 483.7 MB, free: 2.285 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001352/0.1335, allocations: 51.77 kB / 483.8 MB, free: 2.234 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.724e-05/0.1336, allocations: 39.84 kB / 483.8 MB, free: 2.195 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.816e-05/0.1337, allocations: 8 kB / 483.8 MB, free: 2.188 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.558e-05/0.1337, allocations: 8 kB / 483.8 MB, free: 2.18 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.657e-05/0.1337, allocations: 27.91 kB / 483.8 MB, free: 2.152 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.125e-05/0.1338, allocations: 43.78 kB / 483.9 MB, free: 2.109 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001415/0.134, allocations: 83.7 kB / 484 MB, free: 2.027 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.134, allocations: 0 / 484 MB, free: 2.027 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.134, allocations: 0 / 484 MB, free: 2.027 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.248e-06/0.134, allocations: 0 / 484 MB, free: 2.027 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.0006476/0.1346, allocations: 411.2 kB / 484.4 MB, free: 1.578 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.593e-05/0.1347, allocations: 8.031 kB / 484.4 MB, free: 1.57 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001419/0.1348, allocations: 20.83 kB / 484.4 MB, free: 1.551 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002382/0.1351, allocations: 192.2 kB / 484.6 MB, free: 1.324 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.009e-05/0.1351, allocations: 8.359 kB / 484.6 MB, free: 1.316 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.143e-05/0.1351, allocations: 8.375 kB / 484.6 MB, free: 1.309 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002053/0.1353, allocations: 93.89 kB / 484.7 MB, free: 1.211 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.067e-06/0.1354, allocations: 4 kB / 484.7 MB, free: 1.207 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.338e-05/0.1354, allocations: 0 / 484.7 MB, free: 1.207 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.993e-06/0.1354, allocations: 8 kB / 484.7 MB, free: 1.199 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001257/0.1355, allocations: 43.97 kB / 484.8 MB, free: 1.156 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005546/0.1361, allocations: 328.6 kB / 485.1 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001906/0.1363, allocations: 98.47 kB / 485.2 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001005/0.1364, allocations: 44.84 kB / 485.2 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.604e-05/0.1364, allocations: 7.984 kB / 485.2 MB, free: 0.625 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001765/0.1366, allocations: 106.9 kB / 485.3 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.753e-06/0.1366, allocations: 3.938 kB / 485.3 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004347/0.1371, allocations: 193.5 kB / 485.5 MB, free: 320 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.39e-05/0.1371, allocations: 67.38 kB / 485.6 MB, free: 240 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.682e-05/0.1372, allocations: 117.8 kB / 485.7 MB, free: 112 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.317e-05/0.1373, allocations: 33.7 kB / 485.7 MB, free: 72 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.659e-05/0.1373, allocations: 96.31 kB / 485.8 MB, free: 15.97 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.682e-05/0.1374, allocations: 31.56 kB / 485.9 MB, free: 15.94 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.527e-05/0.1375, allocations: 37.7 kB / 485.9 MB, free: 15.89 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001184/0.1376, allocations: 326.8 kB / 486.2 MB, free: 15.57 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000103/0.1377, allocations: 39.97 kB / 486.2 MB, free: 15.53 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001256/0.1378, allocations: 76.27 kB / 486.3 MB, free: 15.44 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001914/0.138, allocations: 124.2 kB / 486.4 MB, free: 15.3 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.138, allocations: 0 / 486.4 MB, free: 15.3 MB / 366.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000266/0.1383, allocations: 157.4 kB / 486.6 MB, free: 15.14 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.323e-05/0.1383, allocations: 8 kB / 486.6 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.58e-06/0.1383, allocations: 0 / 486.6 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.494e-05/0.1384, allocations: 4 kB / 486.6 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001083/0.1385, allocations: 23.92 kB / 486.6 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.614e-06/0.1385, allocations: 4.062 kB / 486.6 MB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.294e-05/0.1386, allocations: 15.94 kB / 486.7 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.551e-05/0.1386, allocations: 16.19 kB / 486.7 MB, free: 15.07 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 18 (firstOrderHold.firstTrigger,$PRE.firstOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,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,$PRE.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.000109/0.1387, allocations: 124.1 kB / 486.8 MB, free: 14.94 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.701e-05/0.1387, allocations: 11.84 kB / 486.8 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.12e-05/0.1388, allocations: 8.5 kB / 486.8 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.477e-06/0.1388, allocations: 7.938 kB / 486.8 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.1388, allocations: 3.938 kB / 486.8 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.524e-06/0.1388, allocations: 7.969 kB / 486.8 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005218/0.1393, allocations: 449.9 kB / 487.3 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.1393, allocations: 0 / 487.3 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.16e-05/0.1394, allocations: 19.86 kB / 487.3 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.1394, allocations: 0 / 487.3 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.402e-05/0.1394, allocations: 4 kB / 487.3 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.452e-06/0.1394, allocations: 0 / 487.3 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.1394, allocations: 0 / 487.3 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000304/0.1397, allocations: 255.4 kB / 487.5 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.731e-05/0.1398, allocations: 88.89 kB / 487.6 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.523e-05/0.1398, allocations: 12 kB / 487.6 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001055/0.1399, allocations: 7.984 kB / 487.6 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.184e-05/0.14, allocations: 7.984 kB / 487.7 MB, free: 13.99 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.884e-05/0.14, allocations: 8 kB / 487.7 MB, free: 13.98 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.797e-05/0.1401, allocations: 95.27 kB / 487.8 MB, free: 13.89 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1401, allocations: 4 kB / 487.8 MB, free: 13.88 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002377/0.1403, allocations: 23.94 kB / 487.8 MB, free: 13.86 MB / 366.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.0001119/0.1404, allocations: 108 kB / 487.9 MB, free: 13.75 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002411/0.1407, allocations: 103.9 kB / 488 MB, free: 13.64 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1407, allocations: 4 kB / 488 MB, free: 13.64 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001182/0.1408, allocations: 55.91 kB / 488 MB, free: 13.59 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002606/0.1411, allocations: 12.25 kB / 488.1 MB, free: 13.57 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004244/0.1415, allocations: 211.3 kB / 488.3 MB, free: 13.34 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002819/0.1418, allocations: 0.6924 MB / 489 MB, free: 12.62 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.17e-05/0.1419, allocations: 16.81 kB / 489 MB, free: 12.61 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.692e-05/0.1419, allocations: 15.44 kB / 489 MB, free: 12.59 MB / 366.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1419, allocations: 0 / 489 MB, free: 12.59 MB / 366.1 MB Notification: Performance of Templates: time 0.00332/0.1452, allocations: 1.037 MB / 490 MB, free: 11.56 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Blocks.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches