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.001286/0.001286, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 14.72 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.001512/0.001512, allocations: 211.5 kB / 23.73 MB, free: 4.523 MB / 14.72 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 1.487/1.487, allocations: 230.6 MB / 257.5 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] 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.2314/0.2314, allocations: 46.95 MB / 360.9 MB, free: 4.051 MB / 286.1 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 0.002001/0.002001, allocations: 59.91 kB / 0.4961 GB, free: 7.75 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3433/0.3453, allocations: 66.05 MB / 0.5606 GB, free: 4.25 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003856/0.3492, allocations: 2.17 MB / 0.5627 GB, free: 2.066 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001786/0.3509, allocations: 0.8618 MB / 0.5636 GB, free: 1.199 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000154/0.3511, allocations: 11.88 kB / 0.5636 GB, free: 1.188 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001727/0.3513, allocations: 35.53 kB / 0.5636 GB, free: 1.152 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002816/0.3516, allocations: 71.38 kB / 0.5637 GB, free: 1.082 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000453/0.352, allocations: 187.6 kB / 0.5638 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000451/0.3525, allocations: 387 kB / 0.5642 GB, free: 0.5195 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00024/0.3527, allocations: 96.58 kB / 0.5643 GB, free: 432 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002564/0.353, allocations: 163.3 kB / 0.5645 GB, free: 268 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002258/0.3532, allocations: 167.2 kB / 0.5646 GB, free: 100 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.841e-05/0.3533, allocations: 43.88 kB / 0.5647 GB, free: 56 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001004/0.3534, allocations: 51.98 kB / 0.5647 GB, free: 4 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001074/0.3535, allocations: 79.77 kB / 0.5648 GB, free: 15.93 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001666/0.3536, allocations: 147.2 kB / 0.5649 GB, free: 15.78 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004979/0.3541, allocations: 408.3 kB / 0.5653 GB, free: 15.38 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/0.3541, allocations: 0 / 0.5653 GB, free: 15.38 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.3541, allocations: 0 / 0.5653 GB, free: 15.38 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.09e-05/0.3541, allocations: 4 kB / 0.5653 GB, free: 15.38 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.001428/0.3556, allocations: 0.7306 MB / 0.566 GB, free: 14.6 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.452e-05/0.3556, allocations: 12.03 kB / 0.566 GB, free: 14.59 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001222/0.3557, allocations: 75.25 kB / 0.5661 GB, free: 14.51 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005103/0.3562, allocations: 84.61 kB / 0.5662 GB, free: 14.43 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006248/0.3569, allocations: 299 kB / 0.5665 GB, free: 14.11 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.134e-05/0.3569, allocations: 29.03 kB / 0.5665 GB, free: 14.08 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.559e-05/0.357, allocations: 44.3 kB / 0.5666 GB, free: 14.04 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006067/0.3576, allocations: 285.9 kB / 0.5668 GB, free: 13.75 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.946e-05/0.3576, allocations: 0 / 0.5668 GB, free: 13.75 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.465e-05/0.3576, allocations: 19.98 kB / 0.5668 GB, free: 13.73 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.197e-06/0.3577, allocations: 4 kB / 0.5668 GB, free: 13.73 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000477/0.3581, allocations: 206.5 kB / 0.567 GB, free: 13.53 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001566/0.3597, allocations: 0.7418 MB / 0.5678 GB, free: 12.74 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004573/0.3602, allocations: 190.8 kB / 0.568 GB, free: 12.55 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002103/0.3604, allocations: 80.81 kB / 0.568 GB, free: 12.46 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.098e-05/0.3604, allocations: 11.98 kB / 0.568 GB, free: 12.45 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005339/0.3609, allocations: 231.7 kB / 0.5683 GB, free: 12.21 MB / 414.1 MB Notification: Performance of pre-optimization done (n=31): time 3.496e-06/0.3609, allocations: 0 / 0.5683 GB, free: 12.21 MB / 414.1 MB Notification: Performance of matching and sorting (n=31): time 0.0009297/0.3619, allocations: 365.3 kB / 0.5686 GB, free: 11.85 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.521e-05/0.362, allocations: 63.41 kB / 0.5687 GB, free: 11.78 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003078/0.3623, allocations: 268.2 kB / 0.5689 GB, free: 11.51 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.177e-05/0.3623, allocations: 33.7 kB / 0.569 GB, free: 11.47 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001522/0.3625, allocations: 196.9 kB / 0.5691 GB, free: 11.27 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.698e-05/0.3625, allocations: 107.2 kB / 0.5692 GB, free: 11.16 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001175/0.3627, allocations: 70.06 kB / 0.5693 GB, free: 11.09 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001789/0.3628, allocations: 346.7 kB / 0.5696 GB, free: 10.74 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002155/0.3631, allocations: 92.7 kB / 0.5697 GB, free: 10.65 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003445/0.3634, allocations: 222.5 kB / 0.5699 GB, free: 10.37 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000567/0.364, allocations: 348.8 kB / 0.5703 GB, free: 9.969 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.317e-06/0.364, allocations: 4 kB / 0.5703 GB, free: 9.965 MB / 414.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007638/0.3647, allocations: 385.1 kB / 0.5707 GB, free: 9.582 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.732e-05/0.3648, allocations: 8 kB / 0.5707 GB, free: 9.574 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.175e-05/0.3648, allocations: 4 kB / 0.5707 GB, free: 9.57 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.623e-05/0.3648, allocations: 8 kB / 0.5707 GB, free: 9.562 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003441/0.3651, allocations: 71.89 kB / 0.5707 GB, free: 9.492 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.699e-05/0.3652, allocations: 11.94 kB / 0.5707 GB, free: 9.48 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002088/0.3654, allocations: 31.83 kB / 0.5708 GB, free: 9.449 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.351e-05/0.3654, allocations: 23.94 kB / 0.5708 GB, free: 9.426 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.0002293/0.3656, allocations: 165.8 kB / 0.571 GB, free: 9.254 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.312e-05/0.3657, allocations: 31.81 kB / 0.571 GB, free: 9.223 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007039/0.3664, allocations: 320.3 kB / 0.5713 GB, free: 8.898 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.422e-06/0.3664, allocations: 7.984 kB / 0.5713 GB, free: 8.891 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.3664, allocations: 0 / 0.5713 GB, free: 8.891 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.04e-06/0.3664, allocations: 8 kB / 0.5713 GB, free: 8.883 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001019/0.3674, allocations: 0.6807 MB / 0.572 GB, free: 8.152 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.895e-06/0.3674, allocations: 0 / 0.572 GB, free: 8.152 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002694/0.3677, allocations: 43.97 kB / 0.572 GB, free: 8.109 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.417e-06/0.3677, allocations: 0 / 0.572 GB, free: 8.109 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.159e-05/0.3677, allocations: 11.98 kB / 0.572 GB, free: 8.098 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.468e-06/0.3677, allocations: 3.938 kB / 0.572 GB, free: 8.094 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.3677, allocations: 0 / 0.572 GB, free: 8.094 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009452/0.3687, allocations: 0.5389 MB / 0.5726 GB, free: 7.539 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.225e-05/0.3687, allocations: 27.75 kB / 0.5726 GB, free: 7.512 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.617e-05/0.3688, allocations: 12.06 kB / 0.5726 GB, free: 7.5 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001878/0.369, allocations: 19.92 kB / 0.5726 GB, free: 7.48 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.398e-05/0.3691, allocations: 24.09 kB / 0.5726 GB, free: 7.457 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.791e-05/0.3691, allocations: 11.98 kB / 0.5727 GB, free: 7.445 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001911/0.3693, allocations: 191.1 kB / 0.5728 GB, free: 7.262 MB / 414.1 MB Notification: Performance of sort global known variables: time 5e-08/0.3693, allocations: 0 / 0.5728 GB, free: 7.262 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003982/0.3697, allocations: 79.78 kB / 0.5729 GB, free: 7.184 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.001212/0.3709, allocations: 1.077 MB / 0.574 GB, free: 6.082 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005696/0.3715, allocations: 256.1 kB / 0.5742 GB, free: 5.832 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.237e-06/0.3715, allocations: 4 kB / 0.5742 GB, free: 5.828 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002596/0.3717, allocations: 123.7 kB / 0.5743 GB, free: 5.707 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003968/0.3721, allocations: 43.94 kB / 0.5744 GB, free: 5.664 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004302/0.3764, allocations: 3.234 MB / 0.5775 GB, free: 2.23 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001995/0.3766, allocations: 199.3 kB / 0.5777 GB, free: 2.012 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001568/0.3768, allocations: 47.22 kB / 0.5778 GB, free: 1.965 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001875/0.377, allocations: 127.4 kB / 0.5779 GB, free: 1.84 MB / 414.1 MB Notification: Performance of SimCode: time 7.31e-07/0.377, allocations: 0 / 0.5779 GB, free: 1.84 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03423/0.4112, allocations: 6.806 MB / 0.5845 GB, free: 11.2 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.38/11.79, allocations: 0 / 0.5845 GB, free: 11.2 MB / 430.1 MB " [Timeout remaining time 648] (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/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_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: 14.793136174994288]