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.0008659/0.0008661, allocations: 95.19 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009602/0.0009603, allocations: 205.5 kB / 18.28 MB, free: 5.492 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.512/1.512, allocations: 227.7 MB / 246.8 MB, free: 11.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2366/0.2366, allocations: 46.19 MB / 345.2 MB, free: 11.36 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002742/0.0002742, allocations: 8 kB / 419.5 MB, free: 19.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1386/0.1389, allocations: 63.56 MB / 483.1 MB, free: 4.125 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.001708/0.1406, allocations: 1.264 MB / 484.3 MB, free: 2.852 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009365/0.1416, allocations: 0.5339 MB / 484.9 MB, free: 2.312 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.329e-05/0.1417, allocations: 3.938 kB / 484.9 MB, free: 2.309 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.696e-05/0.1417, allocations: 3.938 kB / 484.9 MB, free: 2.305 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.283e-05/0.1418, allocations: 19.84 kB / 484.9 MB, free: 2.285 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001992/0.142, allocations: 43.95 kB / 484.9 MB, free: 2.242 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001461/0.1421, allocations: 83.77 kB / 485 MB, free: 2.16 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.526e-05/0.1422, allocations: 8 kB / 485 MB, free: 2.152 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001583/0.1424, allocations: 47.77 kB / 485.1 MB, free: 2.105 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.415e-05/0.1425, allocations: 31.84 kB / 485.1 MB, free: 2.074 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.726e-05/0.1425, allocations: 4 kB / 485.1 MB, free: 2.07 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.701e-05/0.1426, allocations: 12 kB / 485.1 MB, free: 2.059 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.782e-05/0.1426, allocations: 27.91 kB / 485.2 MB, free: 2.031 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.142e-05/0.1427, allocations: 65.48 kB / 485.2 MB, free: 1.961 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001251/0.1428, allocations: 64.03 kB / 485.3 MB, free: 1.898 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.314e-06/0.1428, allocations: 4 kB / 485.3 MB, free: 1.895 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1428, allocations: 0 / 485.3 MB, free: 1.895 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.198e-06/0.1428, allocations: 0 / 485.3 MB, free: 1.895 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.0006484/0.1435, allocations: 399.2 kB / 485.7 MB, free: 1.457 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.611e-05/0.1435, allocations: 12.88 kB / 485.7 MB, free: 1.445 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001465/0.1437, allocations: 20.83 kB / 485.7 MB, free: 1.426 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001975/0.1439, allocations: 192.1 kB / 485.9 MB, free: 1.199 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.39e-05/0.1439, allocations: 12.36 kB / 485.9 MB, free: 1.188 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.841e-05/0.144, allocations: 4.375 kB / 485.9 MB, free: 1.184 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002162/0.1442, allocations: 101.6 kB / 486 MB, free: 1.082 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.576e-06/0.1442, allocations: 0 / 486 MB, free: 1.082 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.392e-05/0.1442, allocations: 3.938 kB / 486 MB, free: 1.078 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.331e-06/0.1442, allocations: 4 kB / 486 MB, free: 1.074 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001626/0.1444, allocations: 47.97 kB / 486.1 MB, free: 1.027 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005827/0.145, allocations: 340.6 kB / 486.4 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002282/0.1452, allocations: 106.5 kB / 486.5 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001075/0.1454, allocations: 48.84 kB / 486.6 MB, free: 492 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.415e-05/0.1454, allocations: 7.984 kB / 486.6 MB, free: 484 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002296/0.1456, allocations: 107.5 kB / 486.7 MB, free: 364 kB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.583e-06/0.1456, allocations: 3.938 kB / 486.7 MB, free: 360 kB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004784/0.1461, allocations: 201.5 kB / 486.9 MB, free: 152 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.825e-05/0.1462, allocations: 59.39 kB / 486.9 MB, free: 80 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001052/0.1463, allocations: 118 kB / 487 MB, free: 15.95 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.486e-05/0.1463, allocations: 33.7 kB / 487.1 MB, free: 15.91 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.856e-05/0.1464, allocations: 92.41 kB / 487.2 MB, free: 15.82 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.764e-05/0.1464, allocations: 31.56 kB / 487.2 MB, free: 15.79 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.764e-05/0.1465, allocations: 25.7 kB / 487.2 MB, free: 15.75 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001312/0.1466, allocations: 330.8 kB / 487.5 MB, free: 15.42 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001037/0.1467, allocations: 39.98 kB / 487.6 MB, free: 15.38 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001327/0.1469, allocations: 84.2 kB / 487.7 MB, free: 15.29 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002342/0.1471, allocations: 128.2 kB / 487.8 MB, free: 15.14 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.534e-06/0.1471, allocations: 0 / 487.8 MB, free: 15.14 MB / 366.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003083/0.1474, allocations: 168.7 kB / 488 MB, free: 14.98 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.6e-05/0.1475, allocations: 4 kB / 488 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.1475, allocations: 0 / 488 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.453e-05/0.1475, allocations: 4 kB / 488 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000123/0.1476, allocations: 23.92 kB / 488 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.021e-05/0.1476, allocations: 7.938 kB / 488 MB, free: 14.94 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.969e-05/0.1477, allocations: 23.97 kB / 488 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.349e-05/0.1477, allocations: 8 kB / 488 MB, free: 14.91 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.0001074/0.1479, allocations: 132 kB / 488.2 MB, free: 14.77 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.918e-05/0.1479, allocations: 7.906 kB / 488.2 MB, free: 14.76 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.891e-05/0.1479, allocations: 8.5 kB / 488.2 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.549e-06/0.1479, allocations: 4 kB / 488.2 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.064e-06/0.1479, allocations: 3.938 kB / 488.2 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.1479, allocations: 0 / 488.2 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005697/0.1485, allocations: 458.3 kB / 488.6 MB, free: 14.24 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-06/0.1486, allocations: 0 / 488.6 MB, free: 14.24 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.851e-05/0.1486, allocations: 15.98 kB / 488.6 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.147e-06/0.1486, allocations: 7.875 kB / 488.6 MB, free: 14.22 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.062e-05/0.1486, allocations: 0 / 488.6 MB, free: 14.22 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.1487, allocations: 4 kB / 488.6 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.1487, allocations: 0 / 488.6 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003433/0.149, allocations: 267.3 kB / 488.9 MB, free: 13.94 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.461e-05/0.1491, allocations: 96.88 kB / 489 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.538e-05/0.1491, allocations: 4 kB / 489 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001243/0.1492, allocations: 15.98 kB / 489 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.147e-05/0.1493, allocations: 7.984 kB / 489 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.954e-05/0.1493, allocations: 8 kB / 489 MB, free: 13.79 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.336e-05/0.1494, allocations: 95.64 kB / 489.1 MB, free: 13.7 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1494, allocations: 0 / 489.1 MB, free: 13.7 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000255/0.1496, allocations: 24 kB / 489.2 MB, free: 13.67 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.0001217/0.1498, allocations: 103.7 kB / 489.3 MB, free: 13.56 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002769/0.15, allocations: 115.9 kB / 489.4 MB, free: 13.45 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.1501, allocations: 4 kB / 489.4 MB, free: 13.45 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001217/0.1502, allocations: 55.3 kB / 489.4 MB, free: 13.39 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002797/0.1505, allocations: 15.98 kB / 489.4 MB, free: 13.38 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004352/0.1509, allocations: 233.7 kB / 489.7 MB, free: 13.12 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002637/0.1512, allocations: 0.6965 MB / 490.4 MB, free: 12.4 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.177e-05/0.1512, allocations: 12.83 kB / 490.4 MB, free: 12.39 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.108e-05/0.1513, allocations: 23.42 kB / 490.4 MB, free: 12.36 MB / 366.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1513, allocations: 0 / 490.4 MB, free: 12.36 MB / 366.1 MB Notification: Performance of Templates: time 0.003153/0.1545, allocations: 0.9258 MB / 491.3 MB, free: 11.45 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 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/FirstOrderHold/FirstOrderHold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches