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.0008204/0.0008204, allocations: 79.7 kB / 20.67 MB, free: 3.891 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.0008432/0.0008432, allocations: 174.3 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.8587/0.8587, allocations: 177.1 MB / 204.2 MB, free: 5.734 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.23/0.23, allocations: 34.25 MB / 294.9 MB, free: 0.7148 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 1.292e-06/1.292e-06, allocations: 0 / 442.2 MB, free: 1.68 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.667e-05/1.796e-05, allocations: 4.25 kB / 442.2 MB, free: 1.676 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.1675/0.1676, allocations: 2.172 MB / 444.3 MB, free: 43.18 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.001017/0.1686, allocations: 0.8679 MB / 445.2 MB, free: 42.95 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001167/0.1687, allocations: 13.69 kB / 445.2 MB, free: 42.95 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001142/0.1688, allocations: 38.56 kB / 445.3 MB, free: 42.92 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001917/0.169, allocations: 66.91 kB / 445.3 MB, free: 42.88 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002748/0.1693, allocations: 188.9 kB / 445.5 MB, free: 42.84 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002435/0.1695, allocations: 392.8 kB / 445.9 MB, free: 42.77 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001898/0.1697, allocations: 92.8 kB / 446 MB, free: 42.76 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002302/0.1699, allocations: 224.6 kB / 446.2 MB, free: 42.69 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001423/0.1701, allocations: 125.4 kB / 446.3 MB, free: 42.64 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 3.962e-05/0.1701, allocations: 37.56 kB / 446.4 MB, free: 42.64 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.609e-05/0.1702, allocations: 46.78 kB / 446.4 MB, free: 42.64 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 5.008e-05/0.1702, allocations: 92.98 kB / 446.5 MB, free: 42.57 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 8.317e-05/0.1703, allocations: 113.7 kB / 446.6 MB, free: 42.51 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002977/0.1706, allocations: 431.7 kB / 447 MB, free: 42.32 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.1706, allocations: 0 / 447 MB, free: 42.32 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1706, allocations: 0 / 447 MB, free: 42.32 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.953e-06/0.1706, allocations: 0 / 447 MB, free: 42.32 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.0007678/0.1714, allocations: 0.7205 MB / 447.8 MB, free: 41.8 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.729e-05/0.1714, allocations: 11.47 kB / 447.8 MB, free: 41.8 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.176e-05/0.1715, allocations: 84.38 kB / 447.8 MB, free: 41.73 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002367/0.1718, allocations: 80.95 kB / 447.9 MB, free: 41.7 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003121/0.1721, allocations: 296.6 kB / 448.2 MB, free: 41.49 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.047e-05/0.1721, allocations: 27.12 kB / 448.2 MB, free: 41.48 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.691e-05/0.1721, allocations: 40.02 kB / 448.3 MB, free: 41.46 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003179/0.1724, allocations: 287.4 kB / 448.6 MB, free: 41.35 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.564e-05/0.1725, allocations: 4.125 kB / 448.6 MB, free: 41.34 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.229e-05/0.1725, allocations: 14.72 kB / 448.6 MB, free: 41.33 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.215e-06/0.1725, allocations: 8.375 kB / 448.6 MB, free: 41.33 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002516/0.1727, allocations: 202.4 kB / 448.8 MB, free: 41.27 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008384/0.1736, allocations: 0.7414 MB / 449.5 MB, free: 40.81 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002538/0.1738, allocations: 186.4 kB / 449.7 MB, free: 40.73 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001042/0.1739, allocations: 99.14 kB / 449.8 MB, free: 40.7 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.218e-05/0.174, allocations: 6.875 kB / 449.8 MB, free: 40.69 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002309/0.1742, allocations: 220.6 kB / 450 MB, free: 40.6 MB / 410.7 MB Notification: Performance of pre-optimization done (n=31): time 1.553e-06/0.1742, allocations: 4 kB / 450 MB, free: 40.6 MB / 410.7 MB Notification: Performance of matching and sorting (n=31): time 0.0004602/0.1747, allocations: 383.8 kB / 450.4 MB, free: 40.45 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.019e-05/0.1747, allocations: 61.38 kB / 450.5 MB, free: 40.38 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001404/0.1748, allocations: 263.1 kB / 450.7 MB, free: 40.23 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.818e-05/0.1748, allocations: 40.05 kB / 450.8 MB, free: 40.2 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.114e-05/0.1749, allocations: 201.7 kB / 451 MB, free: 40.02 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.058e-05/0.1749, allocations: 97.45 kB / 451.1 MB, free: 39.95 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.39e-05/0.175, allocations: 72.81 kB / 451.1 MB, free: 39.9 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.135e-05/0.1751, allocations: 353 kB / 451.5 MB, free: 39.57 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001147/0.1752, allocations: 91.81 kB / 451.6 MB, free: 39.54 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001418/0.1753, allocations: 220.6 kB / 451.8 MB, free: 39.35 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002634/0.1756, allocations: 342.7 kB / 452.1 MB, free: 39.09 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.1756, allocations: 0 / 452.1 MB, free: 39.09 MB / 410.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003493/0.1759, allocations: 374.1 kB / 452.5 MB, free: 38.93 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.412e-05/0.1759, allocations: 9.219 kB / 452.5 MB, free: 38.93 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.1759, allocations: 6.906 kB / 452.5 MB, free: 38.93 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.388e-05/0.176, allocations: 8.625 kB / 452.5 MB, free: 38.93 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001601/0.1761, allocations: 80.16 kB / 452.6 MB, free: 38.92 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.624e-06/0.1761, allocations: 8.672 kB / 452.6 MB, free: 38.92 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.688e-05/0.1762, allocations: 40.75 kB / 452.6 MB, free: 38.89 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.52e-05/0.1762, allocations: 13.44 kB / 452.6 MB, free: 38.89 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.594e-05/0.1763, allocations: 177.1 kB / 452.8 MB, free: 38.74 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.539e-05/0.1764, allocations: 35.95 kB / 452.8 MB, free: 38.72 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003626/0.1767, allocations: 323.2 kB / 453.2 MB, free: 38.59 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.487e-06/0.1767, allocations: 5.844 kB / 453.2 MB, free: 38.59 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.1767, allocations: 0 / 453.2 MB, free: 38.59 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.1767, allocations: 5.297 kB / 453.2 MB, free: 38.59 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004944/0.1772, allocations: 0.6735 MB / 453.8 MB, free: 38.16 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.1772, allocations: 0 / 453.8 MB, free: 38.16 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001292/0.1774, allocations: 48.73 kB / 453.9 MB, free: 38.16 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/0.1774, allocations: 3.156 kB / 453.9 MB, free: 38.16 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.636e-05/0.1774, allocations: 10.17 kB / 453.9 MB, free: 38.15 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.1774, allocations: 0 / 453.9 MB, free: 38.15 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.1774, allocations: 0 / 453.9 MB, free: 38.15 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004609/0.1778, allocations: 0.5322 MB / 454.4 MB, free: 37.87 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.114e-05/0.1779, allocations: 30.66 kB / 454.5 MB, free: 37.85 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.826e-05/0.1779, allocations: 10.62 kB / 454.5 MB, free: 37.84 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.734e-05/0.178, allocations: 13.17 kB / 454.5 MB, free: 37.84 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.076e-05/0.178, allocations: 24.77 kB / 454.5 MB, free: 37.83 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.572e-05/0.178, allocations: 15.56 kB / 454.5 MB, free: 37.83 MB / 410.7 MB Notification: Performance of sorting global known variables: time 8.948e-05/0.1781, allocations: 192.2 kB / 454.7 MB, free: 37.71 MB / 410.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1781, allocations: 0 / 454.7 MB, free: 37.71 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002295/0.1784, allocations: 74 kB / 454.8 MB, free: 37.69 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.0005532/0.1789, allocations: 1.079 MB / 455.9 MB, free: 36.88 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002958/0.1792, allocations: 248.8 kB / 456.1 MB, free: 36.81 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.1792, allocations: 4.25 kB / 456.1 MB, free: 36.81 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000129/0.1793, allocations: 123.3 kB / 456.2 MB, free: 36.77 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002499/0.1796, allocations: 44.11 kB / 456.3 MB, free: 36.75 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002144/0.1817, allocations: 3.234 MB / 459.5 MB, free: 34.56 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.92e-05/0.1818, allocations: 195.1 kB / 459.7 MB, free: 34.47 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 9.619e-05/0.1819, allocations: 43.02 kB / 459.7 MB, free: 34.46 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001136/0.182, allocations: 125.3 kB / 459.9 MB, free: 34.38 MB / 410.7 MB Notification: Performance of SimCode: time 6.02e-07/0.182, allocations: 0 / 459.9 MB, free: 34.38 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02114/0.2032, allocations: 6.857 MB / 466.7 MB, free: 33.04 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.709/6.912, allocations: 3.938 kB / 466.7 MB, free: 33.03 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Blocks_Mean_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219736 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.830382685177028]