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.00186/0.00186, allocations: 107.1 kB / 20.44 MB, free: 1.195 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.002356/0.002356, allocations: 213 kB / 23.73 MB, free: 4.406 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.583/1.583, allocations: 230.6 MB / 257.5 MB, free: 7.797 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.2443/0.2443, allocations: 46.96 MB / 360.9 MB, free: 4.039 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.002337/0.002337, allocations: 59.91 kB / 0.4966 GB, free: 7.234 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4193/0.4217, allocations: 66.04 MB / 0.5611 GB, free: 4.168 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002888/0.4245, allocations: 1.537 MB / 0.5626 GB, free: 2.621 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001058/0.4256, allocations: 0.5182 MB / 0.5631 GB, free: 2.098 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.965e-05/0.4257, allocations: 0 / 0.5631 GB, free: 2.098 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.783e-05/0.4257, allocations: 11.86 kB / 0.5631 GB, free: 2.086 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 8.04e-05/0.4258, allocations: 15.86 kB / 0.5631 GB, free: 2.07 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002521/0.426, allocations: 47.89 kB / 0.5631 GB, free: 2.023 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001582/0.4262, allocations: 95.69 kB / 0.5632 GB, free: 1.93 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000104/0.4263, allocations: 7.984 kB / 0.5632 GB, free: 1.922 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001565/0.4264, allocations: 51.78 kB / 0.5633 GB, free: 1.871 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.445e-05/0.4265, allocations: 39.83 kB / 0.5633 GB, free: 1.832 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.099e-05/0.4266, allocations: 8 kB / 0.5633 GB, free: 1.824 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.782e-05/0.4266, allocations: 8 kB / 0.5633 GB, free: 1.816 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.941e-05/0.4266, allocations: 23.91 kB / 0.5634 GB, free: 1.793 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.177e-05/0.4267, allocations: 35.86 kB / 0.5634 GB, free: 1.758 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001672/0.4268, allocations: 86.03 kB / 0.5635 GB, free: 1.68 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.4269, allocations: 0 / 0.5635 GB, free: 1.68 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.4269, allocations: 0 / 0.5635 GB, free: 1.68 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.859e-06/0.4269, allocations: 0 / 0.5635 GB, free: 1.68 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.0006968/0.4276, allocations: 330 kB / 0.5638 GB, free: 1.328 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.402e-05/0.4276, allocations: 8.031 kB / 0.5638 GB, free: 1.32 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001453/0.4277, allocations: 24.88 kB / 0.5638 GB, free: 1.297 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002286/0.428, allocations: 130.4 kB / 0.564 GB, free: 1.145 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.1e-05/0.428, allocations: 8.375 kB / 0.564 GB, free: 1.137 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.584e-05/0.428, allocations: 4.375 kB / 0.564 GB, free: 1.133 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002167/0.4282, allocations: 97.83 kB / 0.5641 GB, free: 1.031 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.17e-05/0.4282, allocations: 0 / 0.5641 GB, free: 1.031 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.665e-05/0.4282, allocations: 7.984 kB / 0.5641 GB, free: 1.023 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.99e-06/0.4283, allocations: 3.938 kB / 0.5641 GB, free: 1.02 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001482/0.4284, allocations: 59.95 kB / 0.5641 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005154/0.4289, allocations: 256.4 kB / 0.5644 GB, free: 0.6797 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002222/0.4291, allocations: 94.41 kB / 0.5645 GB, free: 0.5781 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.677e-05/0.4292, allocations: 32.84 kB / 0.5645 GB, free: 0.543 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.958e-05/0.4293, allocations: 4 kB / 0.5645 GB, free: 0.5391 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001985/0.4295, allocations: 106.6 kB / 0.5646 GB, free: 436 kB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 1.372e-06/0.4295, allocations: 0 / 0.5646 GB, free: 436 kB / 398.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004771/0.4299, allocations: 197.7 kB / 0.5648 GB, free: 232 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.443e-05/0.43, allocations: 63.34 kB / 0.5648 GB, free: 156 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001085/0.4301, allocations: 117.8 kB / 0.565 GB, free: 28 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.339e-05/0.4301, allocations: 33.7 kB / 0.565 GB, free: 15.99 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.673e-05/0.4302, allocations: 92.38 kB / 0.5651 GB, free: 15.89 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.418e-05/0.4303, allocations: 39.72 kB / 0.5651 GB, free: 15.85 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.054e-05/0.4303, allocations: 37.7 kB / 0.5652 GB, free: 15.81 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001452/0.4305, allocations: 326.8 kB / 0.5655 GB, free: 15.48 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.707e-05/0.4306, allocations: 35.97 kB / 0.5655 GB, free: 15.45 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001353/0.4307, allocations: 85.28 kB / 0.5656 GB, free: 15.35 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002153/0.4309, allocations: 112.2 kB / 0.5657 GB, free: 15.22 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.4309, allocations: 0 / 0.5657 GB, free: 15.22 MB / 414.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002924/0.4312, allocations: 162.3 kB / 0.5658 GB, free: 15.06 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.66e-05/0.4312, allocations: 8 kB / 0.5658 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.4312, allocations: 3.938 kB / 0.5659 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.497e-05/0.4312, allocations: 0 / 0.5659 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000123/0.4314, allocations: 27.92 kB / 0.5659 GB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.887e-06/0.4314, allocations: 4 kB / 0.5659 GB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.551e-05/0.4314, allocations: 11.89 kB / 0.5659 GB, free: 15 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.752e-05/0.4315, allocations: 12 kB / 0.5659 GB, free: 14.99 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.0001203/0.4316, allocations: 127.8 kB / 0.566 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.077e-05/0.4316, allocations: 15.98 kB / 0.566 GB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.328e-05/0.4316, allocations: 8.438 kB / 0.5661 GB, free: 14.83 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.933e-06/0.4316, allocations: 0 / 0.5661 GB, free: 14.83 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.99e-06/0.4316, allocations: 4 kB / 0.5661 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.601e-06/0.4316, allocations: 3.938 kB / 0.5661 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005561/0.4322, allocations: 393.8 kB / 0.5664 GB, free: 14.4 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.4322, allocations: 4 kB / 0.5664 GB, free: 14.4 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.157e-05/0.4323, allocations: 7.984 kB / 0.5664 GB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.873e-06/0.4323, allocations: 3.938 kB / 0.5664 GB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.046e-05/0.4323, allocations: 7.938 kB / 0.5665 GB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.4323, allocations: 4 kB / 0.5665 GB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.4323, allocations: 0 / 0.5665 GB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003774/0.4327, allocations: 263.4 kB / 0.5667 GB, free: 14.1 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.517e-05/0.4327, allocations: 11.89 kB / 0.5667 GB, free: 14.09 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.54e-05/0.4327, allocations: 3.938 kB / 0.5667 GB, free: 14.09 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001161/0.4328, allocations: 15.98 kB / 0.5667 GB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.154e-05/0.4329, allocations: 11.97 kB / 0.5668 GB, free: 14.06 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.737e-05/0.4329, allocations: 4 kB / 0.5668 GB, free: 14.05 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.132e-05/0.4329, allocations: 91.7 kB / 0.5668 GB, free: 13.96 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4329, allocations: 4 kB / 0.5668 GB, free: 13.96 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002516/0.4332, allocations: 24 kB / 0.5669 GB, free: 13.94 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.0001119/0.4333, allocations: 107.4 kB / 0.567 GB, free: 13.82 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002759/0.4336, allocations: 103.9 kB / 0.5671 GB, free: 13.72 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.744e-06/0.4336, allocations: 0 / 0.5671 GB, free: 13.72 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001167/0.4337, allocations: 51.84 kB / 0.5671 GB, free: 13.67 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002831/0.434, allocations: 22.53 kB / 0.5671 GB, free: 13.65 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004473/0.4344, allocations: 211.6 kB / 0.5673 GB, free: 13.42 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.611e-05/0.4345, allocations: 79.08 kB / 0.5674 GB, free: 13.32 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.426e-05/0.4346, allocations: 12.97 kB / 0.5674 GB, free: 13.3 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.196e-05/0.4346, allocations: 15.44 kB / 0.5674 GB, free: 13.29 MB / 414.1 MB Notification: Performance of SimCode: time 4.31e-07/0.4346, allocations: 0 / 0.5674 GB, free: 13.29 MB / 414.1 MB Notification: Performance of Templates: time 0.00431/0.4389, allocations: 1.114 MB / 0.5685 GB, free: 12.2 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/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.355569342151284]