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.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.0008116/0.0008116, allocations: 80.44 kB / 19.93 MB, free: 4.633 MB / 18.57 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.0009334/0.0009334, allocations: 169.9 kB / 23.21 MB, free: 1.352 MB / 18.57 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 0.8491/0.8491, allocations: 158.6 MB / 185 MB, free: 3.043 MB / 170.7 MB " [Timeout remaining time 179] 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.1211/0.1211, allocations: 32.37 MB / 269.6 MB, free: 14.97 MB / 266.7 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.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: "" <> 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: Performance of FrontEnd - loaded program: time 1.523e-06/1.523e-06, allocations: 3.938 kB / 406.8 MB, free: 2.266 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.831e-05/1.984e-05, allocations: 2.281 kB / 406.8 MB, free: 2.262 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.002803/0.002823, allocations: 2.11 MB / 408.9 MB, free: 148 kB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001277/0.004101, allocations: 0.776 MB / 409.7 MB, free: 15.36 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001295/0.00423, allocations: 7.938 kB / 409.7 MB, free: 15.35 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001225/0.004353, allocations: 43.53 kB / 409.8 MB, free: 15.31 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000193/0.004546, allocations: 59.39 kB / 409.8 MB, free: 15.25 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002689/0.004814, allocations: 151.6 kB / 410 MB, free: 15.1 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002897/0.005104, allocations: 362.9 kB / 410.3 MB, free: 14.75 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001812/0.005285, allocations: 80.84 kB / 410.4 MB, free: 14.67 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002158/0.005501, allocations: 203.6 kB / 410.6 MB, free: 14.47 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001453/0.005646, allocations: 115.6 kB / 410.7 MB, free: 14.36 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 4.221e-05/0.005689, allocations: 32 kB / 410.7 MB, free: 14.33 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.936e-05/0.005718, allocations: 32 kB / 410.8 MB, free: 14.3 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 6.059e-05/0.005779, allocations: 87.66 kB / 410.9 MB, free: 14.21 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 8.26e-05/0.005861, allocations: 103.7 kB / 411 MB, free: 14.11 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002737/0.006135, allocations: 370.7 kB / 411.3 MB, free: 13.75 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.375e-06/0.006137, allocations: 0 / 411.3 MB, free: 13.75 MB / 394.7 MB Notification: Performance of FrontEnd: time 8.52e-07/0.006138, allocations: 0 / 411.3 MB, free: 13.75 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.08e-06/0.006143, allocations: 0 / 411.3 MB, free: 13.75 MB / 394.7 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.0008172/0.00696, allocations: 0.6834 MB / 412 MB, free: 13.02 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.648e-05/0.006997, allocations: 8.031 kB / 412 MB, free: 13.01 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.919e-05/0.007076, allocations: 75.28 kB / 412.1 MB, free: 12.93 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.493e-05/0.007131, allocations: 40.7 kB / 412.1 MB, free: 12.89 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000338/0.007469, allocations: 281.2 kB / 412.4 MB, free: 12.58 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.866e-05/0.007488, allocations: 21.03 kB / 412.4 MB, free: 12.56 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.768e-05/0.007525, allocations: 36.33 kB / 412.5 MB, free: 12.53 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003219/0.007847, allocations: 274.5 kB / 412.7 MB, free: 12.25 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.321e-05/0.00786, allocations: 4.125 kB / 412.7 MB, free: 12.25 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.252e-05/0.007883, allocations: 19.92 kB / 412.8 MB, free: 12.23 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.697e-06/0.007892, allocations: 8 kB / 412.8 MB, free: 12.22 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002472/0.008139, allocations: 194.5 kB / 413 MB, free: 12.03 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008229/0.008962, allocations: 0.6908 MB / 413.6 MB, free: 11.3 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002802/0.009242, allocations: 182.8 kB / 413.8 MB, free: 11.11 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001165/0.009358, allocations: 92.81 kB / 413.9 MB, free: 11.02 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.626e-05/0.009385, allocations: 7.938 kB / 413.9 MB, free: 11.01 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002696/0.009654, allocations: 239 kB / 414.2 MB, free: 10.76 MB / 394.7 MB Notification: Performance of pre-optimization done (n=31): time 1.573e-06/0.009656, allocations: 3.938 kB / 414.2 MB, free: 10.76 MB / 394.7 MB Notification: Performance of matching and sorting (n=31): time 0.0006507/0.01031, allocations: 377.3 kB / 414.5 MB, free: 10.38 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.898e-05/0.01035, allocations: 55.41 kB / 414.6 MB, free: 10.32 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001582/0.0105, allocations: 233.9 kB / 414.8 MB, free: 10.08 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.285e-05/0.01053, allocations: 33.7 kB / 414.8 MB, free: 10.04 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.759e-05/0.0106, allocations: 184.6 kB / 415 MB, free: 9.855 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.164e-05/0.01066, allocations: 91.23 kB / 415.1 MB, free: 9.766 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.371e-05/0.01073, allocations: 78.05 kB / 415.2 MB, free: 9.68 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.547e-05/0.01082, allocations: 342.8 kB / 415.5 MB, free: 9.336 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001196/0.01093, allocations: 84.7 kB / 415.6 MB, free: 9.254 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000168/0.0111, allocations: 230.3 kB / 415.8 MB, free: 8.969 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000309/0.01141, allocations: 344.8 kB / 416.2 MB, free: 8.57 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.01141, allocations: 0 / 416.2 MB, free: 8.57 MB / 394.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003899/0.0118, allocations: 380.7 kB / 416.5 MB, free: 8.191 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.629e-05/0.01182, allocations: 8.469 kB / 416.5 MB, free: 8.184 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.493e-06/0.01183, allocations: 4 kB / 416.6 MB, free: 8.18 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.562e-05/0.01184, allocations: 12 kB / 416.6 MB, free: 8.168 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001631/0.01201, allocations: 75.89 kB / 416.6 MB, free: 8.094 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.316e-06/0.01201, allocations: 7.938 kB / 416.6 MB, free: 8.086 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.209e-05/0.01211, allocations: 35.77 kB / 416.7 MB, free: 8.051 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.622e-05/0.01212, allocations: 20 kB / 416.7 MB, free: 8.031 MB / 394.7 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,rectifiedMean.mean.y,$PRE.rectifiedMean.mean.y,mean.y,$PRE.mean.y,rootMeanSquare.mean.y,$PRE.rootMeanSquare.mean.y,harmonic.mean1.y,$PRE.harmonic.mean1.y,harmonic.mean2.y,$PRE.harmonic.mean2.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.0001253/0.01225, allocations: 170.2 kB / 416.9 MB, free: 7.855 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.121e-05/0.01228, allocations: 31.75 kB / 416.9 MB, free: 7.824 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004069/0.01269, allocations: 327.5 kB / 417.2 MB, free: 7.5 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.01269, allocations: 4 kB / 417.2 MB, free: 7.496 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.01269, allocations: 0 / 417.2 MB, free: 7.496 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.0127, allocations: 0 / 417.2 MB, free: 7.496 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005866/0.01329, allocations: 0.6495 MB / 417.9 MB, free: 6.797 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.01329, allocations: 4 kB / 417.9 MB, free: 6.793 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001392/0.01343, allocations: 47.97 kB / 417.9 MB, free: 6.746 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.419e-06/0.01343, allocations: 4 kB / 417.9 MB, free: 6.742 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.726e-05/0.01345, allocations: 7.984 kB / 417.9 MB, free: 6.734 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.405e-06/0.01345, allocations: 4 kB / 417.9 MB, free: 6.73 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/0.01345, allocations: 0 / 417.9 MB, free: 6.73 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005273/0.01398, allocations: 0.5304 MB / 418.5 MB, free: 6.184 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.735e-05/0.01401, allocations: 31.75 kB / 418.5 MB, free: 6.152 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.966e-05/0.01404, allocations: 8.062 kB / 418.5 MB, free: 6.145 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.391e-05/0.01412, allocations: 15.98 kB / 418.5 MB, free: 6.129 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.809e-05/0.01418, allocations: 24.09 kB / 418.5 MB, free: 6.105 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.926e-05/0.0142, allocations: 19.97 kB / 418.6 MB, free: 6.086 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.000109/0.01431, allocations: 165.2 kB / 418.7 MB, free: 5.922 MB / 394.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01431, allocations: 0 / 418.7 MB, free: 5.922 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002552/0.01456, allocations: 71.84 kB / 418.8 MB, free: 5.852 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (harmonic.mean2.x,harmonic.mean1.x,rootMeanSquare.mean.x,rectifiedMean.mean.x,mean.x) * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,harmonic.mean2.y,harmonic.mean1.y,rootMeanSquare.mean.y,rectifiedMean.mean.y,mean.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.0007162/0.01528, allocations: 1.079 MB / 419.9 MB, free: 4.746 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0003256/0.0156, allocations: 244.8 kB / 420.1 MB, free: 4.508 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.01561, allocations: 8.312 kB / 420.1 MB, free: 4.5 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001397/0.01575, allocations: 123.8 kB / 420.2 MB, free: 4.379 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002476/0.01599, allocations: 36.95 kB / 420.3 MB, free: 4.344 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002586/0.01858, allocations: 3.055 MB / 423.3 MB, free: 1.09 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001103/0.01869, allocations: 178.1 kB / 423.5 MB, free: 0.8984 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 9.376e-05/0.01878, allocations: 43.23 kB / 423.5 MB, free: 0.8555 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001131/0.0189, allocations: 108.5 kB / 423.7 MB, free: 0.75 MB / 394.7 MB Notification: Performance of SimCode: time 1.022e-06/0.0189, allocations: 0 / 423.7 MB, free: 0.75 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01991/0.03881, allocations: 6.341 MB / 430 MB, free: 10.4 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.66/6.699, allocations: 7.922 kB / 430 MB, free: 10.39 MB / 410.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Mean/Mean.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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: 8.61992914415896]