Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.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.001665/0.001665, allocations: 117.8 kB / 17.13 MB, free: 5.926 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.002077/0.002077, allocations: 192.7 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.506/1.506, allocations: 207.6 MB / 230.5 MB, free: 4.043 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.34/0.34, allocations: 44.23 MB / 326.5 MB, free: 7.211 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: "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) [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.002251/0.002251, allocations: 76.45 kB / 462.2 MB, free: 1.031 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2551/0.2574, allocations: 60.99 MB / 0.5109 GB, free: 13.25 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.002891/0.2603, allocations: 2.244 MB / 0.5131 GB, free: 11.48 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001305/0.2616, allocations: 0.8257 MB / 0.5139 GB, free: 10.82 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000149/0.2617, allocations: 3.094 kB / 0.5139 GB, free: 10.82 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001574/0.2619, allocations: 36.88 kB / 0.5139 GB, free: 10.79 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002032/0.2621, allocations: 58.05 kB / 0.514 GB, free: 10.73 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002736/0.2624, allocations: 151.1 kB / 0.5141 GB, free: 10.61 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000312/0.2627, allocations: 356.1 kB / 0.5145 GB, free: 10.39 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002084/0.2629, allocations: 93.53 kB / 0.5146 GB, free: 10.33 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001549/0.263, allocations: 143.2 kB / 0.5147 GB, free: 10.23 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001689/0.2632, allocations: 148.4 kB / 0.5148 GB, free: 10.12 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.114e-05/0.2632, allocations: 33 kB / 0.5149 GB, free: 10.12 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.658e-05/0.2633, allocations: 37 kB / 0.5149 GB, free: 10.12 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.661e-05/0.2634, allocations: 76.08 kB / 0.515 GB, free: 10.06 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000118/0.2635, allocations: 157.7 kB / 0.5151 GB, free: 9.938 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003639/0.2638, allocations: 364.4 kB / 0.5155 GB, free: 9.668 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.2638, allocations: 0 / 0.5155 GB, free: 9.668 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.2638, allocations: 1 kB / 0.5155 GB, free: 9.668 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.454e-06/0.2639, allocations: 0 / 0.5155 GB, free: 9.668 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: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.0009739/0.2648, allocations: 0.62 MB / 0.5161 GB, free: 9.105 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.436e-05/0.2649, allocations: 13.23 kB / 0.5161 GB, free: 9.102 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.718e-05/0.265, allocations: 73.44 kB / 0.5162 GB, free: 9.027 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.997e-05/0.265, allocations: 44.47 kB / 0.5162 GB, free: 9.004 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004247/0.2655, allocations: 333.7 kB / 0.5165 GB, free: 8.695 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.605e-05/0.2655, allocations: 25.53 kB / 0.5165 GB, free: 8.684 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.136e-05/0.2656, allocations: 33.75 kB / 0.5166 GB, free: 8.672 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004573/0.266, allocations: 270.8 kB / 0.5168 GB, free: 8.508 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.893e-05/0.266, allocations: 5.234 kB / 0.5168 GB, free: 8.504 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.755e-05/0.2661, allocations: 10.75 kB / 0.5168 GB, free: 8.496 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.576e-06/0.2661, allocations: 10.72 kB / 0.5169 GB, free: 8.492 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003701/0.2664, allocations: 193.2 kB / 0.517 GB, free: 8.406 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001091/0.2675, allocations: 0.8096 MB / 0.5178 GB, free: 7.738 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003625/0.2679, allocations: 195.3 kB / 0.518 GB, free: 7.547 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001658/0.2681, allocations: 92.75 kB / 0.5181 GB, free: 7.453 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.907e-05/0.2681, allocations: 3.984 kB / 0.5181 GB, free: 7.449 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003336/0.2684, allocations: 235.1 kB / 0.5183 GB, free: 7.207 MB / 382.1 MB Notification: Performance of pre-optimization done (n=31): time 1.804e-06/0.2684, allocations: 0 / 0.5183 GB, free: 7.207 MB / 382.1 MB Notification: Performance of matching and sorting (n=31): time 0.0006915/0.2691, allocations: 370.2 kB / 0.5187 GB, free: 6.84 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.069e-05/0.2691, allocations: 59.41 kB / 0.5187 GB, free: 6.77 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001756/0.2693, allocations: 237 kB / 0.519 GB, free: 6.531 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.587e-05/0.2694, allocations: 33.7 kB / 0.519 GB, free: 6.492 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.595e-05/0.2694, allocations: 176.7 kB / 0.5192 GB, free: 6.316 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.868e-05/0.2695, allocations: 107.1 kB / 0.5193 GB, free: 6.211 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.833e-05/0.2696, allocations: 70.06 kB / 0.5193 GB, free: 6.133 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.787e-05/0.2697, allocations: 338.8 kB / 0.5197 GB, free: 5.793 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001687/0.2698, allocations: 92.7 kB / 0.5198 GB, free: 5.703 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002107/0.27, allocations: 234.3 kB / 0.52 GB, free: 5.414 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003905/0.2704, allocations: 340.8 kB / 0.5203 GB, free: 5.02 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/0.2704, allocations: 7.984 kB / 0.5203 GB, free: 5.012 MB / 382.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0005162/0.2709, allocations: 380.8 kB / 0.5207 GB, free: 4.633 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.737e-05/0.271, allocations: 4 kB / 0.5207 GB, free: 4.629 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/0.271, allocations: 8 kB / 0.5207 GB, free: 4.621 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.056e-05/0.271, allocations: 4.469 kB / 0.5207 GB, free: 4.617 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002774/0.2713, allocations: 75.89 kB / 0.5208 GB, free: 4.543 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.271e-05/0.2713, allocations: 11.94 kB / 0.5208 GB, free: 4.531 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001926/0.2715, allocations: 35.83 kB / 0.5208 GB, free: 4.496 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.04e-05/0.2715, allocations: 12.09 kB / 0.5208 GB, free: 4.484 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,mean.y,$PRE.mean.y,rectifiedMean.mean.y,$PRE.rectifiedMean.mean.y,rootMeanSquare.mean.y,$PRE.rootMeanSquare.mean.y,harmonic.mean2.y,$PRE.harmonic.mean2.y,harmonic.mean1.y,$PRE.harmonic.mean1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 46 * 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.0001311/0.2716, allocations: 169.6 kB / 0.521 GB, free: 4.309 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.712e-05/0.2717, allocations: 27.86 kB / 0.521 GB, free: 4.281 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000541/0.2722, allocations: 323.4 kB / 0.5213 GB, free: 3.965 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.949e-06/0.2722, allocations: 4 kB / 0.5213 GB, free: 3.961 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.531e-06/0.2722, allocations: 0 / 0.5213 GB, free: 3.961 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/0.2722, allocations: 3.984 kB / 0.5213 GB, free: 3.957 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007585/0.273, allocations: 0.709 MB / 0.522 GB, free: 3.191 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.935e-06/0.273, allocations: 11.92 kB / 0.522 GB, free: 3.18 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002329/0.2732, allocations: 47.97 kB / 0.5221 GB, free: 3.133 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.787e-06/0.2732, allocations: 0 / 0.5221 GB, free: 3.133 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.257e-05/0.2732, allocations: 8 kB / 0.5221 GB, free: 3.125 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.426e-06/0.2732, allocations: 3.984 kB / 0.5221 GB, free: 3.121 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.2732, allocations: 0 / 0.5221 GB, free: 3.121 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006706/0.2739, allocations: 0.5229 MB / 0.5226 GB, free: 2.582 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.723e-05/0.274, allocations: 108.8 kB / 0.5227 GB, free: 2.457 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.584e-05/0.274, allocations: 8.062 kB / 0.5227 GB, free: 2.449 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001667/0.2742, allocations: 15.98 kB / 0.5227 GB, free: 2.434 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.653e-05/0.2742, allocations: 23.97 kB / 0.5227 GB, free: 2.41 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.984e-05/0.2742, allocations: 15.92 kB / 0.5228 GB, free: 2.395 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001046/0.2744, allocations: 168.4 kB / 0.5229 GB, free: 2.23 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2744, allocations: 4 kB / 0.5229 GB, free: 2.227 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003553/0.2747, allocations: 71.83 kB / 0.523 GB, free: 2.156 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (mean.x,rectifiedMean.mean.x,rootMeanSquare.mean.x,harmonic.mean1.x,harmonic.mean2.x) * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,mean.y,rectifiedMean.mean.y,rootMeanSquare.mean.y,harmonic.mean1.y,harmonic.mean2.y) * Number of discrete states: 5 (harmonic.mean2.x,harmonic.mean1.x,rootMeanSquare.mean.x,rectifiedMean.mean.x,mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0008611/0.2756, allocations: 1.072 MB / 0.524 GB, free: 1.055 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004582/0.276, allocations: 251.9 kB / 0.5243 GB, free: 0.8086 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.276, allocations: 4.938 kB / 0.5243 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001934/0.2762, allocations: 124.4 kB / 0.5244 GB, free: 0.6836 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003453/0.2766, allocations: 36.67 kB / 0.5244 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003902/0.2805, allocations: 3.088 MB / 0.5275 GB, free: 13.36 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004444/0.2809, allocations: 0.7802 MB / 0.5282 GB, free: 12.55 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001682/0.2811, allocations: 38.97 kB / 0.5283 GB, free: 12.52 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001768/0.2813, allocations: 115.4 kB / 0.5284 GB, free: 12.4 MB / 398.1 MB Notification: Performance of SimCode: time 7.01e-07/0.2813, allocations: 0 / 0.5284 GB, free: 12.4 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03124/0.3125, allocations: 5.567 MB / 0.5338 GB, free: 6.82 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.805/9.117, allocations: 7.031 kB / 0.5338 GB, free: 6.816 MB / 398.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_Mean_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219736 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_Mean.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Mean/Mean.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.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: 12.031673495657742]