Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.001608/0.001608, allocations: 100.3 kB / 19.69 MB, free: 1.805 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.001884/0.001884, allocations: 213.2 kB / 22.99 MB, free: 4.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.468/1.468, allocations: 207.7 MB / 233.8 MB, free: 9.793 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2575/0.2575, allocations: 44.27 MB / 330.3 MB, free: 9.309 MB / 270.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002311/0.002311, allocations: 70.72 kB / 467.5 MB, free: 4.352 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1228/0.1252, allocations: 61.05 MB / 0.5162 GB, free: 7.176 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.004016/0.1292, allocations: 2.111 MB / 0.5182 GB, free: 5.051 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001558/0.1307, allocations: 0.7761 MB / 0.519 GB, free: 4.266 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001279/0.1309, allocations: 7.938 kB / 0.519 GB, free: 4.258 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002228/0.1311, allocations: 35.53 kB / 0.519 GB, free: 4.223 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000244/0.1313, allocations: 59.45 kB / 0.5191 GB, free: 4.164 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00036/0.1317, allocations: 151.7 kB / 0.5192 GB, free: 4.016 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004224/0.1321, allocations: 351.1 kB / 0.5195 GB, free: 3.672 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002416/0.1323, allocations: 88.78 kB / 0.5196 GB, free: 3.582 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002048/0.1325, allocations: 147.4 kB / 0.5198 GB, free: 3.438 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002394/0.1328, allocations: 139.2 kB / 0.5199 GB, free: 3.301 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.402e-05/0.1329, allocations: 36 kB / 0.5199 GB, free: 3.266 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.554e-05/0.1329, allocations: 32 kB / 0.52 GB, free: 3.234 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.879e-05/0.133, allocations: 71.77 kB / 0.52 GB, free: 3.164 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000146/0.1331, allocations: 127.3 kB / 0.5202 GB, free: 3.039 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004257/0.1336, allocations: 366.4 kB / 0.5205 GB, free: 2.68 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.526e-06/0.1336, allocations: 4 kB / 0.5205 GB, free: 2.676 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.1336, allocations: 0 / 0.5205 GB, free: 2.676 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.582e-06/0.1336, allocations: 0 / 0.5205 GB, free: 2.676 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.00128/0.1349, allocations: 0.6719 MB / 0.5212 GB, free: 1.961 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.239e-05/0.1349, allocations: 8.031 kB / 0.5212 GB, free: 1.953 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001265/0.135, allocations: 75.31 kB / 0.5212 GB, free: 1.871 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.158e-05/0.1351, allocations: 44.7 kB / 0.5213 GB, free: 1.828 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005523/0.1357, allocations: 273.5 kB / 0.5216 GB, free: 1.535 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.861e-05/0.1357, allocations: 25.03 kB / 0.5216 GB, free: 1.512 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.014e-05/0.1358, allocations: 32.38 kB / 0.5216 GB, free: 1.48 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006018/0.1364, allocations: 274 kB / 0.5219 GB, free: 1.207 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.276e-05/0.1364, allocations: 0 / 0.5219 GB, free: 1.207 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.104e-05/0.1364, allocations: 23.98 kB / 0.5219 GB, free: 1.184 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.868e-06/0.1364, allocations: 4 kB / 0.5219 GB, free: 1.18 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004541/0.1369, allocations: 190.5 kB / 0.5221 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001471/0.1384, allocations: 0.6946 MB / 0.5228 GB, free: 260 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004469/0.1388, allocations: 194.7 kB / 0.5229 GB, free: 56 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002411/0.1391, allocations: 92.8 kB / 0.523 GB, free: 15.96 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.4e-05/0.1391, allocations: 7.938 kB / 0.523 GB, free: 15.95 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004587/0.1396, allocations: 231.1 kB / 0.5233 GB, free: 15.71 MB / 414.1 MB Notification: Performance of pre-optimization done (n=31): time 1.883e-06/0.1396, allocations: 0 / 0.5233 GB, free: 15.71 MB / 414.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008852/0.1404, allocations: 377.3 kB / 0.5236 GB, free: 15.34 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.343e-05/0.1405, allocations: 55.41 kB / 0.5237 GB, free: 15.27 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002789/0.1408, allocations: 233.1 kB / 0.5239 GB, free: 15.04 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.44e-05/0.1408, allocations: 41.69 kB / 0.5239 GB, free: 14.99 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001868/0.141, allocations: 180.7 kB / 0.5241 GB, free: 14.81 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001145/0.1411, allocations: 99.17 kB / 0.5242 GB, free: 14.71 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001166/0.1412, allocations: 74.06 kB / 0.5243 GB, free: 14.63 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002731/0.1415, allocations: 338.8 kB / 0.5246 GB, free: 14.29 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002172/0.1417, allocations: 88.69 kB / 0.5247 GB, free: 14.2 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003652/0.1421, allocations: 226.3 kB / 0.5249 GB, free: 13.92 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006464/0.1427, allocations: 340.8 kB / 0.5252 GB, free: 13.53 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.251e-06/0.1428, allocations: 4 kB / 0.5252 GB, free: 13.52 MB / 414.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.000809/0.1436, allocations: 377.2 kB / 0.5256 GB, free: 13.15 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.994e-05/0.1436, allocations: 8 kB / 0.5256 GB, free: 13.14 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.999e-06/0.1436, allocations: 4 kB / 0.5256 GB, free: 13.14 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.246e-05/0.1436, allocations: 8 kB / 0.5256 GB, free: 13.13 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003274/0.1439, allocations: 71.84 kB / 0.5257 GB, free: 13.06 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.823e-05/0.144, allocations: 11.98 kB / 0.5257 GB, free: 13.05 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001809/0.1441, allocations: 31.78 kB / 0.5257 GB, free: 13.02 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.242e-05/0.1442, allocations: 23.98 kB / 0.5257 GB, free: 12.99 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,$PRE.rectifiedMean.mean.y,mean.y,$PRE.mean.y,rootMeanSquare.mean.y,$PRE.rootMeanSquare.mean.y,harmonic.mean1.y,$PRE.harmonic.mean1.y,harmonic.mean2.y,$PRE.harmonic.mean2.y) * 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.000203/0.1444, allocations: 173.5 kB / 0.5259 GB, free: 12.81 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.638e-05/0.1444, allocations: 27.84 kB / 0.5259 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006748/0.1451, allocations: 319.6 kB / 0.5262 GB, free: 12.47 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.131e-06/0.1451, allocations: 4.094 kB / 0.5262 GB, free: 12.46 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.1451, allocations: 3.938 kB / 0.5262 GB, free: 12.46 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.1451, allocations: 7.984 kB / 0.5262 GB, free: 12.45 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001017/0.1461, allocations: 0.6574 MB / 0.5269 GB, free: 11.75 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.369e-06/0.1461, allocations: 4 kB / 0.5269 GB, free: 11.74 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002536/0.1464, allocations: 47.91 kB / 0.5269 GB, free: 11.7 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.905e-06/0.1464, allocations: 0 / 0.5269 GB, free: 11.7 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.81e-05/0.1464, allocations: 11.98 kB / 0.5269 GB, free: 11.68 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.053e-06/0.1464, allocations: 0 / 0.5269 GB, free: 11.68 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.1464, allocations: 4 kB / 0.527 GB, free: 11.68 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009854/0.1474, allocations: 0.5305 MB / 0.5275 GB, free: 11.13 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.528e-05/0.1475, allocations: 27.75 kB / 0.5275 GB, free: 11.11 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.768e-05/0.1475, allocations: 16.05 kB / 0.5275 GB, free: 11.09 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001699/0.1477, allocations: 11.98 kB / 0.5275 GB, free: 11.08 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.378e-05/0.1478, allocations: 19.97 kB / 0.5275 GB, free: 11.06 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.082e-05/0.1478, allocations: 11.98 kB / 0.5276 GB, free: 11.05 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001812/0.148, allocations: 180.3 kB / 0.5277 GB, free: 10.87 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.148, allocations: 4 kB / 0.5277 GB, free: 10.87 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003773/0.1484, allocations: 63.89 kB / 0.5278 GB, free: 10.8 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,harmonic.mean1.y,rootMeanSquare.mean.y,rectifiedMean.mean.y,mean.y) * 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.001308/0.1497, allocations: 1.064 MB / 0.5288 GB, free: 9.711 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000625/0.1503, allocations: 252.1 kB / 0.5291 GB, free: 9.465 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.1503, allocations: 0 / 0.5291 GB, free: 9.465 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002689/0.1506, allocations: 119.8 kB / 0.5292 GB, free: 9.348 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003781/0.1509, allocations: 32.42 kB / 0.5292 GB, free: 9.316 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004739/0.1557, allocations: 3.092 MB / 0.5322 GB, free: 6.039 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002851/0.156, allocations: 181.9 kB / 0.5324 GB, free: 5.836 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001629/0.1561, allocations: 51.16 kB / 0.5325 GB, free: 5.785 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002647/0.1564, allocations: 107.4 kB / 0.5326 GB, free: 5.68 MB / 414.1 MB Notification: Performance of SimCode: time 6.51e-07/0.1564, allocations: 0 / 0.5326 GB, free: 5.68 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2436/0.4, allocations: 6.19 MB / 0.5386 GB, free: 29.34 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.74/12.14, allocations: 1.531 kB / 0.5386 GB, free: 29.34 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_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_3_2_3_ModelicaTest_Blocks_Mean.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Mean/Mean.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable mean.x in file ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean_res.csv. Warning: Get data of variable mean.x from file ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean_res.csv failed! Error: Could not read variable mean.y in file ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean_res.csv. Warning: Get data of variable mean.y from file ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.28590082610026]