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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00174/0.00174, allocations: 103.6 kB / 21.18 MB, free: 0.6445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002381/0.002381, allocations: 211.4 kB / 24.48 MB, free: 3.934 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.556/1.556, allocations: 230.5 MB / 258.1 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2546/0.2546, allocations: 46.94 MB / 361.5 MB, free: 3.938 MB / 286.1 MB " [Timeout remaining time 179] 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=5041,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=5041,variableFilter="time|firstOrderHold.c|firstOrderHold.firstTrigger|firstOrderHold.pre_uSample|firstOrderHold.tSample|firstOrderHold.uSample|zeroOrderHold.firstTrigger|zeroOrderHold.ySample",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002331/0.002331, allocations: 79.81 kB / 0.4974 GB, free: 7.062 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3566/0.359, allocations: 66.09 MB / 0.5619 GB, free: 3.984 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.003795/0.3628, allocations: 1.523 MB / 0.5634 GB, free: 2.453 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001317/0.3641, allocations: 0.5259 MB / 0.5639 GB, free: 1.922 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.916e-05/0.3642, allocations: 4 kB / 0.5639 GB, free: 1.918 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.551e-05/0.3642, allocations: 3.938 kB / 0.5639 GB, free: 1.914 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001119/0.3643, allocations: 15.8 kB / 0.5639 GB, free: 1.898 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003213/0.3646, allocations: 55.88 kB / 0.564 GB, free: 1.844 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001955/0.3648, allocations: 87.77 kB / 0.5641 GB, free: 1.758 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001223/0.365, allocations: 4 kB / 0.5641 GB, free: 1.754 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000186/0.3651, allocations: 55.77 kB / 0.5641 GB, free: 1.699 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001332/0.3653, allocations: 47.81 kB / 0.5642 GB, free: 1.652 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.566e-05/0.3653, allocations: 4 kB / 0.5642 GB, free: 1.648 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.567e-05/0.3654, allocations: 12 kB / 0.5642 GB, free: 1.637 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.597e-05/0.3654, allocations: 19.92 kB / 0.5642 GB, free: 1.617 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.62e-05/0.3655, allocations: 27.86 kB / 0.5642 GB, free: 1.59 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000218/0.3657, allocations: 90.08 kB / 0.5643 GB, free: 1.508 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.3657, allocations: 0 / 0.5643 GB, free: 1.508 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.3657, allocations: 0 / 0.5643 GB, free: 1.508 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.71e-06/0.3657, allocations: 0 / 0.5643 GB, free: 1.508 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.0009193/0.3666, allocations: 334 kB / 0.5646 GB, free: 1.152 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.356e-05/0.3667, allocations: 11.97 kB / 0.5646 GB, free: 1.141 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001962/0.3669, allocations: 16.88 kB / 0.5647 GB, free: 1.125 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003186/0.3672, allocations: 134.4 kB / 0.5648 GB, free: 0.9688 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.856e-05/0.3672, allocations: 8.359 kB / 0.5648 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.72e-05/0.3672, allocations: 8.375 kB / 0.5648 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002965/0.3675, allocations: 93.2 kB / 0.5649 GB, free: 0.8594 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.097e-05/0.3675, allocations: 4 kB / 0.5649 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.701e-05/0.3676, allocations: 0 / 0.5649 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.478e-06/0.3676, allocations: 4 kB / 0.5649 GB, free: 0.8516 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002246/0.3678, allocations: 51.91 kB / 0.565 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006534/0.3684, allocations: 264.4 kB / 0.5652 GB, free: 0.5117 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002825/0.3687, allocations: 90.45 kB / 0.5653 GB, free: 424 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001539/0.3689, allocations: 40.84 kB / 0.5653 GB, free: 380 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.325e-05/0.3689, allocations: 4 kB / 0.5653 GB, free: 376 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002952/0.3692, allocations: 107.3 kB / 0.5654 GB, free: 256 kB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 1.974e-06/0.3692, allocations: 0 / 0.5654 GB, free: 256 kB / 398.1 MB Notification: Performance of matching and sorting (n=14): time 0.0006779/0.3699, allocations: 193.7 kB / 0.5656 GB, free: 56 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.535e-05/0.37, allocations: 59.41 kB / 0.5657 GB, free: 15.98 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001648/0.3701, allocations: 121.8 kB / 0.5658 GB, free: 15.86 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.854e-05/0.3702, allocations: 33.7 kB / 0.5658 GB, free: 15.82 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.406e-05/0.3703, allocations: 88.38 kB / 0.5659 GB, free: 15.72 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.214e-05/0.3703, allocations: 43.95 kB / 0.566 GB, free: 15.68 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001001/0.3704, allocations: 37.7 kB / 0.566 GB, free: 15.64 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002026/0.3706, allocations: 334.6 kB / 0.5663 GB, free: 15.3 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001645/0.3708, allocations: 31.98 kB / 0.5663 GB, free: 15.27 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001618/0.371, allocations: 81.22 kB / 0.5664 GB, free: 15.18 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000232/0.3712, allocations: 119.5 kB / 0.5665 GB, free: 15.05 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.3712, allocations: 4 kB / 0.5665 GB, free: 15.04 MB / 414.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004705/0.3717, allocations: 153.5 kB / 0.5667 GB, free: 14.89 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.043e-05/0.3717, allocations: 7.984 kB / 0.5667 GB, free: 14.88 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.3717, allocations: 3.938 kB / 0.5667 GB, free: 14.88 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.907e-05/0.3717, allocations: 4 kB / 0.5667 GB, free: 14.87 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001622/0.3719, allocations: 23.98 kB / 0.5667 GB, free: 14.85 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.544e-06/0.3719, allocations: 0 / 0.5667 GB, free: 14.85 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001046/0.372, allocations: 20.02 kB / 0.5667 GB, free: 14.83 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.261e-05/0.372, allocations: 8 kB / 0.5667 GB, free: 14.82 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.0001604/0.3722, allocations: 123.8 kB / 0.5669 GB, free: 14.69 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.394e-05/0.3722, allocations: 11.94 kB / 0.5669 GB, free: 14.68 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.517e-05/0.3722, allocations: 16.44 kB / 0.5669 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.067e-06/0.3722, allocations: 0 / 0.5669 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.109e-06/0.3723, allocations: 0 / 0.5669 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.185e-06/0.3723, allocations: 3.938 kB / 0.5669 GB, free: 14.65 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008339/0.3731, allocations: 390 kB / 0.5673 GB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.3731, allocations: 4 kB / 0.5673 GB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.14e-05/0.3732, allocations: 12 kB / 0.5673 GB, free: 14.22 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.945e-06/0.3732, allocations: 3.984 kB / 0.5673 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.06e-05/0.3732, allocations: 3.938 kB / 0.5673 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.515e-06/0.3732, allocations: 0 / 0.5673 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.3732, allocations: 4 kB / 0.5673 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005575/0.3738, allocations: 263.4 kB / 0.5675 GB, free: 13.93 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.243e-05/0.3738, allocations: 11.94 kB / 0.5676 GB, free: 13.92 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.38e-05/0.3738, allocations: 3.938 kB / 0.5676 GB, free: 13.92 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001819/0.374, allocations: 19.98 kB / 0.5676 GB, free: 13.9 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.678e-05/0.3741, allocations: 7.984 kB / 0.5676 GB, free: 13.89 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.599e-05/0.3741, allocations: 4 kB / 0.5676 GB, free: 13.89 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001018/0.3742, allocations: 99.2 kB / 0.5677 GB, free: 13.79 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3742, allocations: 0 / 0.5677 GB, free: 13.79 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000456/0.3746, allocations: 20 kB / 0.5677 GB, free: 13.77 MB / 414.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.0001607/0.3748, allocations: 107.2 kB / 0.5678 GB, free: 13.66 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0003991/0.3752, allocations: 104.9 kB / 0.5679 GB, free: 13.55 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.3752, allocations: 4.062 kB / 0.5679 GB, free: 13.55 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001841/0.3754, allocations: 51.97 kB / 0.568 GB, free: 13.5 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004632/0.3759, allocations: 12.7 kB / 0.568 GB, free: 13.49 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006666/0.3765, allocations: 248.6 kB / 0.5682 GB, free: 13.21 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001162/0.3766, allocations: 83.08 kB / 0.5683 GB, free: 13.11 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.792e-05/0.3767, allocations: 15.44 kB / 0.5683 GB, free: 13.1 MB / 414.1 MB Notification: Performance of SimCode: time 4.61e-07/0.3767, allocations: 4 kB / 0.5683 GB, free: 13.09 MB / 414.1 MB Notification: Performance of Templates: time 0.004426/0.3811, allocations: 1.298 MB / 0.5696 GB, free: 11.79 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_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_trunk_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: 7.704488378949463]