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.001059/0.001059, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001534/0.002593, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.001093/0.001093, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001424/0.002517, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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 0.9665/0.9665, allocations: 177.2 MB / 189.6 MB, free: 5.316 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0949/1.061, allocations: 53.64 MB / 243.2 MB, free: 15.59 MB / 250.7 MB " [Timeout remaining time 179] 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.3093/0.3093, allocations: 34.25 MB / 278.2 MB, free: 15.29 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.03415/0.3434, allocations: 13.1 MB / 291.3 MB, free: 7.367 MB / 282.7 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 1.182e-06/1.182e-06, allocations: 0 / 292.6 MB, free: 6.316 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.934e-05/2.052e-05, allocations: 3.438 kB / 292.6 MB, free: 6.312 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.006288/0.006308, allocations: 1.63 MB / 294.2 MB, free: 4.676 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007789/0.007087, allocations: 0.5497 MB / 294.8 MB, free: 4.121 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.391e-05/0.007141, allocations: 0 / 294.8 MB, free: 4.121 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 2.611e-05/0.007167, allocations: 11.94 kB / 294.8 MB, free: 4.109 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 5.607e-05/0.007223, allocations: 19.78 kB / 294.8 MB, free: 4.09 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001498/0.007373, allocations: 51.75 kB / 294.9 MB, free: 4.039 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001236/0.007496, allocations: 95.7 kB / 295 MB, free: 3.945 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.658e-05/0.007573, allocations: 4 kB / 295 MB, free: 3.941 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001702/0.007743, allocations: 76.36 kB / 295 MB, free: 3.867 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.155e-05/0.007815, allocations: 31.89 kB / 295.1 MB, free: 3.836 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.764e-05/0.007832, allocations: 4 kB / 295.1 MB, free: 3.832 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.594e-05/0.007888, allocations: 12 kB / 295.1 MB, free: 3.82 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.193e-05/0.00791, allocations: 19.94 kB / 295.1 MB, free: 3.801 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.254e-05/0.007943, allocations: 23.92 kB / 295.1 MB, free: 3.777 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001171/0.00806, allocations: 59.72 kB / 295.2 MB, free: 3.719 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.439e-05/0.008074, allocations: 0 / 295.2 MB, free: 3.719 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.012e-06/0.008075, allocations: 0 / 295.2 MB, free: 3.719 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.361e-05/0.008089, allocations: 0 / 295.2 MB, free: 3.719 MB / 282.7 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.000499/0.008588, allocations: 329.5 kB / 295.5 MB, free: 3.375 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.287e-05/0.008621, allocations: 12.03 kB / 295.5 MB, free: 3.363 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001449/0.008766, allocations: 94.03 kB / 295.6 MB, free: 3.254 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001412/0.008907, allocations: 129.6 kB / 295.7 MB, free: 3.102 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.359e-05/0.00893, allocations: 12.36 kB / 295.8 MB, free: 3.09 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.199e-05/0.008942, allocations: 4.375 kB / 295.8 MB, free: 3.086 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000128/0.00907, allocations: 82.89 kB / 295.8 MB, free: 2.996 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.145e-06/0.009079, allocations: 192 / 295.8 MB, free: 2.996 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.024e-05/0.009089, allocations: 8.375 kB / 295.9 MB, free: 2.988 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.124e-06/0.009096, allocations: 3.938 kB / 295.9 MB, free: 2.984 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.829e-05/0.009134, allocations: 17.48 kB / 295.9 MB, free: 2.969 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003122/0.009447, allocations: 192.2 kB / 296.1 MB, free: 2.766 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001089/0.009555, allocations: 55.48 kB / 296.1 MB, free: 2.703 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.684e-05/0.009582, allocations: 12.86 kB / 296.1 MB, free: 2.688 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.295e-05/0.009605, allocations: 7.984 kB / 296.1 MB, free: 2.68 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001162/0.009721, allocations: 79.47 kB / 296.2 MB, free: 2.59 MB / 282.7 MB Notification: Performance of pre-optimization done (n=14): time 1.213e-06/0.009723, allocations: 0 / 296.2 MB, free: 2.59 MB / 282.7 MB Notification: Performance of matching and sorting (n=14): time 0.0001775/0.0099, allocations: 98.53 kB / 296.3 MB, free: 2.488 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.383e-05/0.009944, allocations: 59.41 kB / 296.4 MB, free: 2.418 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.382e-05/0.01002, allocations: 132.6 kB / 296.5 MB, free: 2.277 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.026e-05/0.01004, allocations: 33.7 kB / 296.5 MB, free: 2.238 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.534e-05/0.01007, allocations: 84.42 kB / 296.6 MB, free: 2.148 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.643e-05/0.01011, allocations: 39.7 kB / 296.7 MB, free: 2.109 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.077e-05/0.01016, allocations: 41.69 kB / 296.7 MB, free: 2.062 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0031/0.01326, allocations: 322.8 kB / 297 MB, free: 1.738 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.103e-05/0.01329, allocations: 12 kB / 297 MB, free: 1.727 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.042e-05/0.01334, allocations: 56.2 kB / 297.1 MB, free: 1.656 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.07e-05/0.01343, allocations: 90.11 kB / 297.2 MB, free: 1.555 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.01344, allocations: 0 / 297.2 MB, free: 1.555 MB / 282.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001347/0.01357, allocations: 97.59 kB / 297.3 MB, free: 1.453 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.444e-05/0.01358, allocations: 11.94 kB / 297.3 MB, free: 1.441 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/0.01359, allocations: 0 / 297.3 MB, free: 1.441 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.119e-05/0.0136, allocations: 7.984 kB / 297.3 MB, free: 1.434 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000106/0.01371, allocations: 31.98 kB / 297.3 MB, free: 1.402 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.486e-06/0.01371, allocations: 0 / 297.3 MB, free: 1.402 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.256e-05/0.01375, allocations: 20.02 kB / 297.3 MB, free: 1.383 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.658e-06/0.01376, allocations: 4 kB / 297.3 MB, free: 1.379 MB / 282.7 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 8.221e-05/0.01385, allocations: 131.7 kB / 297.5 MB, free: 1.238 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.831e-05/0.01386, allocations: 11.98 kB / 297.5 MB, free: 1.227 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.576e-05/0.01389, allocations: 8.656 kB / 297.5 MB, free: 1.219 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/0.01389, allocations: 4 kB / 297.5 MB, free: 1.215 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.0139, allocations: 7.922 kB / 297.5 MB, free: 1.207 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.0139, allocations: 3.984 kB / 297.5 MB, free: 1.203 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002581/0.01416, allocations: 253.5 kB / 297.7 MB, free: 0.9336 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.01416, allocations: 0 / 297.7 MB, free: 0.9336 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.431e-05/0.0142, allocations: 8 kB / 297.8 MB, free: 0.9258 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.383e-05/0.01421, allocations: 15.88 kB / 297.8 MB, free: 0.9102 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.754e-06/0.01421, allocations: 0 / 297.8 MB, free: 0.9102 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.923e-06/0.01422, allocations: 4 kB / 297.8 MB, free: 0.9062 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.01422, allocations: 0 / 297.8 MB, free: 0.9062 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.01422, allocations: 0 / 297.8 MB, free: 0.9062 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001224/0.01434, allocations: 187.2 kB / 298 MB, free: 0.707 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.008e-05/0.01436, allocations: 7.984 kB / 298 MB, free: 0.6992 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.158e-05/0.01443, allocations: 8 kB / 298 MB, free: 0.6914 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.836e-05/0.01446, allocations: 11.98 kB / 298 MB, free: 0.6797 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.443e-05/0.01448, allocations: 7.984 kB / 298 MB, free: 0.6719 MB / 282.7 MB Notification: Performance of sorting global known variables: time 2.035e-05/0.0145, allocations: 20.83 kB / 298 MB, free: 0.6484 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.0145, allocations: 0 / 298 MB, free: 0.6484 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000189/0.01469, allocations: 24 kB / 298 MB, free: 0.625 MB / 282.7 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 8.91e-05/0.01478, allocations: 80.42 kB / 298.1 MB, free: 0.5391 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001173/0.01489, allocations: 72.64 kB / 298.2 MB, free: 476 kB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 6.372e-06/0.0149, allocations: 4 kB / 298.2 MB, free: 472 kB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 4.375e-05/0.01494, allocations: 28.84 kB / 298.2 MB, free: 440 kB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001835/0.01513, allocations: 24.23 kB / 298.2 MB, free: 416 kB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008094/0.01594, allocations: 223.9 kB / 298.5 MB, free: 172 kB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.08e-05/0.01598, allocations: 67.28 kB / 298.5 MB, free: 84 kB / 282.7 MB Notification: Performance of simCode: alias equations: time 3.42e-05/0.01601, allocations: 8.969 kB / 298.5 MB, free: 76 kB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003066/0.01908, allocations: 63.38 kB / 298.6 MB, free: 12 kB / 282.7 MB Notification: Performance of SimCode: time 6.21e-07/0.01908, allocations: 0 / 298.6 MB, free: 12 kB / 282.7 MB Notification: Performance of Templates: time 0.006429/0.02551, allocations: 1.157 MB / 299.7 MB, free: 14.89 MB / 298.7 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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.8555006636306643]