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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001214/0.001214, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001342/0.001342, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.436/1.436, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2243/0.2243, allocations: 46.09 MB / 344.1 MB, free: 11.61 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001486/0.001486, allocations: 81.27 kB / 417.7 MB, free: 19.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.107, allocations: 62.45 MB / 480.1 MB, free: 5.203 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003626/0.1107, allocations: 2.306 MB / 482.4 MB, free: 2.883 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001695/0.1124, allocations: 0.8958 MB / 483.3 MB, free: 1.98 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002458/0.1127, allocations: 11.94 kB / 483.3 MB, free: 1.969 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001727/0.1129, allocations: 39.53 kB / 483.4 MB, free: 1.93 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003037/0.1132, allocations: 59.39 kB / 483.4 MB, free: 1.871 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004589/0.1137, allocations: 187.6 kB / 483.6 MB, free: 1.688 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004737/0.1142, allocations: 379 kB / 484 MB, free: 1.316 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003122/0.1145, allocations: 140.1 kB / 484.1 MB, free: 1.18 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003537/0.1149, allocations: 155.3 kB / 484.3 MB, free: 1.027 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003197/0.1152, allocations: 163.1 kB / 484.4 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001035/0.1153, allocations: 36 kB / 484.5 MB, free: 0.832 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001534/0.1155, allocations: 55.98 kB / 484.5 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001089/0.1156, allocations: 83.75 kB / 484.6 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002219/0.1158, allocations: 182.9 kB / 484.8 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005112/0.1163, allocations: 394.9 kB / 485.2 MB, free: 132 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.1163, allocations: 0 / 485.2 MB, free: 132 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.1164, allocations: 0 / 485.2 MB, free: 132 kB / 350.1 MB Notification: Performance of Transformations before backend: time 1.852e-05/0.1164, allocations: 0 / 485.2 MB, free: 132 kB / 350.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.001523/0.1179, allocations: 0.6615 MB / 485.8 MB, free: 15.42 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.951e-05/0.118, allocations: 11.97 kB / 485.8 MB, free: 15.41 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001367/0.1181, allocations: 71.28 kB / 485.9 MB, free: 15.33 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005314/0.1187, allocations: 76.42 kB / 486 MB, free: 15.26 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005138/0.1192, allocations: 352 kB / 486.3 MB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.149e-05/0.1192, allocations: 33.03 kB / 486.4 MB, free: 14.84 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.063e-05/0.1193, allocations: 40.27 kB / 486.4 MB, free: 14.8 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005298/0.1198, allocations: 290 kB / 486.7 MB, free: 14.52 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.584e-05/0.1199, allocations: 0 / 486.7 MB, free: 14.52 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.206e-05/0.1199, allocations: 12 kB / 486.7 MB, free: 14.5 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.223e-06/0.1199, allocations: 4 kB / 486.7 MB, free: 14.5 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004375/0.1203, allocations: 198.5 kB / 486.9 MB, free: 14.31 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001664/0.122, allocations: 0.8854 MB / 487.8 MB, free: 13.37 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004231/0.1225, allocations: 201.7 kB / 488 MB, free: 13.17 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002074/0.1227, allocations: 100.8 kB / 488.1 MB, free: 13.07 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.876e-05/0.1227, allocations: 4 kB / 488.1 MB, free: 13.06 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003983/0.1231, allocations: 223.1 kB / 488.3 MB, free: 12.83 MB / 366.1 MB Notification: Performance of pre-optimization done (n=31): time 2.244e-06/0.1231, allocations: 0 / 488.3 MB, free: 12.83 MB / 366.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008153/0.124, allocations: 377.7 kB / 488.7 MB, free: 12.46 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.39e-05/0.124, allocations: 55.41 kB / 488.7 MB, free: 12.39 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002687/0.1243, allocations: 267 kB / 489 MB, free: 12.12 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.377e-05/0.1243, allocations: 33.7 kB / 489 MB, free: 12.08 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001167/0.1244, allocations: 200.6 kB / 489.2 MB, free: 11.88 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.456e-05/0.1245, allocations: 90.72 kB / 489.3 MB, free: 11.79 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001004/0.1246, allocations: 74.06 kB / 489.4 MB, free: 11.7 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001165/0.1248, allocations: 350.7 kB / 489.7 MB, free: 11.35 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002513/0.125, allocations: 84.7 kB / 489.8 MB, free: 11.27 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002928/0.1253, allocations: 236.9 kB / 490 MB, free: 10.98 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005237/0.1259, allocations: 352.7 kB / 490.4 MB, free: 10.57 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.3e-06/0.1259, allocations: 8 kB / 490.4 MB, free: 10.57 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006874/0.1266, allocations: 377.1 kB / 490.8 MB, free: 10.19 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.818e-05/0.1266, allocations: 4 kB / 490.8 MB, free: 10.19 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.836e-05/0.1266, allocations: 8.141 kB / 490.8 MB, free: 10.18 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.164e-05/0.1266, allocations: 8 kB / 490.8 MB, free: 10.17 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002882/0.1269, allocations: 79.88 kB / 490.9 MB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.417e-05/0.127, allocations: 7.938 kB / 490.9 MB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001845/0.1271, allocations: 31.77 kB / 490.9 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.009e-05/0.1272, allocations: 23.94 kB / 490.9 MB, free: 10.03 MB / 366.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,mean.y_last,$PRE.mean.y_last,rectifiedMean.mean.y_last,$PRE.rectifiedMean.mean.y_last,rootMeanSquare.mean.y_last,$PRE.rootMeanSquare.mean.y_last,harmonic.mean2.y_last,$PRE.harmonic.mean2.y_last,harmonic.mean1.y_last,$PRE.harmonic.mean1.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.0001879/0.1274, allocations: 165.6 kB / 491.1 MB, free: 9.859 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.018e-05/0.1274, allocations: 39.62 kB / 491.1 MB, free: 9.82 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006456/0.1281, allocations: 321.1 kB / 491.4 MB, free: 9.5 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.713e-06/0.1281, allocations: 4 kB / 491.4 MB, free: 9.496 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.678e-06/0.1281, allocations: 0 / 491.4 MB, free: 9.496 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.534e-06/0.1281, allocations: 3.984 kB / 491.4 MB, free: 9.492 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000969/0.1291, allocations: 0.7323 MB / 492.2 MB, free: 8.703 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.1291, allocations: 0 / 492.2 MB, free: 8.703 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002485/0.1294, allocations: 47.97 kB / 492.2 MB, free: 8.656 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.078e-06/0.1294, allocations: 0 / 492.2 MB, free: 8.656 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.973e-05/0.1294, allocations: 11.98 kB / 492.2 MB, free: 8.645 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.179e-06/0.1294, allocations: 7.938 kB / 492.2 MB, free: 8.637 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.1295, allocations: 4 kB / 492.2 MB, free: 8.633 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009002/0.1304, allocations: 0.5227 MB / 492.8 MB, free: 8.094 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.59e-05/0.1304, allocations: 104.7 kB / 492.9 MB, free: 7.973 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.217e-05/0.1305, allocations: 8.156 kB / 492.9 MB, free: 7.965 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001788/0.1307, allocations: 19.86 kB / 492.9 MB, free: 7.945 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.156e-05/0.1308, allocations: 31.95 kB / 492.9 MB, free: 7.914 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.395e-05/0.1308, allocations: 12 kB / 492.9 MB, free: 7.902 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001861/0.131, allocations: 190 kB / 493.1 MB, free: 7.719 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.131, allocations: 0 / 493.1 MB, free: 7.719 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003863/0.1314, allocations: 67.84 kB / 493.2 MB, free: 7.652 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (mean.x,rectifiedMean.mean.x,rootMeanSquare.mean.x,harmonic.mean1.x,harmonic.mean2.x) * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,mean.y_last,rectifiedMean.mean.y_last,rootMeanSquare.mean.y_last,harmonic.mean1.y_last,harmonic.mean2.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.001132/0.1325, allocations: 1.072 MB / 494.3 MB, free: 6.555 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006222/0.1332, allocations: 280.3 kB / 494.5 MB, free: 6.281 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1332, allocations: 0 / 494.5 MB, free: 6.281 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002446/0.1334, allocations: 136.3 kB / 494.7 MB, free: 6.148 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003458/0.1338, allocations: 41.05 kB / 494.7 MB, free: 6.109 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004379/0.1382, allocations: 3.273 MB / 498 MB, free: 2.633 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004214/0.1386, allocations: 0.7959 MB / 498.8 MB, free: 1.809 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001869/0.1388, allocations: 42.95 kB / 498.8 MB, free: 1.766 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001937/0.139, allocations: 135.3 kB / 498.9 MB, free: 1.637 MB / 366.1 MB Notification: Performance of SimCode: time 5.61e-07/0.139, allocations: 0 / 498.9 MB, free: 1.637 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02449/0.1635, allocations: 5.841 MB / 0.493 GB, free: 11.83 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.552/7.716, allocations: 22.5 kB / 0.493 GB, free: 11.81 MB / 382.1 MB (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.00044 ModelicaTest_trunk_ModelicaTest_Blocks_Mean.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.Mean_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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) Reference file matches