Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001283/0.001283, allocations: 83.69 kB / 20.68 MB, free: 3.883 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.001463/0.001463, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.9186/0.9186, allocations: 177.1 MB / 204.3 MB, free: 5.711 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2449/0.2449, allocations: 34.25 MB / 294.9 MB, free: 0.707 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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_1_0_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.735e-06/2.735e-06, allocations: 0 / 442.2 MB, free: 1.68 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.06e-05/3.333e-05, allocations: 6.281 kB / 442.2 MB, free: 1.672 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.1759/0.1759, allocations: 2.172 MB / 444.3 MB, free: 43.25 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.001139/0.1771, allocations: 0.8667 MB / 445.2 MB, free: 43.02 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001328/0.1772, allocations: 13.81 kB / 445.2 MB, free: 43.01 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001119/0.1773, allocations: 34.17 kB / 445.3 MB, free: 42.98 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001723/0.1775, allocations: 75.44 kB / 445.3 MB, free: 42.93 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002923/0.1778, allocations: 184.2 kB / 445.5 MB, free: 42.9 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002514/0.178, allocations: 394 kB / 445.9 MB, free: 42.84 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001808/0.1782, allocations: 93.75 kB / 446 MB, free: 42.82 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002631/0.1785, allocations: 225.9 kB / 446.2 MB, free: 42.74 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001373/0.1786, allocations: 128.4 kB / 446.3 MB, free: 42.69 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 3.734e-05/0.1787, allocations: 35.69 kB / 446.4 MB, free: 42.69 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.225e-05/0.1787, allocations: 46.91 kB / 446.4 MB, free: 42.68 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 5.19e-05/0.1788, allocations: 94.67 kB / 446.5 MB, free: 42.62 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 8.444e-05/0.1789, allocations: 107.7 kB / 446.6 MB, free: 42.56 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002839/0.1791, allocations: 428.7 kB / 447 MB, free: 42.38 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.1791, allocations: 0 / 447 MB, free: 42.38 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1791, allocations: 2.781 kB / 447 MB, free: 42.38 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.676e-06/0.1792, allocations: 0 / 447 MB, free: 42.38 MB / 410.7 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.0008378/0.18, allocations: 0.7248 MB / 447.8 MB, free: 41.84 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.299e-05/0.18, allocations: 11.28 kB / 447.8 MB, free: 41.84 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.002e-05/0.1801, allocations: 81.61 kB / 447.8 MB, free: 41.78 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002378/0.1803, allocations: 80.62 kB / 447.9 MB, free: 41.75 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003001/0.1806, allocations: 292.6 kB / 448.2 MB, free: 41.54 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.709e-05/0.1807, allocations: 26.97 kB / 448.2 MB, free: 41.53 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.407e-05/0.1807, allocations: 40.36 kB / 448.3 MB, free: 41.51 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002899/0.181, allocations: 285.4 kB / 448.6 MB, free: 41.4 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.67e-05/0.181, allocations: 10.03 kB / 448.6 MB, free: 41.39 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.071e-05/0.181, allocations: 22.25 kB / 448.6 MB, free: 41.38 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.622e-06/0.181, allocations: 5.75 kB / 448.6 MB, free: 41.38 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00023/0.1813, allocations: 195.3 kB / 448.8 MB, free: 41.32 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007836/0.182, allocations: 0.7544 MB / 449.5 MB, free: 40.85 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000245/0.1823, allocations: 189.4 kB / 449.7 MB, free: 40.77 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001026/0.1824, allocations: 94.84 kB / 449.8 MB, free: 40.73 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.041e-05/0.1824, allocations: 2.875 kB / 449.8 MB, free: 40.73 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002255/0.1826, allocations: 227.6 kB / 450 MB, free: 40.64 MB / 410.7 MB Notification: Performance of pre-optimization done (n=31): time 2.054e-06/0.1826, allocations: 0 / 450 MB, free: 40.64 MB / 410.7 MB Notification: Performance of matching and sorting (n=31): time 0.0004571/0.1831, allocations: 382.2 kB / 450.4 MB, free: 40.5 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.443e-05/0.1831, allocations: 57.94 kB / 450.5 MB, free: 40.43 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001303/0.1833, allocations: 263.4 kB / 450.7 MB, free: 40.28 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.765e-05/0.1833, allocations: 42.7 kB / 450.8 MB, free: 40.24 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.518e-05/0.1833, allocations: 199.2 kB / 451 MB, free: 40.07 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.666e-05/0.1834, allocations: 100.8 kB / 451.1 MB, free: 39.99 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.818e-05/0.1834, allocations: 71.69 kB / 451.1 MB, free: 39.95 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.976e-05/0.1835, allocations: 352 kB / 451.5 MB, free: 39.61 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001056/0.1836, allocations: 87 kB / 451.6 MB, free: 39.59 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001328/0.1837, allocations: 219.9 kB / 451.8 MB, free: 39.4 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002566/0.184, allocations: 351.1 kB / 452.1 MB, free: 39.14 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.184, allocations: 0 / 452.1 MB, free: 39.14 MB / 410.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.000328/0.1843, allocations: 377 kB / 452.5 MB, free: 38.98 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.175e-05/0.1843, allocations: 6.031 kB / 452.5 MB, free: 38.98 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.1843, allocations: 5.438 kB / 452.5 MB, free: 38.98 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.427e-05/0.1843, allocations: 5.938 kB / 452.5 MB, free: 38.98 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001432/0.1845, allocations: 82.38 kB / 452.6 MB, free: 38.96 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.784e-06/0.1845, allocations: 9.047 kB / 452.6 MB, free: 38.96 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.307e-05/0.1846, allocations: 34.52 kB / 452.6 MB, free: 38.95 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.547e-05/0.1846, allocations: 18.25 kB / 452.6 MB, free: 38.94 MB / 410.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_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 9.46e-05/0.1847, allocations: 176 kB / 452.8 MB, free: 38.79 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.224e-05/0.1847, allocations: 34.08 kB / 452.8 MB, free: 38.77 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003482/0.185, allocations: 321.5 kB / 453.2 MB, free: 38.64 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.905e-06/0.185, allocations: 5.781 kB / 453.2 MB, free: 38.64 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.185, allocations: 4 kB / 453.2 MB, free: 38.63 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.589e-06/0.185, allocations: 5.391 kB / 453.2 MB, free: 38.63 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004569/0.1855, allocations: 0.6646 MB / 453.8 MB, free: 38.21 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.1855, allocations: 6.156 kB / 453.8 MB, free: 38.21 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001256/0.1856, allocations: 44.39 kB / 453.9 MB, free: 38.21 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.895e-06/0.1856, allocations: 2.719 kB / 453.9 MB, free: 38.21 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.597e-05/0.1856, allocations: 10.2 kB / 453.9 MB, free: 38.21 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.1857, allocations: 0 / 453.9 MB, free: 38.21 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.1857, allocations: 6.906 kB / 453.9 MB, free: 38.2 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004501/0.1861, allocations: 0.5297 MB / 454.4 MB, free: 37.92 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.159e-05/0.1861, allocations: 27.97 kB / 454.5 MB, free: 37.9 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.794e-05/0.1862, allocations: 9.719 kB / 454.5 MB, free: 37.89 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001056/0.1863, allocations: 16.55 kB / 454.5 MB, free: 37.89 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.977e-05/0.1863, allocations: 25.83 kB / 454.5 MB, free: 37.88 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.608e-05/0.1863, allocations: 16.08 kB / 454.5 MB, free: 37.88 MB / 410.7 MB Notification: Performance of sorting global known variables: time 9.202e-05/0.1864, allocations: 197.8 kB / 454.7 MB, free: 37.76 MB / 410.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1864, allocations: 0 / 454.7 MB, free: 37.76 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002325/0.1867, allocations: 75.19 kB / 454.8 MB, free: 37.73 MB / 410.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_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.0005846/0.1872, allocations: 1.072 MB / 455.9 MB, free: 36.93 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003429/0.1876, allocations: 252.5 kB / 456.1 MB, free: 36.86 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.1876, allocations: 288 / 456.1 MB, free: 36.86 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001745/0.1878, allocations: 123.9 kB / 456.2 MB, free: 36.82 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003531/0.1881, allocations: 49.73 kB / 456.3 MB, free: 36.79 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002344/0.1905, allocations: 3.229 MB / 459.5 MB, free: 34.61 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.588e-05/0.1906, allocations: 193.4 kB / 459.7 MB, free: 34.52 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 8.629e-05/0.1906, allocations: 43.44 kB / 459.7 MB, free: 34.51 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001051/0.1907, allocations: 129.3 kB / 459.9 MB, free: 34.42 MB / 410.7 MB Notification: Performance of SimCode: time 5.51e-07/0.1907, allocations: 0 / 459.9 MB, free: 34.42 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02257/0.2133, allocations: 6.848 MB / 466.7 MB, free: 33.08 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.123/7.336, allocations: 7.938 kB / 466.7 MB, free: 33.07 MB / 410.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0_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_4_1_0_ModelicaTest_Blocks_Mean.fmu > ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/Mean/Mean.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable Time in file ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean_res.csv. Warning: Get data of variable Time from file ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean_res.csv failed! Error: Could not read variable mean.x in file ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean_res.csv. Warning: Get data of variable mean.x from file ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean_res.csv failed! " [Timeout remaining time 660] "" Variables in the reference:time,mean.x,yMean,yRectifiedMean,yRootMeanSquare,yHarmonicCos,yHarmonicSin,yHarmonicAbs,yHarmonicArg Variables in the result:time,yHarmonicAbs,yHarmonicArg,yHarmonicCos,yHarmonicSin,yMean,yRectifiedMean,yRootMeanSquare [Calling sys.exit(0), Time elapsed: 9.529136275872588]