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.001392/0.001392, allocations: 124.4 kB / 17.79 MB, free: 5.266 MB / 14.72 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.001437/0.001437, allocations: 199.3 kB / 20.74 MB, free: 2.32 MB / 14.72 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 1.585/1.585, allocations: 230.6 MB / 254.1 MB, free: 15.1 MB / 206.1 MB " [Timeout remaining time 178] 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.247/0.247, allocations: 46.93 MB / 357.1 MB, free: 10.32 MB / 286.1 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 0.002223/0.002223, allocations: 59.91 kB / 0.4914 GB, free: 7.492 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1416/0.1439, allocations: 66 MB / 0.5558 GB, free: 5.367 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.003253/0.1471, allocations: 1.549 MB / 0.5574 GB, free: 3.805 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001251/0.1484, allocations: 0.5587 MB / 0.5579 GB, free: 3.242 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.789e-05/0.1485, allocations: 0 / 0.5579 GB, free: 3.242 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 3.784e-05/0.1485, allocations: 7.875 kB / 0.5579 GB, free: 3.234 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001112/0.1486, allocations: 11.86 kB / 0.5579 GB, free: 3.223 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003483/0.149, allocations: 55.88 kB / 0.558 GB, free: 3.168 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001932/0.1492, allocations: 91.64 kB / 0.5581 GB, free: 3.078 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001133/0.1493, allocations: 11.98 kB / 0.5581 GB, free: 3.066 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002028/0.1495, allocations: 51.83 kB / 0.5581 GB, free: 3.016 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001045/0.1496, allocations: 35.84 kB / 0.5582 GB, free: 2.98 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 2.149e-05/0.1496, allocations: 12 kB / 0.5582 GB, free: 2.969 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.77e-05/0.1497, allocations: 12 kB / 0.5582 GB, free: 2.957 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 2.993e-05/0.1497, allocations: 23.91 kB / 0.5582 GB, free: 2.934 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 6.103e-05/0.1497, allocations: 39.78 kB / 0.5582 GB, free: 2.895 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001708/0.1499, allocations: 83.64 kB / 0.5583 GB, free: 2.812 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.1499, allocations: 0 / 0.5583 GB, free: 2.812 MB / 414.1 MB Notification: Performance of FrontEnd: time 9.32e-07/0.1499, allocations: 0 / 0.5583 GB, free: 2.812 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.039e-06/0.1499, allocations: 0 / 0.5583 GB, free: 2.812 MB / 414.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.0007747/0.1507, allocations: 411.1 kB / 0.5587 GB, free: 2.363 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.735e-05/0.1507, allocations: 12.03 kB / 0.5587 GB, free: 2.352 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001561/0.1509, allocations: 20.81 kB / 0.5587 GB, free: 2.332 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002598/0.1512, allocations: 184.3 kB / 0.5589 GB, free: 2.113 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.806e-05/0.1512, allocations: 12.36 kB / 0.5589 GB, free: 2.102 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.687e-05/0.1512, allocations: 8.375 kB / 0.5589 GB, free: 2.094 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002365/0.1514, allocations: 93.89 kB / 0.559 GB, free: 1.996 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.357e-05/0.1514, allocations: 8 kB / 0.559 GB, free: 1.988 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.371e-05/0.1515, allocations: 0 / 0.559 GB, free: 1.988 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.418e-06/0.1515, allocations: 0 / 0.559 GB, free: 1.988 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000157/0.1516, allocations: 47.97 kB / 0.5591 GB, free: 1.941 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006017/0.1522, allocations: 328.7 kB / 0.5594 GB, free: 1.57 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002399/0.1525, allocations: 94.47 kB / 0.5595 GB, free: 1.469 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001298/0.1526, allocations: 44.83 kB / 0.5595 GB, free: 1.422 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.918e-05/0.1526, allocations: 3.984 kB / 0.5595 GB, free: 1.418 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002262/0.1528, allocations: 98.36 kB / 0.5596 GB, free: 1.312 MB / 414.1 MB Notification: Performance of pre-optimization done (n=14): time 1.864e-06/0.1528, allocations: 0 / 0.5596 GB, free: 1.312 MB / 414.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005185/0.1534, allocations: 197.7 kB / 0.5598 GB, free: 1.113 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.574e-05/0.1534, allocations: 63.33 kB / 0.5599 GB, free: 1.039 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001126/0.1535, allocations: 117.8 kB / 0.56 GB, free: 0.9141 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.604e-05/0.1536, allocations: 29.7 kB / 0.56 GB, free: 0.8789 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.312e-05/0.1536, allocations: 96.36 kB / 0.5601 GB, free: 0.7773 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.719e-05/0.1537, allocations: 35.73 kB / 0.5601 GB, free: 0.7422 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.678e-05/0.1538, allocations: 41.7 kB / 0.5602 GB, free: 0.6953 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000164/0.1539, allocations: 323 kB / 0.5605 GB, free: 380 kB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001188/0.154, allocations: 47.97 kB / 0.5605 GB, free: 332 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001305/0.1542, allocations: 72.2 kB / 0.5606 GB, free: 244 kB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002419/0.1544, allocations: 124.2 kB / 0.5607 GB, free: 104 kB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.1544, allocations: 0 / 0.5607 GB, free: 104 kB / 414.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003315/0.1547, allocations: 165.4 kB / 0.5609 GB, free: 15.94 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.735e-05/0.1548, allocations: 9.656 kB / 0.5609 GB, free: 15.93 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.659e-06/0.1548, allocations: 0 / 0.5609 GB, free: 15.93 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.51e-05/0.1548, allocations: 4.125 kB / 0.5609 GB, free: 15.93 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001242/0.1549, allocations: 27.92 kB / 0.5609 GB, free: 15.9 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.995e-06/0.1549, allocations: 3.938 kB / 0.5609 GB, free: 15.89 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.849e-05/0.155, allocations: 15.95 kB / 0.5609 GB, free: 15.88 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.441e-05/0.155, allocations: 7.984 kB / 0.5609 GB, free: 15.87 MB / 430.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.0001147/0.1551, allocations: 126.3 kB / 0.5611 GB, free: 15.74 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.033e-05/0.1551, allocations: 7.953 kB / 0.5611 GB, free: 15.73 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.472e-05/0.1552, allocations: 12.5 kB / 0.5611 GB, free: 15.72 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.375e-06/0.1552, allocations: 0 / 0.5611 GB, free: 15.72 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.945e-06/0.1552, allocations: 7.938 kB / 0.5611 GB, free: 15.71 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.1552, allocations: 3.984 kB / 0.5611 GB, free: 15.71 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000687/0.1559, allocations: 446.3 kB / 0.5615 GB, free: 15.21 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.1559, allocations: 0 / 0.5615 GB, free: 15.21 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.27e-05/0.1559, allocations: 15.92 kB / 0.5615 GB, free: 15.2 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.1559, allocations: 0 / 0.5615 GB, free: 15.2 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.405e-05/0.156, allocations: 7.938 kB / 0.5615 GB, free: 15.19 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.156, allocations: 0 / 0.5615 GB, free: 15.19 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.156, allocations: 0 / 0.5615 GB, free: 15.19 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004161/0.1564, allocations: 259.4 kB / 0.5618 GB, free: 14.92 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.516e-05/0.1564, allocations: 89 kB / 0.5619 GB, free: 14.82 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.489e-05/0.1565, allocations: 4 kB / 0.5619 GB, free: 14.81 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001228/0.1566, allocations: 15.98 kB / 0.5619 GB, free: 14.8 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.807e-05/0.1566, allocations: 7.984 kB / 0.5619 GB, free: 14.79 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.314e-05/0.1566, allocations: 16 kB / 0.5619 GB, free: 14.77 MB / 430.1 MB Notification: Performance of sorting global known variables: time 7.263e-05/0.1567, allocations: 99.58 kB / 0.562 GB, free: 14.68 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1567, allocations: 0 / 0.562 GB, free: 14.68 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002577/0.157, allocations: 24 kB / 0.562 GB, free: 14.65 MB / 430.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.0001176/0.1571, allocations: 99.17 kB / 0.5621 GB, free: 14.55 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0003074/0.1574, allocations: 103.9 kB / 0.5622 GB, free: 14.45 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.664e-06/0.1574, allocations: 256 / 0.5622 GB, free: 14.45 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001284/0.1575, allocations: 51.91 kB / 0.5623 GB, free: 14.39 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002818/0.1578, allocations: 15.98 kB / 0.5623 GB, free: 14.38 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004833/0.1583, allocations: 218.8 kB / 0.5625 GB, free: 14.14 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003463/0.1586, allocations: 0.6924 MB / 0.5632 GB, free: 13.42 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 4.527e-05/0.1587, allocations: 12.88 kB / 0.5632 GB, free: 13.41 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.219e-05/0.1587, allocations: 15.44 kB / 0.5632 GB, free: 13.39 MB / 430.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1587, allocations: 3.938 kB / 0.5632 GB, free: 13.39 MB / 430.1 MB Notification: Performance of Templates: time 0.004123/0.1629, allocations: 1.045 MB / 0.5642 GB, free: 12.35 MB / 430.1 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: 5.345342341810465]