Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001849/0.001849, allocations: 116 kB / 17.13 MB, free: 5.93 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002101/0.002101, allocations: 194.8 kB / 20.07 MB, free: 2.992 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.568/1.568, allocations: 207.6 MB / 230.4 MB, free: 4.035 MB / 174.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3298/0.3298, allocations: 44.24 MB / 326.5 MB, free: 6.793 MB / 254.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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_3.2.3_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_3.2.3_ModelicaTest.Blocks.FirstOrderHold") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003083/0.003083, allocations: 80.2 kB / 462.7 MB, free: 460 kB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2889/0.292, allocations: 60.98 MB / 0.5114 GB, free: 13.5 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002625/0.2946, allocations: 1.545 MB / 0.5129 GB, free: 12.29 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007798/0.2954, allocations: 0.5364 MB / 0.5134 GB, free: 11.87 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.248e-05/0.2954, allocations: 1.719 kB / 0.5134 GB, free: 11.87 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 2.853e-05/0.2954, allocations: 11.92 kB / 0.5134 GB, free: 11.86 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.909e-05/0.2955, allocations: 13.66 kB / 0.5134 GB, free: 11.84 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001871/0.2957, allocations: 33.39 kB / 0.5135 GB, free: 11.82 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001258/0.2958, allocations: 83.7 kB / 0.5135 GB, free: 11.77 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.913e-05/0.2959, allocations: 19.52 kB / 0.5136 GB, free: 11.75 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001148/0.2961, allocations: 42.42 kB / 0.5136 GB, free: 11.73 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.19e-05/0.2961, allocations: 39.89 kB / 0.5136 GB, free: 11.7 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.456e-05/0.2962, allocations: 6.25 kB / 0.5136 GB, free: 11.7 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.766e-05/0.2962, allocations: 13.62 kB / 0.5137 GB, free: 11.7 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.933e-05/0.2962, allocations: 23.09 kB / 0.5137 GB, free: 11.68 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.799e-05/0.2963, allocations: 35.89 kB / 0.5137 GB, free: 11.65 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001216/0.2964, allocations: 78.08 kB / 0.5138 GB, free: 11.59 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.2964, allocations: 0 / 0.5138 GB, free: 11.59 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2964, allocations: 0 / 0.5138 GB, free: 11.59 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.42e-06/0.2964, allocations: 0 / 0.5138 GB, free: 11.59 MB / 382.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.0005519/0.2969, allocations: 398.8 kB / 0.5142 GB, free: 11.2 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.777e-05/0.297, allocations: 13.45 kB / 0.5142 GB, free: 11.2 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.876e-05/0.297, allocations: 13.25 kB / 0.5142 GB, free: 11.19 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.546e-05/0.2971, allocations: 172.7 kB / 0.5144 GB, free: 10.98 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.386e-05/0.2971, allocations: 3.094 kB / 0.5144 GB, free: 10.98 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.308e-05/0.2971, allocations: 10.03 kB / 0.5144 GB, free: 10.98 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001801/0.2973, allocations: 92.89 kB / 0.5145 GB, free: 10.91 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.777e-06/0.2973, allocations: 0 / 0.5145 GB, free: 10.91 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.412e-05/0.2974, allocations: 0 / 0.5145 GB, free: 10.91 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.691e-06/0.2974, allocations: 1.844 kB / 0.5145 GB, free: 10.91 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001237/0.2975, allocations: 48.62 kB / 0.5145 GB, free: 10.89 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004366/0.2979, allocations: 331.2 kB / 0.5148 GB, free: 10.55 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000171/0.2981, allocations: 80.22 kB / 0.5149 GB, free: 10.49 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.116e-05/0.2982, allocations: 39 kB / 0.5149 GB, free: 10.47 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.5e-05/0.2982, allocations: 9.516 kB / 0.5149 GB, free: 10.46 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001976/0.2984, allocations: 98.08 kB / 0.515 GB, free: 10.38 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.473e-06/0.2984, allocations: 0 / 0.515 GB, free: 10.38 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004165/0.2988, allocations: 190.7 kB / 0.5152 GB, free: 10.28 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.253e-05/0.2989, allocations: 59.45 kB / 0.5153 GB, free: 10.21 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.865e-05/0.2989, allocations: 114.1 kB / 0.5154 GB, free: 10.11 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.656e-05/0.2989, allocations: 36.05 kB / 0.5154 GB, free: 10.07 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.243e-05/0.299, allocations: 98.52 kB / 0.5155 GB, free: 9.969 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.026e-05/0.299, allocations: 33.39 kB / 0.5155 GB, free: 9.941 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.943e-05/0.2991, allocations: 38.89 kB / 0.5156 GB, free: 9.91 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.234e-05/0.2991, allocations: 325.7 kB / 0.5159 GB, free: 9.586 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.014e-05/0.2992, allocations: 31.48 kB / 0.5159 GB, free: 9.574 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.242e-05/0.2993, allocations: 82.09 kB / 0.516 GB, free: 9.5 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001678/0.2995, allocations: 116.8 kB / 0.5161 GB, free: 9.414 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.2995, allocations: 4 kB / 0.5161 GB, free: 9.41 MB / 382.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000243/0.2997, allocations: 166.2 kB / 0.5163 GB, free: 9.312 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.524e-05/0.2997, allocations: 5.5 kB / 0.5163 GB, free: 9.312 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.2997, allocations: 1.375 kB / 0.5163 GB, free: 9.312 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.683e-05/0.2997, allocations: 6.75 kB / 0.5163 GB, free: 9.309 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001089/0.2998, allocations: 23.05 kB / 0.5163 GB, free: 9.301 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.243e-06/0.2999, allocations: 2.75 kB / 0.5163 GB, free: 9.301 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.958e-05/0.2999, allocations: 20.17 kB / 0.5163 GB, free: 9.285 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.186e-05/0.2999, allocations: 5.5 kB / 0.5163 GB, free: 9.285 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 18 (firstOrderHold.firstTrigger,$PRE.firstOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.ySample,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) * 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 7.831e-05/0.3, allocations: 132.3 kB / 0.5165 GB, free: 9.152 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.757e-05/0.3, allocations: 8.078 kB / 0.5165 GB, free: 9.148 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.932e-05/0.3, allocations: 9.875 kB / 0.5165 GB, free: 9.137 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.3001, allocations: 6.688 kB / 0.5165 GB, free: 9.133 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.3001, allocations: 0 / 0.5165 GB, free: 9.133 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.3001, allocations: 0 / 0.5165 GB, free: 9.133 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000432/0.3005, allocations: 453.2 kB / 0.5169 GB, free: 8.727 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.3005, allocations: 3.938 kB / 0.5169 GB, free: 8.723 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.114e-05/0.3005, allocations: 9.484 kB / 0.5169 GB, free: 8.719 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.3005, allocations: 1.375 kB / 0.5169 GB, free: 8.719 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.229e-05/0.3006, allocations: 1.75 kB / 0.5169 GB, free: 8.719 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.474e-06/0.3006, allocations: 5.312 kB / 0.5169 GB, free: 8.715 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.3006, allocations: 0 / 0.5169 GB, free: 8.715 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002635/0.3008, allocations: 253.3 kB / 0.5172 GB, free: 8.527 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.505e-05/0.3009, allocations: 91.69 kB / 0.5173 GB, free: 8.422 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.592e-05/0.3009, allocations: 9.359 kB / 0.5173 GB, free: 8.414 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000103/0.301, allocations: 4.125 kB / 0.5173 GB, free: 8.414 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.753e-05/0.301, allocations: 9.484 kB / 0.5173 GB, free: 8.41 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.04e-05/0.301, allocations: 12.11 kB / 0.5173 GB, free: 8.402 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.179e-05/0.3011, allocations: 87.53 kB / 0.5174 GB, free: 8.324 MB / 382.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3011, allocations: 0 / 0.5174 GB, free: 8.324 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002488/0.3013, allocations: 25.86 kB / 0.5174 GB, free: 8.316 MB / 382.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 9.854e-05/0.3014, allocations: 110.2 kB / 0.5175 GB, free: 8.215 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002497/0.3017, allocations: 103.8 kB / 0.5176 GB, free: 8.172 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.3017, allocations: 0 / 0.5176 GB, free: 8.172 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001033/0.3018, allocations: 43.14 kB / 0.5177 GB, free: 8.156 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002842/0.3021, allocations: 18.08 kB / 0.5177 GB, free: 8.145 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003802/0.3024, allocations: 204 kB / 0.5179 GB, free: 7.973 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001104/0.3026, allocations: 0.6918 MB / 0.5185 GB, free: 7.27 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.985e-05/0.3026, allocations: 11.78 kB / 0.5186 GB, free: 7.266 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.561e-05/0.3026, allocations: 16.72 kB / 0.5186 GB, free: 7.254 MB / 382.1 MB Notification: Performance of SimCode: time 2.9e-07/0.3026, allocations: 1.25 kB / 0.5186 GB, free: 7.254 MB / 382.1 MB Notification: Performance of Templates: time 0.003325/0.306, allocations: 1.016 MB / 0.5196 GB, free: 6.27 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/FirstOrderHold/FirstOrderHold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_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.095900128595531]