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.00179/0.00179, allocations: 106.5 kB / 21.2 MB, free: 0.6406 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.002169/0.002169, allocations: 216.6 kB / 24.49 MB, free: 3.934 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.426/1.426, allocations: 230.6 MB / 258.3 MB, free: 7.781 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.22/0.22, allocations: 46.96 MB / 361.6 MB, free: 4.016 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.002051/0.002051, allocations: 67.91 kB / 0.4973 GB, free: 7.219 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2746/0.2767, allocations: 66.04 MB / 0.5618 GB, free: 4.16 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002717/0.2794, allocations: 1.531 MB / 0.5633 GB, free: 2.617 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009849/0.2804, allocations: 0.5182 MB / 0.5638 GB, free: 2.094 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.599e-05/0.2804, allocations: 3.938 kB / 0.5638 GB, free: 2.09 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.166e-05/0.2804, allocations: 11.92 kB / 0.5638 GB, free: 2.078 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 8.156e-05/0.2805, allocations: 11.88 kB / 0.5638 GB, free: 2.066 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002235/0.2808, allocations: 47.88 kB / 0.5639 GB, free: 2.02 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001438/0.2809, allocations: 95.69 kB / 0.564 GB, free: 1.926 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.587e-05/0.281, allocations: 11.98 kB / 0.564 GB, free: 1.914 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001437/0.2811, allocations: 39.86 kB / 0.564 GB, free: 1.875 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.377e-05/0.2812, allocations: 47.81 kB / 0.5641 GB, free: 1.828 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.103e-05/0.2812, allocations: 8 kB / 0.5641 GB, free: 1.82 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.558e-05/0.2813, allocations: 12 kB / 0.5641 GB, free: 1.809 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.827e-05/0.2813, allocations: 23.92 kB / 0.5641 GB, free: 1.785 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.286e-05/0.2814, allocations: 43.72 kB / 0.5642 GB, free: 1.742 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001479/0.2815, allocations: 82.03 kB / 0.5642 GB, free: 1.668 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.596e-06/0.2815, allocations: 0 / 0.5642 GB, free: 1.668 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2815, allocations: 4 kB / 0.5642 GB, free: 1.664 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.789e-06/0.2815, allocations: 0 / 0.5642 GB, free: 1.664 MB / 398.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.0006897/0.2822, allocations: 326 kB / 0.5646 GB, free: 1.316 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.473e-05/0.2822, allocations: 12.03 kB / 0.5646 GB, free: 1.305 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001484/0.2824, allocations: 20.88 kB / 0.5646 GB, free: 1.285 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002087/0.2826, allocations: 134.4 kB / 0.5647 GB, free: 1.129 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.927e-05/0.2826, allocations: 8.375 kB / 0.5647 GB, free: 1.121 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.99e-05/0.2826, allocations: 8.375 kB / 0.5647 GB, free: 1.113 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002195/0.2829, allocations: 93.89 kB / 0.5648 GB, free: 1.016 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.946e-06/0.2829, allocations: 0 / 0.5648 GB, free: 1.016 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.66e-05/0.2829, allocations: 4 kB / 0.5648 GB, free: 1.012 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.797e-06/0.2829, allocations: 0 / 0.5648 GB, free: 1.012 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001481/0.283, allocations: 55.97 kB / 0.5649 GB, free: 0.957 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004976/0.2835, allocations: 256.4 kB / 0.5651 GB, free: 0.6758 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002181/0.2837, allocations: 94.41 kB / 0.5652 GB, free: 0.5742 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001021/0.2838, allocations: 36.84 kB / 0.5652 GB, free: 0.5352 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.065e-05/0.2839, allocations: 4 kB / 0.5652 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002045/0.2841, allocations: 107.1 kB / 0.5653 GB, free: 428 kB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 1.663e-06/0.2841, allocations: 4 kB / 0.5654 GB, free: 424 kB / 398.1 MB Notification: Performance of matching and sorting (n=14): time 0.000483/0.2846, allocations: 201.6 kB / 0.5655 GB, free: 216 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.812e-05/0.2846, allocations: 55.41 kB / 0.5656 GB, free: 148 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001082/0.2847, allocations: 125.8 kB / 0.5657 GB, free: 12 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.982e-05/0.2847, allocations: 29.7 kB / 0.5657 GB, free: 15.98 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.904e-05/0.2848, allocations: 96.38 kB / 0.5658 GB, free: 15.88 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.108e-05/0.2848, allocations: 31.73 kB / 0.5659 GB, free: 15.84 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.312e-05/0.2849, allocations: 41.7 kB / 0.5659 GB, free: 15.8 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001494/0.2851, allocations: 318.8 kB / 0.5662 GB, free: 15.48 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001046/0.2852, allocations: 47.92 kB / 0.5663 GB, free: 15.43 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001263/0.2853, allocations: 77.27 kB / 0.5663 GB, free: 15.34 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002409/0.2855, allocations: 116.2 kB / 0.5664 GB, free: 15.21 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.2855, allocations: 4 kB / 0.5664 GB, free: 15.21 MB / 414.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000311/0.2858, allocations: 161.5 kB / 0.5666 GB, free: 15.04 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.443e-05/0.2859, allocations: 8 kB / 0.5666 GB, free: 15.04 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.048e-06/0.2859, allocations: 0 / 0.5666 GB, free: 15.04 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.376e-05/0.2859, allocations: 4 kB / 0.5666 GB, free: 15.03 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001169/0.286, allocations: 19.92 kB / 0.5666 GB, free: 15.01 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.856e-06/0.286, allocations: 4 kB / 0.5666 GB, free: 15.01 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.954e-05/0.2861, allocations: 15.89 kB / 0.5666 GB, free: 14.99 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.392e-05/0.2861, allocations: 8 kB / 0.5667 GB, free: 14.98 MB / 414.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.0001188/0.2862, allocations: 139.9 kB / 0.5668 GB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.966e-05/0.2862, allocations: 7.953 kB / 0.5668 GB, free: 14.83 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.253e-05/0.2863, allocations: 8.438 kB / 0.5668 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.856e-06/0.2863, allocations: 3.938 kB / 0.5668 GB, free: 14.81 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.2863, allocations: 0 / 0.5668 GB, free: 14.81 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.08e-05/0.2863, allocations: 19.81 kB / 0.5668 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.925e-05/0.2863, allocations: 11.98 kB / 0.5668 GB, free: 14.78 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.341e-05/0.2864, allocations: 7.984 kB / 0.5668 GB, free: 14.77 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.519e-05/0.2864, allocations: 11.98 kB / 0.5669 GB, free: 14.76 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003808/0.2868, allocations: 240.8 kB / 0.5671 GB, free: 14.52 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003989/0.2872, allocations: 338.6 kB / 0.5674 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000115/0.2873, allocations: 43.97 kB / 0.5675 GB, free: 14.13 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.835e-05/0.2874, allocations: 95.2 kB / 0.5675 GB, free: 14.04 MB / 414.1 MB Notification: Performance of Backend: time 1.71e-07/0.2874, allocations: 0 / 0.5675 GB, free: 14.04 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0004819/0.2879, allocations: 145.1 kB / 0.5677 GB, free: 13.89 MB / 414.1 MB Notification: Performance of SimCode: time 0.00057/0.2884, allocations: 0.6218 MB / 0.5683 GB, free: 13.22 MB / 414.1 MB Notification: Performance of Templates: time 0.004108/0.2926, allocations: 1.339 MB / 0.5696 GB, free: 11.9 MB / 414.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/FirstOrderHold/FirstOrderHold.csv","/var/lib/jenkins1/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.700325159996282]