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.001403/0.001403, allocations: 76.36 kB / 20.67 MB, free: 3.895 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.0009012/0.0009012, allocations: 156.9 kB / 23.95 MB, free: 0.6133 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.939/0.939, allocations: 177 MB / 204.1 MB, free: 5.734 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.2626/0.2626, allocations: 34.23 MB / 294.8 MB, free: 0.6836 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.175e-06/2.175e-06, allocations: 0 / 442.1 MB, free: 1.562 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.32e-05/2.538e-05, allocations: 14.16 kB / 442.2 MB, free: 1.547 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.2098/0.2098, allocations: 2.175 MB / 444.3 MB, free: 43.25 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.001091/0.2109, allocations: 0.8724 MB / 445.2 MB, free: 42.94 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001293/0.2111, allocations: 20.91 kB / 445.2 MB, free: 42.93 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001241/0.2112, allocations: 34.08 kB / 445.3 MB, free: 42.9 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002034/0.2114, allocations: 66.36 kB / 445.3 MB, free: 42.86 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002991/0.2117, allocations: 187.2 kB / 445.5 MB, free: 42.82 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002387/0.2119, allocations: 394.2 kB / 445.9 MB, free: 42.75 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001775/0.2121, allocations: 93.44 kB / 446 MB, free: 42.74 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002446/0.2124, allocations: 223.2 kB / 446.2 MB, free: 42.64 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001485/0.2125, allocations: 122.9 kB / 446.3 MB, free: 42.59 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 4.133e-05/0.2125, allocations: 37.78 kB / 446.4 MB, free: 42.59 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.175e-05/0.2126, allocations: 51.23 kB / 446.4 MB, free: 42.59 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 5.565e-05/0.2127, allocations: 84.62 kB / 446.5 MB, free: 42.53 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 8.211e-05/0.2128, allocations: 115.8 kB / 446.6 MB, free: 42.47 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003065/0.2131, allocations: 430.4 kB / 447 MB, free: 42.28 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.2131, allocations: 0 / 447 MB, free: 42.28 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2131, allocations: 0 / 447 MB, free: 42.28 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.554e-06/0.2131, allocations: 3.031 kB / 447 MB, free: 42.28 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.0008447/0.2139, allocations: 0.7209 MB / 447.7 MB, free: 41.75 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.291e-05/0.214, allocations: 8.844 kB / 447.7 MB, free: 41.75 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.912e-05/0.2141, allocations: 82.78 kB / 447.8 MB, free: 41.68 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000263/0.2143, allocations: 88.38 kB / 447.9 MB, free: 41.66 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003276/0.2146, allocations: 294 kB / 448.2 MB, free: 41.44 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.948e-05/0.2147, allocations: 26.28 kB / 448.2 MB, free: 41.43 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.763e-05/0.2147, allocations: 43.77 kB / 448.3 MB, free: 41.41 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003221/0.215, allocations: 287.3 kB / 448.6 MB, free: 41.3 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.443e-05/0.215, allocations: 192 / 448.6 MB, free: 41.3 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.069e-05/0.2151, allocations: 18.17 kB / 448.6 MB, free: 41.29 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-06/0.2151, allocations: 9.031 kB / 448.6 MB, free: 41.29 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002534/0.2153, allocations: 198.8 kB / 448.8 MB, free: 41.23 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008349/0.2162, allocations: 0.7455 MB / 449.5 MB, free: 40.77 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002849/0.2164, allocations: 184.7 kB / 449.7 MB, free: 40.69 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001068/0.2165, allocations: 97.2 kB / 449.8 MB, free: 40.64 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.45e-05/0.2166, allocations: 5.656 kB / 449.8 MB, free: 40.64 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002485/0.2168, allocations: 220.4 kB / 450 MB, free: 40.55 MB / 410.7 MB Notification: Performance of pre-optimization done (n=31): time 2.124e-06/0.2168, allocations: 4 kB / 450 MB, free: 40.55 MB / 410.7 MB Notification: Performance of matching and sorting (n=31): time 0.000486/0.2173, allocations: 379.4 kB / 450.4 MB, free: 40.41 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.094e-05/0.2173, allocations: 61.12 kB / 450.4 MB, free: 40.34 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001453/0.2175, allocations: 263.6 kB / 450.7 MB, free: 40.19 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.923e-05/0.2175, allocations: 39.73 kB / 450.7 MB, free: 40.15 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.316e-05/0.2176, allocations: 198 kB / 450.9 MB, free: 39.98 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.14e-05/0.2176, allocations: 96.97 kB / 451 MB, free: 39.91 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.707e-05/0.2177, allocations: 72 kB / 451.1 MB, free: 39.86 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.949e-05/0.2177, allocations: 357.5 kB / 451.5 MB, free: 39.52 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000113/0.2178, allocations: 89.55 kB / 451.5 MB, free: 39.5 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001408/0.218, allocations: 217.5 kB / 451.8 MB, free: 39.31 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000278/0.2183, allocations: 348.1 kB / 452.1 MB, free: 39.05 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.2183, allocations: 0 / 452.1 MB, free: 39.05 MB / 410.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003599/0.2186, allocations: 377.4 kB / 452.5 MB, free: 38.89 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.451e-05/0.2186, allocations: 5.844 kB / 452.5 MB, free: 38.89 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.743e-06/0.2186, allocations: 9.844 kB / 452.5 MB, free: 38.89 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.587e-05/0.2187, allocations: 9.688 kB / 452.5 MB, free: 38.89 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001676/0.2188, allocations: 76.55 kB / 452.6 MB, free: 38.88 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.061e-05/0.2188, allocations: 13.86 kB / 452.6 MB, free: 38.88 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.782e-05/0.2189, allocations: 30.69 kB / 452.6 MB, free: 38.86 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.679e-05/0.2189, allocations: 21.5 kB / 452.6 MB, free: 38.85 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.0001013/0.219, allocations: 171.5 kB / 452.8 MB, free: 38.7 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.578e-05/0.2191, allocations: 35.39 kB / 452.8 MB, free: 38.68 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003808/0.2194, allocations: 330.3 kB / 453.2 MB, free: 38.54 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-06/0.2194, allocations: 5.812 kB / 453.2 MB, free: 38.54 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.2195, allocations: 0 / 453.2 MB, free: 38.54 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.511e-06/0.2195, allocations: 3.328 kB / 453.2 MB, free: 38.54 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005024/0.22, allocations: 0.6721 MB / 453.8 MB, free: 38.12 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.22, allocations: 3.469 kB / 453.8 MB, free: 38.12 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001353/0.2201, allocations: 47.25 kB / 453.9 MB, free: 38.11 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.935e-06/0.2201, allocations: 0 / 453.9 MB, free: 38.11 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.737e-05/0.2201, allocations: 13.03 kB / 453.9 MB, free: 38.11 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.305e-06/0.2201, allocations: 0 / 453.9 MB, free: 38.11 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.2201, allocations: 0 / 453.9 MB, free: 38.11 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000458/0.2206, allocations: 0.5314 MB / 454.4 MB, free: 37.82 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.497e-05/0.2206, allocations: 34.03 kB / 454.5 MB, free: 37.8 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.796e-05/0.2206, allocations: 13.75 kB / 454.5 MB, free: 37.79 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.083e-05/0.2207, allocations: 13.11 kB / 454.5 MB, free: 37.79 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.976e-05/0.2208, allocations: 25.77 kB / 454.5 MB, free: 37.79 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.45e-05/0.2208, allocations: 11.89 kB / 454.5 MB, free: 37.79 MB / 410.7 MB Notification: Performance of sorting global known variables: time 9.648e-05/0.2209, allocations: 194.6 kB / 454.7 MB, free: 37.67 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2209, allocations: 0 / 454.7 MB, free: 37.67 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002653/0.2211, allocations: 75.59 kB / 454.8 MB, free: 37.64 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.0006704/0.2218, allocations: 1.07 MB / 455.9 MB, free: 36.84 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003649/0.2222, allocations: 251.5 kB / 456.1 MB, free: 36.77 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.2222, allocations: 4.422 kB / 456.1 MB, free: 36.76 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001422/0.2223, allocations: 123.8 kB / 456.2 MB, free: 36.72 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002976/0.2226, allocations: 44.45 kB / 456.3 MB, free: 36.7 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00248/0.2251, allocations: 3.228 MB / 459.5 MB, free: 34.52 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001098/0.2252, allocations: 191.9 kB / 459.7 MB, free: 34.43 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001001/0.2253, allocations: 46.56 kB / 459.7 MB, free: 34.43 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001165/0.2254, allocations: 131.6 kB / 459.9 MB, free: 34.33 MB / 410.7 MB Notification: Performance of SimCode: time 8.71e-07/0.2254, allocations: 0 / 459.9 MB, free: 34.33 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01991/0.2453, allocations: 6.854 MB / 466.7 MB, free: 32.99 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.77/7.016, allocations: 3.438 kB / 466.7 MB, free: 32.99 MB / 410.7 MB " [Timeout remaining time 653] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.Mean_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_Mean_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219736 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_Mean.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_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_trunk_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: 9.137549430131912]