Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001072/0.001072, allocations: 87.62 kB / 21.43 MB, free: 3.133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.005614/0.005614, allocations: 163.9 kB / 24.7 MB, free: 9.402 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8518/0.8518, allocations: 177.1 MB / 205 MB, free: 5.715 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2365/0.2365, allocations: 34.25 MB / 295.7 MB, free: 0.6992 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5041,variableFilter="time|firstOrderHold.c|firstOrderHold.firstTrigger|firstOrderHold.pre_uSample|firstOrderHold.tSample|firstOrderHold.uSample|zeroOrderHold.firstTrigger|zeroOrderHold.ySample",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold") translateModel(ModelicaTest.Blocks.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5041,variableFilter="time|firstOrderHold.c|firstOrderHold.firstTrigger|firstOrderHold.pre_uSample|firstOrderHold.tSample|firstOrderHold.uSample|zeroOrderHold.firstTrigger|zeroOrderHold.ySample",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.764e-06/1.764e-06, allocations: 3.938 kB / 443.4 MB, free: 1.172 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.261e-05/2.438e-05, allocations: 2.281 kB / 443.4 MB, free: 1.168 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.1588/0.1588, allocations: 1.53 MB / 445 MB, free: 43.73 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006693/0.1595, allocations: 0.5267 MB / 445.5 MB, free: 43.52 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.587e-05/0.1595, allocations: 0 / 445.5 MB, free: 43.52 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 2.801e-05/0.1596, allocations: 10.28 kB / 445.5 MB, free: 43.51 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 8.034e-05/0.1597, allocations: 14.64 kB / 445.5 MB, free: 43.51 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002273/0.1599, allocations: 54.25 kB / 445.6 MB, free: 43.5 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001193/0.16, allocations: 90.5 kB / 445.6 MB, free: 43.48 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.94e-05/0.1601, allocations: 12.84 kB / 445.7 MB, free: 43.48 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001397/0.1602, allocations: 71.97 kB / 445.7 MB, free: 43.46 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.769e-05/0.1603, allocations: 28.39 kB / 445.8 MB, free: 43.46 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 1.723e-05/0.1603, allocations: 5.344 kB / 445.8 MB, free: 43.46 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.827e-05/0.1604, allocations: 14.22 kB / 445.8 MB, free: 43.46 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 1.832e-05/0.1604, allocations: 22.03 kB / 445.8 MB, free: 43.45 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 3.253e-05/0.1604, allocations: 25.73 kB / 445.8 MB, free: 43.45 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001256/0.1605, allocations: 94.61 kB / 445.9 MB, free: 43.43 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.1605, allocations: 0 / 445.9 MB, free: 43.43 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1605, allocations: 0 / 445.9 MB, free: 43.43 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.749e-06/0.1605, allocations: 0 / 445.9 MB, free: 43.43 MB / 410.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.0004526/0.161, allocations: 330.6 kB / 446.2 MB, free: 43.16 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.48e-05/0.161, allocations: 8.875 kB / 446.2 MB, free: 43.16 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.944e-05/0.1611, allocations: 23.7 kB / 446.3 MB, free: 43.15 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001755/0.1613, allocations: 131.7 kB / 446.4 MB, free: 43.02 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.422e-05/0.1613, allocations: 3.156 kB / 446.4 MB, free: 43.02 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.194e-05/0.1613, allocations: 15.69 kB / 446.4 MB, free: 43.02 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001352/0.1615, allocations: 87.67 kB / 446.5 MB, free: 42.98 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.416e-06/0.1615, allocations: 192 / 446.5 MB, free: 42.98 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.149e-05/0.1615, allocations: 6.594 kB / 446.5 MB, free: 42.98 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.989e-06/0.1615, allocations: 10.5 kB / 446.5 MB, free: 42.98 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.489e-05/0.1616, allocations: 43.75 kB / 446.6 MB, free: 42.98 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000315/0.1619, allocations: 268.5 kB / 446.8 MB, free: 42.77 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001358/0.162, allocations: 80.84 kB / 446.9 MB, free: 42.75 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.085e-05/0.1621, allocations: 39.73 kB / 446.9 MB, free: 42.74 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.164e-05/0.1621, allocations: 2.562 kB / 446.9 MB, free: 42.74 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001075/0.1622, allocations: 102.2 kB / 447 MB, free: 42.69 MB / 410.7 MB Notification: Performance of pre-optimization done (n=14): time 1.333e-06/0.1622, allocations: 0.5 kB / 447 MB, free: 42.69 MB / 410.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002784/0.1625, allocations: 201.4 kB / 447.2 MB, free: 42.65 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.697e-05/0.1625, allocations: 57.22 kB / 447.3 MB, free: 42.59 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.818e-05/0.1625, allocations: 119.8 kB / 447.4 MB, free: 42.48 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.888e-06/0.1626, allocations: 34.73 kB / 447.4 MB, free: 42.45 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.477e-05/0.1626, allocations: 90.34 kB / 447.5 MB, free: 42.37 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.52e-05/0.1626, allocations: 43.56 kB / 447.6 MB, free: 42.34 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.444e-05/0.1626, allocations: 40.39 kB / 447.6 MB, free: 42.32 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.784e-05/0.1627, allocations: 319.7 kB / 447.9 MB, free: 42.01 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.283e-05/0.1627, allocations: 37.72 kB / 448 MB, free: 42.01 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.135e-05/0.1628, allocations: 77.72 kB / 448 MB, free: 41.97 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001149/0.1629, allocations: 132.7 kB / 448.2 MB, free: 41.92 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.1629, allocations: 0 / 448.2 MB, free: 41.92 MB / 410.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001493/0.163, allocations: 152.6 kB / 448.3 MB, free: 41.88 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.171e-05/0.1631, allocations: 5.812 kB / 448.3 MB, free: 41.88 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.1631, allocations: 2.469 kB / 448.3 MB, free: 41.88 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.3e-05/0.1631, allocations: 2.844 kB / 448.3 MB, free: 41.88 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.183e-05/0.1632, allocations: 26.81 kB / 448.4 MB, free: 41.87 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.631e-06/0.1632, allocations: 6.594 kB / 448.4 MB, free: 41.87 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.216e-05/0.1632, allocations: 19.7 kB / 448.4 MB, free: 41.86 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.005e-05/0.1632, allocations: 6.906 kB / 448.4 MB, free: 41.86 MB / 410.7 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 6.184e-05/0.1633, allocations: 130.4 kB / 448.5 MB, free: 41.73 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.002e-05/0.1633, allocations: 16.73 kB / 448.5 MB, free: 41.72 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.318e-05/0.1633, allocations: 11.77 kB / 448.5 MB, free: 41.72 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.1633, allocations: 2.875 kB / 448.5 MB, free: 41.72 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.1633, allocations: 0 / 448.5 MB, free: 41.72 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.1633, allocations: 5.5 kB / 448.6 MB, free: 41.71 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002724/0.1636, allocations: 386.7 kB / 448.9 MB, free: 41.43 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.1636, allocations: 1.75 kB / 448.9 MB, free: 41.43 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.413e-05/0.1636, allocations: 16.17 kB / 448.9 MB, free: 41.42 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.1636, allocations: 0 / 448.9 MB, free: 41.42 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.324e-06/0.1636, allocations: 0 / 448.9 MB, free: 41.42 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.1636, allocations: 6.094 kB / 449 MB, free: 41.42 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1636, allocations: 0 / 449 MB, free: 41.42 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001528/0.1638, allocations: 264.7 kB / 449.2 MB, free: 41.25 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.2e-05/0.1638, allocations: 18.33 kB / 449.2 MB, free: 41.23 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.502e-05/0.1638, allocations: 2.969 kB / 449.2 MB, free: 41.23 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.055e-05/0.1638, allocations: 8.891 kB / 449.2 MB, free: 41.23 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.146e-05/0.1639, allocations: 17.31 kB / 449.3 MB, free: 41.22 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.417e-05/0.1639, allocations: 4.469 kB / 449.3 MB, free: 41.22 MB / 410.7 MB Notification: Performance of sorting global known variables: time 2.165e-05/0.1639, allocations: 91.72 kB / 449.4 MB, free: 41.14 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1639, allocations: 0 / 449.4 MB, free: 41.14 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001562/0.1641, allocations: 24.81 kB / 449.4 MB, free: 41.14 MB / 410.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 8.802e-05/0.1642, allocations: 99.58 kB / 449.5 MB, free: 41.05 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001525/0.1643, allocations: 106 kB / 449.6 MB, free: 41.02 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.1643, allocations: 0 / 449.6 MB, free: 41.02 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 5.983e-05/0.1644, allocations: 51.89 kB / 449.6 MB, free: 41.01 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001934/0.1646, allocations: 15.22 kB / 449.6 MB, free: 41 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002845/0.1648, allocations: 226.3 kB / 449.9 MB, free: 40.82 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.791e-05/0.1649, allocations: 81.97 kB / 449.9 MB, free: 40.75 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.054e-05/0.1649, allocations: 16.44 kB / 450 MB, free: 40.75 MB / 410.7 MB Notification: Performance of SimCode: time 5.71e-07/0.1649, allocations: 3.938 kB / 450 MB, free: 40.74 MB / 410.7 MB Notification: Performance of Templates: time 0.001738/0.1667, allocations: 1.307 MB / 451.3 MB, free: 40.66 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.sim & ./ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/FirstOrderHold/FirstOrderHold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.3918226435780525]