Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.Mean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001411/0.001411, 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 trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001661/0.001661, allocations: 203.1 kB / 23.73 MB, free: 4.414 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.515/1.515, allocations: 230.5 MB / 257.4 MB, free: 7.754 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2296/0.2296, allocations: 46.95 MB / 360.8 MB, free: 3.914 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.003657/0.003657, allocations: 79.88 kB / 0.4961 GB, free: 7.543 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3504/0.354, allocations: 66.09 MB / 0.5607 GB, free: 4.012 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003909/0.3579, allocations: 2.178 MB / 0.5628 GB, free: 1.824 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001654/0.3596, allocations: 0.8618 MB / 0.5637 GB, free: 0.957 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001361/0.3597, allocations: 7.938 kB / 0.5637 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001472/0.3599, allocations: 39.47 kB / 0.5637 GB, free: 0.9102 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002351/0.3601, allocations: 67.39 kB / 0.5638 GB, free: 0.8438 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004341/0.3605, allocations: 187.6 kB / 0.5639 GB, free: 0.6602 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004066/0.361, allocations: 394.9 kB / 0.5643 GB, free: 280 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002288/0.3612, allocations: 92.56 kB / 0.5644 GB, free: 184 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002414/0.3614, allocations: 151.4 kB / 0.5645 GB, free: 32 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002417/0.3617, allocations: 155.2 kB / 0.5647 GB, free: 15.88 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.979e-05/0.3617, allocations: 40 kB / 0.5647 GB, free: 15.84 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001014/0.3618, allocations: 48 kB / 0.5648 GB, free: 15.79 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9.348e-05/0.3619, allocations: 87.67 kB / 0.5649 GB, free: 15.7 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001459/0.3621, allocations: 143.2 kB / 0.565 GB, free: 15.56 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000454/0.3625, allocations: 416.1 kB / 0.5654 GB, free: 15.16 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.3625, allocations: 0 / 0.5654 GB, free: 15.16 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.3625, allocations: 0 / 0.5654 GB, free: 15.16 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.088e-05/0.3625, allocations: 0 / 0.5654 GB, free: 15.16 MB / 414.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.001253/0.3638, allocations: 0.7306 MB / 0.5661 GB, free: 14.38 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.208e-05/0.3638, allocations: 8.031 kB / 0.5661 GB, free: 14.38 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001092/0.3639, allocations: 83.19 kB / 0.5662 GB, free: 14.29 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005097/0.3645, allocations: 76.62 kB / 0.5663 GB, free: 14.21 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000559/0.365, allocations: 303 kB / 0.5666 GB, free: 13.89 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.959e-05/0.365, allocations: 29.03 kB / 0.5666 GB, free: 13.86 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.957e-05/0.3651, allocations: 32.38 kB / 0.5666 GB, free: 13.83 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005434/0.3656, allocations: 293.9 kB / 0.5669 GB, free: 13.54 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.728e-05/0.3657, allocations: 0 / 0.5669 GB, free: 13.54 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.244e-05/0.3657, allocations: 15.98 kB / 0.5669 GB, free: 13.52 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.316e-06/0.3657, allocations: 4 kB / 0.5669 GB, free: 13.52 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004391/0.3661, allocations: 206.5 kB / 0.5671 GB, free: 13.32 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00141/0.3676, allocations: 0.7457 MB / 0.5678 GB, free: 12.53 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004404/0.368, allocations: 189 kB / 0.568 GB, free: 12.34 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002027/0.3682, allocations: 84.81 kB / 0.5681 GB, free: 12.25 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.057e-05/0.3682, allocations: 8 kB / 0.5681 GB, free: 12.24 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004227/0.3686, allocations: 231.2 kB / 0.5683 GB, free: 12 MB / 414.1 MB Notification: Performance of pre-optimization done (n=31): time 2.284e-06/0.3686, allocations: 0 / 0.5683 GB, free: 12 MB / 414.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008303/0.3695, allocations: 373.2 kB / 0.5687 GB, free: 11.63 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.765e-05/0.3695, allocations: 63.41 kB / 0.5687 GB, free: 11.56 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002818/0.3698, allocations: 264.2 kB / 0.569 GB, free: 11.29 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.933e-05/0.3699, allocations: 37.7 kB / 0.569 GB, free: 11.25 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000148/0.37, allocations: 192.9 kB / 0.5692 GB, free: 11.05 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.727e-05/0.3701, allocations: 103.2 kB / 0.5693 GB, free: 10.95 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001151/0.3702, allocations: 74.06 kB / 0.5694 GB, free: 10.87 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001675/0.3704, allocations: 350.7 kB / 0.5697 GB, free: 10.52 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002094/0.3706, allocations: 96.69 kB / 0.5698 GB, free: 10.43 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003045/0.3709, allocations: 222.5 kB / 0.57 GB, free: 10.15 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005337/0.3714, allocations: 348.8 kB / 0.5704 GB, free: 9.746 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.392e-06/0.3714, allocations: 4 kB / 0.5704 GB, free: 9.742 MB / 414.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006902/0.3721, allocations: 373.3 kB / 0.5707 GB, free: 9.371 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.896e-05/0.3721, allocations: 12 kB / 0.5707 GB, free: 9.359 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.829e-06/0.3721, allocations: 4 kB / 0.5707 GB, free: 9.355 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.007e-05/0.3722, allocations: 8 kB / 0.5707 GB, free: 9.348 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002987/0.3725, allocations: 71.83 kB / 0.5708 GB, free: 9.277 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.216e-05/0.3725, allocations: 8 kB / 0.5708 GB, free: 9.27 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001753/0.3727, allocations: 31.84 kB / 0.5709 GB, free: 9.238 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.274e-05/0.3727, allocations: 27.92 kB / 0.5709 GB, free: 9.211 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.0001856/0.3729, allocations: 165.7 kB / 0.571 GB, free: 9.039 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.496e-05/0.3729, allocations: 39.8 kB / 0.5711 GB, free: 9 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006806/0.3736, allocations: 316.3 kB / 0.5714 GB, free: 8.68 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.105e-06/0.3736, allocations: 4 kB / 0.5714 GB, free: 8.676 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.3736, allocations: 3.938 kB / 0.5714 GB, free: 8.672 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.323e-06/0.3736, allocations: 7.922 kB / 0.5714 GB, free: 8.664 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001005/0.3746, allocations: 0.673 MB / 0.572 GB, free: 7.941 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.3746, allocations: 0 / 0.572 GB, free: 7.941 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002499/0.3749, allocations: 55.89 kB / 0.5721 GB, free: 7.887 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.846e-06/0.3749, allocations: 0 / 0.5721 GB, free: 7.887 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.822e-05/0.3749, allocations: 8 kB / 0.5721 GB, free: 7.879 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.526e-06/0.3749, allocations: 3.938 kB / 0.5721 GB, free: 7.875 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.522e-06/0.3749, allocations: 0 / 0.5721 GB, free: 7.875 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008954/0.3758, allocations: 0.5274 MB / 0.5726 GB, free: 7.332 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.672e-05/0.3759, allocations: 35.81 kB / 0.5727 GB, free: 7.297 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.926e-05/0.3759, allocations: 15.98 kB / 0.5727 GB, free: 7.281 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001722/0.3761, allocations: 19.92 kB / 0.5727 GB, free: 7.262 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.985e-05/0.3762, allocations: 27.95 kB / 0.5727 GB, free: 7.234 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.219e-05/0.3762, allocations: 8 kB / 0.5727 GB, free: 7.227 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001892/0.3764, allocations: 191.1 kB / 0.5729 GB, free: 7.043 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3764, allocations: 0 / 0.5729 GB, free: 7.043 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003738/0.3768, allocations: 75.77 kB / 0.573 GB, free: 6.969 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.001249/0.378, allocations: 1.079 MB / 0.574 GB, free: 5.863 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005748/0.3786, allocations: 252.1 kB / 0.5743 GB, free: 5.617 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.796e-06/0.3786, allocations: 0 / 0.5743 GB, free: 5.617 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002493/0.3788, allocations: 120.3 kB / 0.5744 GB, free: 5.5 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003799/0.3792, allocations: 50.59 kB / 0.5744 GB, free: 5.453 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004441/0.3836, allocations: 3.245 MB / 0.5776 GB, free: 2.004 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002364/0.3839, allocations: 195.3 kB / 0.5778 GB, free: 1.789 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001869/0.3841, allocations: 47.22 kB / 0.5778 GB, free: 1.742 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002208/0.3843, allocations: 127.4 kB / 0.578 GB, free: 1.617 MB / 414.1 MB Notification: Performance of SimCode: time 8.62e-07/0.3843, allocations: 0 / 0.578 GB, free: 1.617 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03549/0.4198, allocations: 6.711 MB / 0.5845 GB, free: 11.03 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.41/11.83, allocations: 4 kB / 0.5845 GB, free: 11.03 MB / 430.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.Mean.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Blocks.Mean_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000219736 ModelicaTest_trunk_ModelicaTest_Blocks_Mean.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.Mean_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/Mean/Mean.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.Mean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable Time in file ModelicaTest_trunk_ModelicaTest.Blocks.Mean_res.csv. Warning: Get data of variable Time from file ModelicaTest_trunk_ModelicaTest.Blocks.Mean_res.csv failed! Error: Could not read variable mean.x in file ModelicaTest_trunk_ModelicaTest.Blocks.Mean_res.csv. Warning: Get data of variable mean.x from file ModelicaTest_trunk_ModelicaTest.Blocks.Mean_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.113563131075352]