Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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.001796/0.001796, allocations: 111.1 kB / 20.44 MB, free: 1.199 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.001554/0.001554, allocations: 208.2 kB / 23.72 MB, free: 4.41 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.581/1.581, allocations: 230.6 MB / 257.5 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2312/0.2312, allocations: 44.94 MB / 358.9 MB, free: 6.07 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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: "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002167/0.002167, allocations: 67.89 kB / 0.493 GB, free: 10.56 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3038/0.306, allocations: 65.48 MB / 0.557 GB, free: 7.336 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.00349/0.3095, allocations: 2.172 MB / 0.5591 GB, free: 5.352 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001681/0.3112, allocations: 0.8579 MB / 0.5599 GB, free: 4.488 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001338/0.3113, allocations: 7.938 kB / 0.5599 GB, free: 4.48 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001393/0.3114, allocations: 35.53 kB / 0.56 GB, free: 4.445 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002307/0.3117, allocations: 71.31 kB / 0.56 GB, free: 4.375 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004451/0.3121, allocations: 183.7 kB / 0.5602 GB, free: 4.195 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004227/0.3125, allocations: 394.9 kB / 0.5606 GB, free: 3.809 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002141/0.3127, allocations: 92.56 kB / 0.5607 GB, free: 3.715 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002498/0.313, allocations: 163.3 kB / 0.5608 GB, free: 3.555 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002545/0.3133, allocations: 143.1 kB / 0.561 GB, free: 3.414 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.743e-05/0.3133, allocations: 40 kB / 0.561 GB, free: 3.375 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000124/0.3134, allocations: 47.98 kB / 0.5611 GB, free: 3.328 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001155/0.3136, allocations: 91.69 kB / 0.5611 GB, free: 3.238 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001839/0.3137, allocations: 139.2 kB / 0.5613 GB, free: 3.102 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006385/0.3144, allocations: 420.2 kB / 0.5617 GB, free: 2.691 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.982e-06/0.3144, allocations: 4 kB / 0.5617 GB, free: 2.688 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.755e-06/0.3144, allocations: 0 / 0.5617 GB, free: 2.688 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.542e-05/0.3144, allocations: 0 / 0.5617 GB, free: 2.688 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.001515/0.3159, allocations: 0.7189 MB / 0.5624 GB, free: 1.922 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.277e-05/0.316, allocations: 15.97 kB / 0.5624 GB, free: 1.906 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001281/0.3161, allocations: 83.25 kB / 0.5625 GB, free: 1.816 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004857/0.3166, allocations: 84.61 kB / 0.5626 GB, free: 1.734 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005946/0.3172, allocations: 295 kB / 0.5628 GB, free: 1.422 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.283e-05/0.3172, allocations: 21.03 kB / 0.5629 GB, free: 1.402 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.556e-05/0.3173, allocations: 36.38 kB / 0.5629 GB, free: 1.367 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005727/0.3178, allocations: 294 kB / 0.5632 GB, free: 1.074 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.891e-05/0.3179, allocations: 0 / 0.5632 GB, free: 1.074 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.151e-05/0.3179, allocations: 12 kB / 0.5632 GB, free: 1.062 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.385e-05/0.3179, allocations: 11.94 kB / 0.5632 GB, free: 1.051 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004579/0.3184, allocations: 194.5 kB / 0.5634 GB, free: 0.8594 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001421/0.3198, allocations: 0.7574 MB / 0.5641 GB, free: 60 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004498/0.3202, allocations: 186.8 kB / 0.5643 GB, free: 15.87 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002129/0.3205, allocations: 88.81 kB / 0.5644 GB, free: 15.78 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.864e-05/0.3205, allocations: 4 kB / 0.5644 GB, free: 15.77 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004526/0.3209, allocations: 227.7 kB / 0.5646 GB, free: 15.54 MB / 414.1 MB Notification: Performance of pre-optimization done (n=31): time 1.964e-06/0.3209, allocations: 0 / 0.5646 GB, free: 15.54 MB / 414.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008702/0.3218, allocations: 381.3 kB / 0.565 GB, free: 15.16 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.231e-05/0.3219, allocations: 55.41 kB / 0.565 GB, free: 15.09 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002956/0.3222, allocations: 268.2 kB / 0.5653 GB, free: 14.82 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.226e-05/0.3222, allocations: 41.64 kB / 0.5653 GB, free: 14.78 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001475/0.3223, allocations: 192.9 kB / 0.5655 GB, free: 14.58 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.385e-05/0.3224, allocations: 103.2 kB / 0.5656 GB, free: 14.48 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001151/0.3226, allocations: 74.06 kB / 0.5657 GB, free: 14.4 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001733/0.3227, allocations: 350.7 kB / 0.566 GB, free: 14.05 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002161/0.3229, allocations: 88.7 kB / 0.5661 GB, free: 13.96 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003227/0.3233, allocations: 230.5 kB / 0.5663 GB, free: 13.68 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005682/0.3238, allocations: 344.7 kB / 0.5666 GB, free: 13.28 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-06/0.3238, allocations: 0 / 0.5666 GB, free: 13.28 MB / 414.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007095/0.3245, allocations: 380.8 kB / 0.567 GB, free: 12.9 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.855e-05/0.3246, allocations: 8 kB / 0.567 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.207e-06/0.3246, allocations: 4 kB / 0.567 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.217e-05/0.3246, allocations: 8 kB / 0.567 GB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003124/0.3249, allocations: 80.3 kB / 0.5671 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.299e-05/0.3249, allocations: 8 kB / 0.5671 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001889/0.3251, allocations: 35.83 kB / 0.5671 GB, free: 12.76 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.932e-05/0.3251, allocations: 19.94 kB / 0.5672 GB, free: 12.74 MB / 414.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,rectifiedMean.mean.y_last,$PRE.rectifiedMean.mean.y_last,mean.y_last,$PRE.mean.y_last,rootMeanSquare.mean.y_last,$PRE.rootMeanSquare.mean.y_last,harmonic.mean1.y_last,$PRE.harmonic.mean1.y_last,harmonic.mean2.y_last,$PRE.harmonic.mean2.y_last) * 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.0002115/0.3253, allocations: 174.6 kB / 0.5673 GB, free: 12.56 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.856e-05/0.3254, allocations: 31.81 kB / 0.5674 GB, free: 12.53 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007107/0.3261, allocations: 324.3 kB / 0.5677 GB, free: 12.2 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.743e-06/0.3261, allocations: 4 kB / 0.5677 GB, free: 12.2 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.3261, allocations: 0 / 0.5677 GB, free: 12.2 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.905e-06/0.3261, allocations: 3.984 kB / 0.5677 GB, free: 12.19 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001053/0.3272, allocations: 0.669 MB / 0.5683 GB, free: 11.47 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.34e-06/0.3272, allocations: 3.984 kB / 0.5683 GB, free: 11.47 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002562/0.3275, allocations: 51.91 kB / 0.5684 GB, free: 11.42 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.986e-06/0.3275, allocations: 4 kB / 0.5684 GB, free: 11.41 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.643e-05/0.3275, allocations: 8 kB / 0.5684 GB, free: 11.41 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.967e-06/0.3275, allocations: 7.922 kB / 0.5684 GB, free: 11.4 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.3275, allocations: 4 kB / 0.5684 GB, free: 11.39 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009519/0.3284, allocations: 0.5117 MB / 0.5689 GB, free: 10.87 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.136e-05/0.3285, allocations: 35.8 kB / 0.5689 GB, free: 10.83 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.652e-05/0.3285, allocations: 8.219 kB / 0.5689 GB, free: 10.82 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001773/0.3287, allocations: 31.86 kB / 0.569 GB, free: 10.79 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.61e-05/0.3288, allocations: 23.95 kB / 0.569 GB, free: 10.77 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.771e-05/0.3288, allocations: 15.98 kB / 0.569 GB, free: 10.75 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002043/0.329, allocations: 187.1 kB / 0.5692 GB, free: 10.57 MB / 414.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.329, allocations: 0 / 0.5692 GB, free: 10.57 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003759/0.3294, allocations: 79.77 kB / 0.5693 GB, free: 10.5 MB / 414.1 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_last,harmonic.mean1.y_last,rootMeanSquare.mean.y_last,rectifiedMean.mean.y_last,mean.y_last) * 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.001261/0.3307, allocations: 1.081 MB / 0.5703 GB, free: 9.391 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005773/0.3312, allocations: 243.7 kB / 0.5706 GB, free: 9.152 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.746e-06/0.3312, allocations: 0 / 0.5706 GB, free: 9.152 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002662/0.3315, allocations: 129.2 kB / 0.5707 GB, free: 9.027 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003845/0.3319, allocations: 51.84 kB / 0.5707 GB, free: 8.977 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004705/0.3366, allocations: 3.241 MB / 0.5739 GB, free: 5.539 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002097/0.3368, allocations: 191.3 kB / 0.5741 GB, free: 5.332 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001562/0.337, allocations: 43.23 kB / 0.5741 GB, free: 5.289 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001978/0.3372, allocations: 123.4 kB / 0.5742 GB, free: 5.168 MB / 414.1 MB Notification: Performance of SimCode: time 6.42e-07/0.3372, allocations: 0 / 0.5742 GB, free: 5.168 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03723/0.3744, allocations: 6.732 MB / 0.5808 GB, free: 14.59 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.69/12.06, allocations: 0 / 0.5808 GB, free: 14.59 MB / 430.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_Mean_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219736 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_Mean.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Mean/Mean.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_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: 15.149155747145414]