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.001227/0.001227, allocations: 112.2 kB / 21.19 MB, free: 0.7617 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.001327/0.001327, allocations: 209.9 kB / 24.49 MB, free: 4.145 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.359/1.359, allocations: 230.6 MB / 258.3 MB, free: 7.992 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.211/0.211, allocations: 46.93 MB / 361.6 MB, free: 4.25 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.002056/0.002056, allocations: 63.91 kB / 0.4974 GB, free: 7.387 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2898/0.2919, allocations: 66.03 MB / 0.5619 GB, free: 4.422 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.00264/0.2945, allocations: 1.566 MB / 0.5634 GB, free: 2.844 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009712/0.2955, allocations: 0.561 MB / 0.5639 GB, free: 2.277 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.514e-05/0.2956, allocations: 4 kB / 0.5639 GB, free: 2.273 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.189e-05/0.2956, allocations: 7.922 kB / 0.5639 GB, free: 2.266 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.766e-05/0.2957, allocations: 11.86 kB / 0.564 GB, free: 2.254 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002236/0.2959, allocations: 55.81 kB / 0.564 GB, free: 2.199 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001519/0.296, allocations: 95.7 kB / 0.5641 GB, free: 2.105 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.85e-05/0.2961, allocations: 11.98 kB / 0.5641 GB, free: 2.094 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000151/0.2963, allocations: 43.84 kB / 0.5642 GB, free: 2.051 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.775e-05/0.2964, allocations: 43.81 kB / 0.5642 GB, free: 2.008 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.925e-05/0.2964, allocations: 8 kB / 0.5642 GB, free: 2 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.189e-05/0.2964, allocations: 12 kB / 0.5642 GB, free: 1.988 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.785e-05/0.2965, allocations: 23.92 kB / 0.5642 GB, free: 1.965 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.122e-05/0.2965, allocations: 35.8 kB / 0.5643 GB, free: 1.93 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000152/0.2967, allocations: 86.02 kB / 0.5644 GB, free: 1.852 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.2967, allocations: 4 kB / 0.5644 GB, free: 1.848 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2967, allocations: 4 kB / 0.5644 GB, free: 1.844 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.039e-06/0.2967, allocations: 0 / 0.5644 GB, free: 1.844 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.0006229/0.2973, allocations: 326 kB / 0.5647 GB, free: 1.496 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.044e-05/0.2973, allocations: 8.031 kB / 0.5647 GB, free: 1.488 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001382/0.2975, allocations: 24.88 kB / 0.5647 GB, free: 1.465 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002093/0.2977, allocations: 138.3 kB / 0.5648 GB, free: 1.305 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.907e-05/0.2977, allocations: 8.375 kB / 0.5648 GB, free: 1.297 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.089e-05/0.2977, allocations: 8.375 kB / 0.5649 GB, free: 1.289 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002068/0.2979, allocations: 89.95 kB / 0.5649 GB, free: 1.195 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.726e-06/0.2979, allocations: 0 / 0.5649 GB, free: 1.195 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.386e-05/0.2979, allocations: 4 kB / 0.5649 GB, free: 1.191 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.282e-06/0.298, allocations: 3.984 kB / 0.5649 GB, free: 1.188 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001456/0.2981, allocations: 55.97 kB / 0.565 GB, free: 1.133 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005127/0.2986, allocations: 303.7 kB / 0.5653 GB, free: 0.793 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002148/0.2988, allocations: 86.52 kB / 0.5654 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.914e-05/0.2989, allocations: 44.83 kB / 0.5654 GB, free: 0.6523 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.005e-05/0.2989, allocations: 0 / 0.5654 GB, free: 0.6523 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000187/0.2991, allocations: 103.4 kB / 0.5655 GB, free: 0.5391 MB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 1.202e-06/0.2991, allocations: 7.938 kB / 0.5655 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004572/0.2996, allocations: 193.6 kB / 0.5657 GB, free: 348 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.683e-05/0.2996, allocations: 59.39 kB / 0.5658 GB, free: 276 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001046/0.2997, allocations: 117.8 kB / 0.5659 GB, free: 148 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.632e-05/0.2998, allocations: 37.7 kB / 0.5659 GB, free: 104 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.582e-05/0.2998, allocations: 96.36 kB / 0.566 GB, free: 0 / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.604e-05/0.2999, allocations: 35.92 kB / 0.566 GB, free: 15.96 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.647e-05/0.2999, allocations: 33.72 kB / 0.5661 GB, free: 15.92 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001477/0.3001, allocations: 322.6 kB / 0.5664 GB, free: 15.6 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001028/0.3002, allocations: 43.97 kB / 0.5664 GB, free: 15.56 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001271/0.3003, allocations: 77.22 kB / 0.5665 GB, free: 15.47 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000209/0.3005, allocations: 120.4 kB / 0.5666 GB, free: 15.34 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.3005, allocations: 0 / 0.5666 GB, free: 15.34 MB / 414.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002916/0.3008, allocations: 161.5 kB / 0.5668 GB, free: 15.17 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.418e-05/0.3008, allocations: 6.5 kB / 0.5668 GB, free: 15.17 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.3008, allocations: 4 kB / 0.5668 GB, free: 15.16 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.254e-05/0.3009, allocations: 0 / 0.5668 GB, free: 15.16 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001125/0.301, allocations: 27.86 kB / 0.5668 GB, free: 15.14 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.095e-06/0.301, allocations: 4 kB / 0.5668 GB, free: 15.13 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.365e-05/0.301, allocations: 15.94 kB / 0.5668 GB, free: 15.12 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.143e-05/0.3011, allocations: 4.125 kB / 0.5668 GB, free: 15.11 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.0001189/0.3012, allocations: 131.8 kB / 0.5669 GB, free: 14.97 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.101e-05/0.3012, allocations: 11.89 kB / 0.567 GB, free: 14.96 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.97e-05/0.3012, allocations: 12.44 kB / 0.567 GB, free: 14.95 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-06/0.3012, allocations: 3.938 kB / 0.567 GB, free: 14.94 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.169e-06/0.3012, allocations: 3.984 kB / 0.567 GB, free: 14.94 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.367e-06/0.3012, allocations: 0 / 0.567 GB, free: 14.94 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005641/0.3018, allocations: 425.4 kB / 0.5674 GB, free: 14.47 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.689e-06/0.3018, allocations: 7.938 kB / 0.5674 GB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.072e-05/0.3019, allocations: 7.984 kB / 0.5674 GB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/0.3019, allocations: 4 kB / 0.5674 GB, free: 14.45 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.143e-05/0.3019, allocations: 0 / 0.5674 GB, free: 14.45 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.452e-06/0.3019, allocations: 0 / 0.5674 GB, free: 14.45 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.62e-07/0.3019, allocations: 0 / 0.5674 GB, free: 14.45 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003513/0.3022, allocations: 266.6 kB / 0.5677 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.69e-05/0.3022, allocations: 15.89 kB / 0.5677 GB, free: 14.16 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.324e-05/0.3023, allocations: 4 kB / 0.5677 GB, free: 14.16 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001107/0.3024, allocations: 11.98 kB / 0.5677 GB, free: 14.15 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.045e-05/0.3024, allocations: 11.98 kB / 0.5677 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.818e-05/0.3024, allocations: 4 kB / 0.5677 GB, free: 14.13 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.566e-05/0.3025, allocations: 91.27 kB / 0.5678 GB, free: 14.04 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3025, allocations: 0 / 0.5678 GB, free: 14.04 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002466/0.3027, allocations: 24 kB / 0.5678 GB, free: 14.02 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.0001085/0.3029, allocations: 107.8 kB / 0.5679 GB, free: 13.91 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002604/0.3031, allocations: 103.8 kB / 0.568 GB, free: 13.8 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.3031, allocations: 0 / 0.568 GB, free: 13.8 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001154/0.3032, allocations: 51.91 kB / 0.5681 GB, free: 13.75 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000265/0.3035, allocations: 18.89 kB / 0.5681 GB, free: 13.74 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004691/0.304, allocations: 237.7 kB / 0.5683 GB, free: 13.47 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003501/0.3043, allocations: 0.7001 MB / 0.569 GB, free: 12.75 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.252e-05/0.3044, allocations: 15.44 kB / 0.569 GB, free: 12.73 MB / 414.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3044, allocations: 0 / 0.569 GB, free: 12.73 MB / 414.1 MB Notification: Performance of Templates: time 0.003019/0.3074, allocations: 1.277 MB / 0.5703 GB, free: 11.45 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: 6.913487825077027]