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.000784/0.000784, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 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.000825/0.000825, allocations: 156.9 kB / 23.94 MB, free: 0.6172 MB / 18.57 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 0.9027/0.9027, allocations: 177 MB / 204.1 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] 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.2389/0.2389, allocations: 34.24 MB / 294.8 MB, free: 0.6914 MB / 266.7 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 2.365e-06/2.365e-06, allocations: 0 / 442.1 MB, free: 1.59 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.298e-05/2.535e-05, allocations: 13.17 kB / 442.2 MB, free: 1.578 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.1799/0.1799, allocations: 2.175 MB / 444.3 MB, free: 43.14 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.001189/0.1811, allocations: 0.8668 MB / 445.2 MB, free: 42.85 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001459/0.1813, allocations: 8.875 kB / 445.2 MB, free: 42.85 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001303/0.1814, allocations: 36.16 kB / 445.2 MB, free: 42.82 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002022/0.1816, allocations: 77.16 kB / 445.3 MB, free: 42.77 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002995/0.1819, allocations: 187.8 kB / 445.5 MB, free: 42.73 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002411/0.1821, allocations: 396.6 kB / 445.9 MB, free: 42.67 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000192/0.1823, allocations: 87.94 kB / 446 MB, free: 42.66 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002379/0.1826, allocations: 226.7 kB / 446.2 MB, free: 42.57 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001433/0.1827, allocations: 121.2 kB / 446.3 MB, free: 42.52 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 3.883e-05/0.1827, allocations: 37.09 kB / 446.3 MB, free: 42.52 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.742e-05/0.1828, allocations: 46.56 kB / 446.4 MB, free: 42.52 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 5.204e-05/0.1829, allocations: 89.47 kB / 446.5 MB, free: 42.46 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 8.112e-05/0.1829, allocations: 118.2 kB / 446.6 MB, free: 42.4 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002931/0.1832, allocations: 433.4 kB / 447 MB, free: 42.2 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.551e-06/0.1832, allocations: 3.469 kB / 447 MB, free: 42.2 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1832, allocations: 0 / 447 MB, free: 42.2 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.943e-06/0.1833, allocations: 0 / 447 MB, free: 42.2 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.0008364/0.1841, allocations: 0.7136 MB / 447.7 MB, free: 41.68 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.935e-05/0.1841, allocations: 9.531 kB / 447.7 MB, free: 41.68 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.84e-05/0.1842, allocations: 86.58 kB / 447.8 MB, free: 41.61 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002595/0.1845, allocations: 83.5 kB / 447.9 MB, free: 41.58 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003371/0.1848, allocations: 303.2 kB / 448.2 MB, free: 41.36 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.19e-05/0.1848, allocations: 21.91 kB / 448.2 MB, free: 41.35 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.526e-05/0.1849, allocations: 42.91 kB / 448.3 MB, free: 41.34 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003173/0.1852, allocations: 282.8 kB / 448.5 MB, free: 41.22 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.59e-05/0.1852, allocations: 8.344 kB / 448.6 MB, free: 41.22 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.151e-05/0.1852, allocations: 14.91 kB / 448.6 MB, free: 41.21 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.623e-06/0.1852, allocations: 9.031 kB / 448.6 MB, free: 41.21 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002465/0.1855, allocations: 198.7 kB / 448.8 MB, free: 41.15 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008216/0.1863, allocations: 0.7503 MB / 449.5 MB, free: 40.68 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002713/0.1866, allocations: 183.6 kB / 449.7 MB, free: 40.61 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001158/0.1867, allocations: 90.78 kB / 449.8 MB, free: 40.57 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.472e-05/0.1867, allocations: 5.688 kB / 449.8 MB, free: 40.57 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002536/0.187, allocations: 224.8 kB / 450 MB, free: 40.48 MB / 410.7 MB Notification: Performance of pre-optimization done (n=31): time 1.904e-06/0.187, allocations: 0 / 450 MB, free: 40.48 MB / 410.7 MB Notification: Performance of matching and sorting (n=31): time 0.0004878/0.1874, allocations: 383.1 kB / 450.4 MB, free: 40.33 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.121e-05/0.1875, allocations: 57.28 kB / 450.4 MB, free: 40.27 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001504/0.1876, allocations: 266.1 kB / 450.7 MB, free: 40.11 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.383e-05/0.1877, allocations: 39.88 kB / 450.7 MB, free: 40.07 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.21e-05/0.1877, allocations: 194.5 kB / 450.9 MB, free: 39.91 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.059e-05/0.1878, allocations: 101.4 kB / 451 MB, free: 39.83 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.621e-05/0.1878, allocations: 73.16 kB / 451.1 MB, free: 39.79 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.891e-05/0.1879, allocations: 346.6 kB / 451.4 MB, free: 39.45 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001148/0.188, allocations: 91.41 kB / 451.5 MB, free: 39.43 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001427/0.1881, allocations: 224.5 kB / 451.7 MB, free: 39.23 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002913/0.1884, allocations: 345.3 kB / 452.1 MB, free: 38.97 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.1884, allocations: 2.625 kB / 452.1 MB, free: 38.97 MB / 410.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003675/0.1888, allocations: 379 kB / 452.5 MB, free: 38.82 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.652e-05/0.1888, allocations: 7.719 kB / 452.5 MB, free: 38.82 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.146e-06/0.1888, allocations: 5.75 kB / 452.5 MB, free: 38.82 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.613e-05/0.1888, allocations: 5.781 kB / 452.5 MB, free: 38.82 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001683/0.189, allocations: 77.05 kB / 452.6 MB, free: 38.8 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.417e-06/0.189, allocations: 11.59 kB / 452.6 MB, free: 38.8 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.983e-05/0.1891, allocations: 39.19 kB / 452.6 MB, free: 38.78 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.621e-05/0.1891, allocations: 21.88 kB / 452.6 MB, free: 38.77 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 0.000113/0.1892, allocations: 169 kB / 452.8 MB, free: 38.62 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.874e-05/0.1893, allocations: 38.19 kB / 452.8 MB, free: 38.6 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003872/0.1896, allocations: 328 kB / 453.1 MB, free: 38.47 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.958e-06/0.1896, allocations: 10.91 kB / 453.2 MB, free: 38.46 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.119e-06/0.1897, allocations: 2.969 kB / 453.2 MB, free: 38.46 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.1897, allocations: 0 / 453.2 MB, free: 38.46 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005152/0.1902, allocations: 0.6684 MB / 453.8 MB, free: 38.04 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.1902, allocations: 0 / 453.8 MB, free: 38.04 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000141/0.1903, allocations: 52.64 kB / 453.9 MB, free: 38.04 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.906e-06/0.1903, allocations: 2.781 kB / 453.9 MB, free: 38.04 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.74e-05/0.1903, allocations: 6.812 kB / 453.9 MB, free: 38.03 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.1903, allocations: 6.844 kB / 453.9 MB, free: 38.03 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.1903, allocations: 0 / 453.9 MB, free: 38.03 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004827/0.1908, allocations: 0.532 MB / 454.4 MB, free: 37.74 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.589e-05/0.1909, allocations: 30.59 kB / 454.5 MB, free: 37.72 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.076e-05/0.1909, allocations: 14.14 kB / 454.5 MB, free: 37.71 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.699e-05/0.191, allocations: 15.27 kB / 454.5 MB, free: 37.71 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.81e-05/0.191, allocations: 22.23 kB / 454.5 MB, free: 37.71 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.544e-05/0.191, allocations: 19.77 kB / 454.5 MB, free: 37.7 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.000102/0.1911, allocations: 190.4 kB / 454.7 MB, free: 37.59 MB / 410.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1911, allocations: 0 / 454.7 MB, free: 37.59 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002723/0.1914, allocations: 75 kB / 454.8 MB, free: 37.56 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.0005902/0.192, allocations: 1.064 MB / 455.9 MB, free: 36.76 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003259/0.1923, allocations: 251.8 kB / 456.1 MB, free: 36.69 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.1923, allocations: 3 kB / 456.1 MB, free: 36.69 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001301/0.1925, allocations: 121.9 kB / 456.2 MB, free: 36.65 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002774/0.1927, allocations: 46.39 kB / 456.3 MB, free: 36.62 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002353/0.1951, allocations: 3.232 MB / 459.5 MB, free: 34.44 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001107/0.1952, allocations: 197.4 kB / 459.7 MB, free: 34.34 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001043/0.1953, allocations: 46.58 kB / 459.7 MB, free: 34.34 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000111/0.1954, allocations: 124.7 kB / 459.9 MB, free: 34.25 MB / 410.7 MB Notification: Performance of SimCode: time 1.112e-06/0.1954, allocations: 0 / 459.9 MB, free: 34.25 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02884/0.2243, allocations: 6.852 MB / 466.7 MB, free: 32.9 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.282/7.507, allocations: 7.297 kB / 466.7 MB, free: 32.9 MB / 410.7 MB " [Timeout remaining time 652] (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/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_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] "" 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.616508434526622]