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.001358/0.001358, allocations: 114 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.001782/0.001782, allocations: 214 kB / 23.74 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.462/1.462, allocations: 230.5 MB / 257.4 MB, free: 7.996 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.2244/0.2244, 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.00312/0.00312, allocations: 79.86 kB / 0.4962 GB, free: 7.777 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3253/0.3284, allocations: 66.09 MB / 0.5607 GB, free: 4.305 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003866/0.3323, allocations: 2.33 MB / 0.563 GB, free: 1.965 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001778/0.3341, allocations: 0.9163 MB / 0.5639 GB, free: 1.043 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001642/0.3342, allocations: 11.94 kB / 0.5639 GB, free: 1.031 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001829/0.3344, allocations: 39.47 kB / 0.5639 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000258/0.3347, allocations: 59.41 kB / 0.564 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004708/0.3351, allocations: 195.5 kB / 0.5642 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004469/0.3356, allocations: 390.9 kB / 0.5646 GB, free: 368 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002425/0.3358, allocations: 100.6 kB / 0.5647 GB, free: 264 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002639/0.3361, allocations: 155.4 kB / 0.5648 GB, free: 108 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002682/0.3364, allocations: 167.2 kB / 0.565 GB, free: 15.94 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.704e-05/0.3364, allocations: 36 kB / 0.565 GB, free: 15.91 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001097/0.3365, allocations: 48 kB / 0.565 GB, free: 15.86 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001031/0.3366, allocations: 95.61 kB / 0.5651 GB, free: 15.77 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001623/0.3368, allocations: 167.1 kB / 0.5653 GB, free: 15.6 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004708/0.3373, allocations: 416.3 kB / 0.5657 GB, free: 15.2 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.3373, allocations: 0 / 0.5657 GB, free: 15.2 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.3373, allocations: 3.938 kB / 0.5657 GB, free: 15.19 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.083e-05/0.3373, allocations: 4 kB / 0.5657 GB, free: 15.19 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.00133/0.3386, allocations: 0.7228 MB / 0.5664 GB, free: 14.42 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.028e-05/0.3386, allocations: 8.031 kB / 0.5664 GB, free: 14.41 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000117/0.3388, allocations: 83.25 kB / 0.5665 GB, free: 14.32 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004479/0.3392, allocations: 84.61 kB / 0.5666 GB, free: 14.24 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005366/0.3398, allocations: 303 kB / 0.5669 GB, free: 13.92 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.4e-05/0.3398, allocations: 29.03 kB / 0.5669 GB, free: 13.89 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.5e-05/0.3398, allocations: 28.38 kB / 0.5669 GB, free: 13.86 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005308/0.3404, allocations: 294 kB / 0.5672 GB, free: 13.57 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.637e-05/0.3404, allocations: 4 kB / 0.5672 GB, free: 13.57 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.722e-05/0.3404, allocations: 11.94 kB / 0.5672 GB, free: 13.55 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.211e-05/0.3404, allocations: 8 kB / 0.5672 GB, free: 13.55 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004248/0.3409, allocations: 198.5 kB / 0.5674 GB, free: 13.35 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001432/0.3423, allocations: 0.8275 MB / 0.5682 GB, free: 12.48 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004266/0.3427, allocations: 192.1 kB / 0.5684 GB, free: 12.29 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002/0.3429, allocations: 88.8 kB / 0.5685 GB, free: 12.2 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.384e-05/0.3429, allocations: 7.984 kB / 0.5685 GB, free: 12.19 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004296/0.3434, allocations: 227.2 kB / 0.5687 GB, free: 11.95 MB / 414.1 MB Notification: Performance of pre-optimization done (n=31): time 2.064e-06/0.3434, allocations: 4 kB / 0.5687 GB, free: 11.95 MB / 414.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008191/0.3442, allocations: 373.3 kB / 0.5691 GB, free: 11.58 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.106e-05/0.3442, allocations: 59.41 kB / 0.5691 GB, free: 11.51 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002809/0.3445, allocations: 264.2 kB / 0.5694 GB, free: 11.24 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.346e-05/0.3446, allocations: 37.69 kB / 0.5694 GB, free: 11.2 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001427/0.3447, allocations: 192.9 kB / 0.5696 GB, free: 11 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001006/0.3448, allocations: 103.2 kB / 0.5697 GB, free: 10.9 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001096/0.3449, allocations: 77.98 kB / 0.5698 GB, free: 10.82 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001639/0.3451, allocations: 346.8 kB / 0.5701 GB, free: 10.47 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002034/0.3453, allocations: 96.69 kB / 0.5702 GB, free: 10.38 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003005/0.3456, allocations: 218.6 kB / 0.5704 GB, free: 10.1 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005408/0.3461, allocations: 344.9 kB / 0.5707 GB, free: 9.703 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.055e-06/0.3461, allocations: 0 / 0.5707 GB, free: 9.703 MB / 414.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.000663/0.3468, allocations: 376.8 kB / 0.5711 GB, free: 9.328 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.911e-05/0.3468, allocations: 8 kB / 0.5711 GB, free: 9.32 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.044e-05/0.3468, allocations: 4 kB / 0.5711 GB, free: 9.316 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.133e-05/0.3468, allocations: 8 kB / 0.5711 GB, free: 9.309 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002956/0.3471, allocations: 76.3 kB / 0.5712 GB, free: 9.234 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.233e-05/0.3472, allocations: 15.94 kB / 0.5712 GB, free: 9.219 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001753/0.3473, allocations: 31.83 kB / 0.5712 GB, free: 9.188 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.961e-05/0.3474, allocations: 23.94 kB / 0.5713 GB, free: 9.164 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.0001991/0.3476, allocations: 161.8 kB / 0.5714 GB, free: 8.996 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.109e-05/0.3476, allocations: 35.8 kB / 0.5714 GB, free: 8.961 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006631/0.3483, allocations: 328.3 kB / 0.5718 GB, free: 8.629 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.342e-06/0.3483, allocations: 4 kB / 0.5718 GB, free: 8.625 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.3483, allocations: 0 / 0.5718 GB, free: 8.625 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.3483, allocations: 0 / 0.5718 GB, free: 8.625 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001025/0.3493, allocations: 0.7041 MB / 0.5724 GB, free: 7.871 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.458e-06/0.3493, allocations: 4 kB / 0.5724 GB, free: 7.867 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002473/0.3496, allocations: 55.89 kB / 0.5725 GB, free: 7.812 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.448e-06/0.3496, allocations: 0 / 0.5725 GB, free: 7.812 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.423e-05/0.3496, allocations: 8 kB / 0.5725 GB, free: 7.805 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.022e-06/0.3496, allocations: 3.938 kB / 0.5725 GB, free: 7.801 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.3496, allocations: 96 / 0.5725 GB, free: 7.801 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009545/0.3506, allocations: 0.535 MB / 0.573 GB, free: 7.25 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.64e-05/0.3506, allocations: 31.73 kB / 0.5731 GB, free: 7.219 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.89e-05/0.3507, allocations: 16 kB / 0.5731 GB, free: 7.203 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001707/0.3508, allocations: 15.92 kB / 0.5731 GB, free: 7.188 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.127e-05/0.3509, allocations: 23.95 kB / 0.5731 GB, free: 7.164 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.389e-05/0.3509, allocations: 11.98 kB / 0.5731 GB, free: 7.152 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001835/0.3511, allocations: 187.1 kB / 0.5733 GB, free: 6.973 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3511, allocations: 0 / 0.5733 GB, free: 6.973 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003775/0.3515, allocations: 79.77 kB / 0.5734 GB, free: 6.895 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.001161/0.3527, allocations: 1.071 MB / 0.5744 GB, free: 5.797 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005396/0.3532, allocations: 251.6 kB / 0.5747 GB, free: 5.551 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.3532, allocations: 0 / 0.5747 GB, free: 5.551 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002501/0.3534, allocations: 129.2 kB / 0.5748 GB, free: 5.426 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003813/0.3538, allocations: 47.47 kB / 0.5748 GB, free: 5.379 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004308/0.3581, allocations: 3.237 MB / 0.578 GB, free: 1.938 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000442/0.3586, allocations: 0.7959 MB / 0.5788 GB, free: 1.113 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001622/0.3587, allocations: 46.94 kB / 0.5788 GB, free: 1.066 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000197/0.3589, allocations: 135.3 kB / 0.579 GB, free: 0.9336 MB / 414.1 MB Notification: Performance of SimCode: time 9.21e-07/0.3589, allocations: 0 / 0.579 GB, free: 0.9336 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03291/0.3918, allocations: 6.334 MB / 0.5851 GB, free: 10.7 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.28/11.68, allocations: 7.609 kB / 0.5851 GB, free: 10.7 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 & 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/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] "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] Reference file matches [Calling sys.exit(0), Time elapsed: 14.754451779997908]