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.001754/0.001754, allocations: 116.7 kB / 20.43 MB, free: 1.457 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.002175/0.002175, allocations: 214.3 kB / 23.75 MB, free: 4.672 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.602/1.602, allocations: 230.5 MB / 257.4 MB, free: 8.004 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.2479/0.2479, allocations: 46.92 MB / 360.8 MB, free: 4.188 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.002389/0.002389, allocations: 83.81 kB / 0.4962 GB, free: 7.762 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.364/0.3664, allocations: 66.08 MB / 0.5607 GB, free: 4.281 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.004365/0.3708, allocations: 2.33 MB / 0.563 GB, free: 1.941 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001986/0.3728, allocations: 0.9163 MB / 0.5639 GB, free: 1.02 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000152/0.3729, allocations: 11.88 kB / 0.5639 GB, free: 1.008 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001693/0.3731, allocations: 35.53 kB / 0.5639 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002602/0.3734, allocations: 75.31 kB / 0.564 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000439/0.3738, allocations: 179.7 kB / 0.5642 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004467/0.3742, allocations: 394.9 kB / 0.5646 GB, free: 344 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002317/0.3745, allocations: 96.56 kB / 0.5647 GB, free: 244 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002641/0.3747, allocations: 151.4 kB / 0.5648 GB, free: 92 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002687/0.375, allocations: 175.1 kB / 0.565 GB, free: 15.92 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.87e-05/0.3751, allocations: 36 kB / 0.565 GB, free: 15.88 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001055/0.3752, allocations: 48 kB / 0.565 GB, free: 15.84 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9.849e-05/0.3753, allocations: 91.67 kB / 0.5651 GB, free: 15.75 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001745/0.3754, allocations: 179 kB / 0.5653 GB, free: 15.57 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005161/0.376, allocations: 408.3 kB / 0.5657 GB, free: 15.17 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.376, allocations: 0 / 0.5657 GB, free: 15.17 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.376, allocations: 0 / 0.5657 GB, free: 15.17 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.105e-06/0.376, allocations: 0 / 0.5657 GB, free: 15.17 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.001424/0.3774, allocations: 0.7345 MB / 0.5664 GB, free: 14.39 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.524e-05/0.3774, allocations: 8.031 kB / 0.5664 GB, free: 14.38 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001205/0.3776, allocations: 83.23 kB / 0.5665 GB, free: 14.29 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004644/0.378, allocations: 76.62 kB / 0.5666 GB, free: 14.22 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005577/0.3786, allocations: 303 kB / 0.5669 GB, free: 13.9 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.472e-05/0.3786, allocations: 29.03 kB / 0.5669 GB, free: 13.87 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.35e-05/0.3787, allocations: 32.38 kB / 0.5669 GB, free: 13.84 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005538/0.3792, allocations: 289.9 kB / 0.5672 GB, free: 13.55 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.12e-05/0.3793, allocations: 4 kB / 0.5672 GB, free: 13.55 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.229e-05/0.3793, allocations: 16 kB / 0.5672 GB, free: 13.53 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.478e-06/0.3793, allocations: 11.94 kB / 0.5672 GB, free: 13.52 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000448/0.3798, allocations: 198.5 kB / 0.5674 GB, free: 13.32 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001472/0.3812, allocations: 0.8275 MB / 0.5682 GB, free: 12.45 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004461/0.3817, allocations: 187.1 kB / 0.5684 GB, free: 12.27 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000206/0.3819, allocations: 92.81 kB / 0.5685 GB, free: 12.17 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.349e-05/0.3819, allocations: 7.938 kB / 0.5685 GB, free: 12.16 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004317/0.3823, allocations: 231.2 kB / 0.5687 GB, free: 11.93 MB / 414.1 MB Notification: Performance of pre-optimization done (n=31): time 2.384e-06/0.3823, allocations: 0 / 0.5687 GB, free: 11.93 MB / 414.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008396/0.3832, allocations: 369.3 kB / 0.5691 GB, free: 11.56 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.119e-05/0.3833, allocations: 63.34 kB / 0.5691 GB, free: 11.48 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003068/0.3836, allocations: 268.2 kB / 0.5694 GB, free: 11.21 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.243e-05/0.3836, allocations: 41.64 kB / 0.5694 GB, free: 11.17 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001616/0.3838, allocations: 200.9 kB / 0.5696 GB, free: 10.96 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.544e-05/0.3839, allocations: 99.17 kB / 0.5697 GB, free: 10.87 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001285/0.384, allocations: 70.06 kB / 0.5698 GB, free: 10.79 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001754/0.3842, allocations: 346.8 kB / 0.5701 GB, free: 10.44 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002215/0.3844, allocations: 92.69 kB / 0.5702 GB, free: 10.35 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000321/0.3847, allocations: 218.6 kB / 0.5704 GB, free: 10.08 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000611/0.3853, allocations: 348.8 kB / 0.5707 GB, free: 9.676 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.3853, allocations: 4 kB / 0.5707 GB, free: 9.672 MB / 414.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007118/0.386, allocations: 381.2 kB / 0.5711 GB, free: 9.293 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.303e-05/0.3861, allocations: 8 kB / 0.5711 GB, free: 9.285 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.899e-06/0.3861, allocations: 4 kB / 0.5711 GB, free: 9.281 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.197e-05/0.3861, allocations: 8 kB / 0.5711 GB, free: 9.273 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003069/0.3864, allocations: 71.84 kB / 0.5712 GB, free: 9.203 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.771e-05/0.3864, allocations: 11.98 kB / 0.5712 GB, free: 9.191 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001806/0.3866, allocations: 27.84 kB / 0.5712 GB, free: 9.164 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.803e-05/0.3866, allocations: 27.92 kB / 0.5713 GB, free: 9.137 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.0002126/0.3868, allocations: 169.8 kB / 0.5714 GB, free: 8.961 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.639e-05/0.3869, allocations: 35.94 kB / 0.5715 GB, free: 8.926 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006847/0.3876, allocations: 316.3 kB / 0.5718 GB, free: 8.605 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.893e-06/0.3876, allocations: 8 kB / 0.5718 GB, free: 8.598 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.588e-06/0.3876, allocations: 0 / 0.5718 GB, free: 8.598 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.655e-06/0.3876, allocations: 3.984 kB / 0.5718 GB, free: 8.594 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001021/0.3886, allocations: 0.708 MB / 0.5725 GB, free: 7.836 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.235e-06/0.3886, allocations: 0 / 0.5725 GB, free: 7.836 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002516/0.3889, allocations: 47.91 kB / 0.5725 GB, free: 7.789 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.996e-06/0.3889, allocations: 96 / 0.5725 GB, free: 7.789 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.161e-05/0.3889, allocations: 19.92 kB / 0.5725 GB, free: 7.77 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.409e-06/0.3889, allocations: 7.938 kB / 0.5725 GB, free: 7.762 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.3889, allocations: 0 / 0.5725 GB, free: 7.762 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009033/0.3898, allocations: 0.5195 MB / 0.573 GB, free: 7.227 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.383e-05/0.3899, allocations: 27.75 kB / 0.5731 GB, free: 7.199 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.988e-05/0.3899, allocations: 12.06 kB / 0.5731 GB, free: 7.188 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001729/0.3901, allocations: 23.86 kB / 0.5731 GB, free: 7.164 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.455e-05/0.3902, allocations: 23.95 kB / 0.5731 GB, free: 7.141 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.421e-05/0.3902, allocations: 12.11 kB / 0.5731 GB, free: 7.129 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001869/0.3904, allocations: 191.1 kB / 0.5733 GB, free: 6.945 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3904, allocations: 3.938 kB / 0.5733 GB, free: 6.941 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003813/0.3908, allocations: 79.78 kB / 0.5734 GB, free: 6.863 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.00133/0.3921, allocations: 1.079 MB / 0.5745 GB, free: 5.758 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000564/0.3926, allocations: 251.8 kB / 0.5747 GB, free: 5.512 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.3927, allocations: 0 / 0.5747 GB, free: 5.512 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000274/0.3929, allocations: 120.3 kB / 0.5748 GB, free: 5.395 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003704/0.3933, allocations: 40.91 kB / 0.5748 GB, free: 5.352 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004232/0.3975, allocations: 3.242 MB / 0.578 GB, free: 1.906 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004521/0.398, allocations: 0.7998 MB / 0.5788 GB, free: 1.078 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001515/0.3981, allocations: 46.94 kB / 0.5788 GB, free: 1.031 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001882/0.3983, allocations: 127.6 kB / 0.579 GB, free: 0.9062 MB / 414.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3983, allocations: 0 / 0.579 GB, free: 0.9062 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0354/0.4337, allocations: 6.325 MB / 0.5851 GB, free: 10.68 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.57/12.01, allocations: 10.98 kB / 0.5851 GB, free: 10.68 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 & /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/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.22711024992168]