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.00146/0.00146, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001635/0.001635, allocations: 211.8 kB / 19.25 MB, free: 3.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.439/1.439, allocations: 227.4 MB / 247.4 MB, free: 10.63 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2156/0.2156, allocations: 46.09 MB / 344.8 MB, free: 11.62 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001642/0.001642, allocations: 80.98 kB / 418.2 MB, free: 19.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1443/0.1459, allocations: 62.44 MB / 480.7 MB, free: 5.297 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.003813/0.1498, allocations: 1.546 MB / 482.2 MB, free: 3.738 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001284/0.1511, allocations: 0.5493 MB / 482.8 MB, free: 3.184 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001061/0.1513, allocations: 3.938 kB / 482.8 MB, free: 3.18 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.456e-05/0.1513, allocations: 15.86 kB / 482.8 MB, free: 3.164 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001233/0.1515, allocations: 11.86 kB / 482.8 MB, free: 3.152 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003396/0.1518, allocations: 43.88 kB / 482.9 MB, free: 3.109 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002149/0.1521, allocations: 91.77 kB / 482.9 MB, free: 3.02 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001338/0.1522, allocations: 4 kB / 483 MB, free: 3.016 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002163/0.1524, allocations: 63.77 kB / 483 MB, free: 2.953 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001216/0.1526, allocations: 43.83 kB / 483.1 MB, free: 2.91 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.835e-05/0.1526, allocations: 8 kB / 483.1 MB, free: 2.902 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.045e-05/0.1527, allocations: 8 kB / 483.1 MB, free: 2.895 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.769e-05/0.1527, allocations: 23.91 kB / 483.1 MB, free: 2.871 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.374e-05/0.1528, allocations: 35.8 kB / 483.1 MB, free: 2.836 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001956/0.153, allocations: 80.05 kB / 483.2 MB, free: 2.758 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.153, allocations: 0 / 483.2 MB, free: 2.758 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.153, allocations: 0 / 483.2 MB, free: 2.758 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.873e-06/0.153, allocations: 0 / 483.2 MB, free: 2.758 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.0008316/0.1539, allocations: 403.2 kB / 483.6 MB, free: 2.316 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.961e-05/0.1539, allocations: 12.03 kB / 483.6 MB, free: 2.305 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002305/0.1542, allocations: 20.81 kB / 483.6 MB, free: 2.285 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002388/0.1544, allocations: 200.1 kB / 483.8 MB, free: 2.051 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.066e-05/0.1544, allocations: 4.375 kB / 483.8 MB, free: 2.047 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.935e-05/0.1545, allocations: 16.31 kB / 483.9 MB, free: 2.031 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002387/0.1547, allocations: 89.95 kB / 483.9 MB, free: 1.938 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.118e-05/0.1547, allocations: 0 / 483.9 MB, free: 1.938 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.137e-05/0.1548, allocations: 8 kB / 483.9 MB, free: 1.93 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.821e-06/0.1548, allocations: 0 / 483.9 MB, free: 1.93 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001462/0.1549, allocations: 47.91 kB / 484 MB, free: 1.883 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006656/0.1556, allocations: 332.7 kB / 484.3 MB, free: 1.508 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002164/0.1558, allocations: 86.55 kB / 484.4 MB, free: 1.414 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001177/0.1559, allocations: 48.83 kB / 484.4 MB, free: 1.363 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.013e-05/0.156, allocations: 224 / 484.4 MB, free: 1.363 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002821/0.1563, allocations: 119.2 kB / 484.6 MB, free: 1.234 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.593e-06/0.1563, allocations: 0 / 484.6 MB, free: 1.234 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004998/0.1568, allocations: 193.6 kB / 484.8 MB, free: 1.039 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.49e-05/0.1569, allocations: 59.41 kB / 484.8 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001216/0.157, allocations: 121.8 kB / 484.9 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.841e-05/0.157, allocations: 33.7 kB / 485 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.468e-05/0.1571, allocations: 92.31 kB / 485.1 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.088e-05/0.1572, allocations: 39.55 kB / 485.1 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.23e-05/0.1572, allocations: 41.7 kB / 485.1 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001347/0.1574, allocations: 318.8 kB / 485.4 MB, free: 304 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001028/0.1575, allocations: 39.97 kB / 485.5 MB, free: 264 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001343/0.1576, allocations: 80.2 kB / 485.6 MB, free: 168 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002201/0.1579, allocations: 119.5 kB / 485.7 MB, free: 36 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.227e-06/0.1579, allocations: 0 / 485.7 MB, free: 36 kB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003498/0.1582, allocations: 161.7 kB / 485.8 MB, free: 15.87 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.1583, allocations: 8 kB / 485.8 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.907e-06/0.1583, allocations: 7.938 kB / 485.9 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.708e-05/0.1583, allocations: 0 / 485.9 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001271/0.1584, allocations: 23.98 kB / 485.9 MB, free: 15.83 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.051e-05/0.1585, allocations: 7.938 kB / 485.9 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.995e-05/0.1585, allocations: 11.92 kB / 485.9 MB, free: 15.81 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.521e-05/0.1586, allocations: 8 kB / 485.9 MB, free: 15.8 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.0001391/0.1587, allocations: 128 kB / 486 MB, free: 15.67 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.517e-05/0.1587, allocations: 11.91 kB / 486 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.691e-05/0.1588, allocations: 16.48 kB / 486.1 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.1588, allocations: 3.984 kB / 486.1 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.005e-06/0.1588, allocations: 3.938 kB / 486.1 MB, free: 15.63 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.1588, allocations: 0 / 486.1 MB, free: 15.63 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006099/0.1594, allocations: 446.2 kB / 486.5 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.643e-06/0.1594, allocations: 0 / 486.5 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.167e-05/0.1595, allocations: 11.88 kB / 486.5 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.338e-06/0.1595, allocations: 8 kB / 486.5 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.794e-05/0.1595, allocations: 11.92 kB / 486.5 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.424e-06/0.1595, allocations: 0 / 486.5 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.1596, allocations: 0 / 486.5 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000362/0.1599, allocations: 258.7 kB / 486.8 MB, free: 14.85 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.1e-05/0.16, allocations: 92.89 kB / 486.9 MB, free: 14.74 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.488e-05/0.16, allocations: 0 / 486.9 MB, free: 14.74 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001114/0.1601, allocations: 19.98 kB / 486.9 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.977e-05/0.1602, allocations: 7.984 kB / 486.9 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.204e-05/0.1602, allocations: 4 kB / 486.9 MB, free: 14.71 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.206e-05/0.1603, allocations: 95.27 kB / 487 MB, free: 14.61 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.1603, allocations: 0 / 487 MB, free: 14.61 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002698/0.1606, allocations: 24 kB / 487 MB, free: 14.59 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.0001358/0.1607, allocations: 96.08 kB / 487.1 MB, free: 14.49 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003061/0.161, allocations: 119.8 kB / 487.2 MB, free: 14.37 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.161, allocations: 0 / 487.2 MB, free: 14.37 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001357/0.1612, allocations: 55.91 kB / 487.3 MB, free: 14.32 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002956/0.1615, allocations: 20.86 kB / 487.3 MB, free: 14.3 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005446/0.162, allocations: 237.3 kB / 487.5 MB, free: 14.04 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003269/0.1624, allocations: 0.6924 MB / 488.2 MB, free: 13.32 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.668e-05/0.1624, allocations: 19.42 kB / 488.3 MB, free: 13.3 MB / 366.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1624, allocations: 0 / 488.3 MB, free: 13.3 MB / 366.1 MB Notification: Performance of Templates: time 0.003375/0.1658, allocations: 1.254 MB / 489.5 MB, free: 12.04 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/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