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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001293/0.001293, allocations: 105.8 kB / 16.41 MB, free: 6.457 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001226/0.001226, allocations: 191.8 kB / 17.34 MB, free: 5.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.349/1.349, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2057/0.2057, allocations: 43.52 MB / 314.1 MB, free: 460 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00318/0.00318, allocations: 76.36 kB / 441.3 MB, free: 6.168 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1198/0.123, allocations: 57.79 MB / 499.1 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.004116/0.1271, allocations: 2.217 MB / 0.4896 GB, free: 10.08 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001737/0.1289, allocations: 0.8188 MB / 0.4904 GB, free: 9.254 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002152/0.1291, allocations: 4 kB / 0.4904 GB, free: 9.25 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001705/0.1293, allocations: 39.53 kB / 0.4904 GB, free: 9.211 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002707/0.1296, allocations: 51.47 kB / 0.4905 GB, free: 9.16 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003743/0.13, allocations: 147.7 kB / 0.4906 GB, free: 9.016 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004576/0.1305, allocations: 355 kB / 0.4909 GB, free: 8.668 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002745/0.1308, allocations: 132.2 kB / 0.4911 GB, free: 8.535 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002743/0.1311, allocations: 131.4 kB / 0.4912 GB, free: 8.406 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002724/0.1313, allocations: 155.2 kB / 0.4913 GB, free: 8.254 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.692e-05/0.1314, allocations: 36 kB / 0.4914 GB, free: 8.219 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.135e-05/0.1315, allocations: 32 kB / 0.4914 GB, free: 8.188 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001078/0.1316, allocations: 79.75 kB / 0.4915 GB, free: 8.109 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001905/0.1318, allocations: 167.1 kB / 0.4916 GB, free: 7.945 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004556/0.1323, allocations: 358.5 kB / 0.492 GB, free: 7.594 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.1323, allocations: 0 / 0.492 GB, free: 7.594 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.1323, allocations: 0 / 0.492 GB, free: 7.594 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.823e-05/0.1323, allocations: 0 / 0.492 GB, free: 7.594 MB / 382.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.00127/0.1336, allocations: 0.6216 MB / 0.4926 GB, free: 6.926 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.748e-05/0.1336, allocations: 15.89 kB / 0.4926 GB, free: 6.91 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001177/0.1338, allocations: 71.22 kB / 0.4927 GB, free: 6.828 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.937e-05/0.1339, allocations: 44.66 kB / 0.4927 GB, free: 6.785 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005571/0.1344, allocations: 347.3 kB / 0.493 GB, free: 6.406 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.93e-05/0.1345, allocations: 20.94 kB / 0.4931 GB, free: 6.387 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.131e-05/0.1345, allocations: 32.38 kB / 0.4931 GB, free: 6.355 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005699/0.1351, allocations: 272.8 kB / 0.4933 GB, free: 6.082 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.799e-05/0.1351, allocations: 0 / 0.4933 GB, free: 6.082 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.533e-05/0.1352, allocations: 15.98 kB / 0.4934 GB, free: 6.066 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.047e-05/0.1352, allocations: 8 kB / 0.4934 GB, free: 6.059 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004577/0.1357, allocations: 198.1 kB / 0.4936 GB, free: 5.867 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001384/0.1371, allocations: 0.803 MB / 0.4943 GB, free: 5.012 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004543/0.1375, allocations: 214.7 kB / 0.4945 GB, free: 4.793 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000222/0.1378, allocations: 96.75 kB / 0.4946 GB, free: 4.695 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.025e-05/0.1378, allocations: 4 kB / 0.4946 GB, free: 4.691 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004417/0.1382, allocations: 223.2 kB / 0.4949 GB, free: 4.461 MB / 382.1 MB Notification: Performance of pre-optimization done (n=31): time 2.064e-06/0.1383, allocations: 0 / 0.4949 GB, free: 4.461 MB / 382.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008635/0.1391, allocations: 378.1 kB / 0.4952 GB, free: 4.086 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.248e-05/0.1392, allocations: 59.39 kB / 0.4953 GB, free: 4.016 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000253/0.1394, allocations: 244.9 kB / 0.4955 GB, free: 3.77 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.396e-05/0.1395, allocations: 29.7 kB / 0.4955 GB, free: 3.734 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001318/0.1396, allocations: 176.7 kB / 0.4957 GB, free: 3.559 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.1e-05/0.1397, allocations: 99.19 kB / 0.4958 GB, free: 3.461 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001181/0.1398, allocations: 70.06 kB / 0.4959 GB, free: 3.383 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001634/0.14, allocations: 346.8 kB / 0.4962 GB, free: 3.035 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002234/0.1402, allocations: 88.7 kB / 0.4963 GB, free: 2.949 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003213/0.1406, allocations: 230.3 kB / 0.4965 GB, free: 2.664 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005641/0.1411, allocations: 336.8 kB / 0.4968 GB, free: 2.273 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.561e-06/0.1412, allocations: 4 kB / 0.4968 GB, free: 2.27 MB / 382.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007011/0.1419, allocations: 376.8 kB / 0.4972 GB, free: 1.895 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.89e-05/0.1419, allocations: 8 kB / 0.4972 GB, free: 1.887 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.091e-05/0.1419, allocations: 4 kB / 0.4972 GB, free: 1.883 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.39e-05/0.1419, allocations: 8.469 kB / 0.4972 GB, free: 1.875 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003023/0.1423, allocations: 79.83 kB / 0.4973 GB, free: 1.797 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.44e-05/0.1423, allocations: 11.94 kB / 0.4973 GB, free: 1.785 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001824/0.1425, allocations: 35.78 kB / 0.4973 GB, free: 1.75 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.886e-05/0.1425, allocations: 20.08 kB / 0.4973 GB, free: 1.73 MB / 382.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,$PRE.mean.y,rectifiedMean.mean.y,$PRE.rectifiedMean.mean.y,rootMeanSquare.mean.y,$PRE.rootMeanSquare.mean.y,harmonic.mean2.y,$PRE.harmonic.mean2.y,harmonic.mean1.y,$PRE.harmonic.mean1.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.0001782/0.1427, allocations: 169.5 kB / 0.4975 GB, free: 1.555 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.866e-05/0.1427, allocations: 31.84 kB / 0.4975 GB, free: 1.523 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006728/0.1434, allocations: 323.4 kB / 0.4978 GB, free: 1.207 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.911e-06/0.1434, allocations: 4 kB / 0.4979 GB, free: 1.203 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.1434, allocations: 0 / 0.4979 GB, free: 1.203 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.003e-06/0.1435, allocations: 3.984 kB / 0.4979 GB, free: 1.199 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009892/0.1445, allocations: 0.7129 MB / 0.4986 GB, free: 440 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.1445, allocations: 0 / 0.4986 GB, free: 440 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002506/0.1447, allocations: 51.89 kB / 0.4986 GB, free: 388 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.059e-06/0.1447, allocations: 4 kB / 0.4986 GB, free: 384 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.349e-05/0.1448, allocations: 4 kB / 0.4986 GB, free: 380 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.138e-06/0.1448, allocations: 4 kB / 0.4986 GB, free: 376 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.1448, allocations: 0 / 0.4986 GB, free: 376 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009012/0.1457, allocations: 0.5305 MB / 0.4991 GB, free: 15.82 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.806e-05/0.1458, allocations: 108.8 kB / 0.4992 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.71e-05/0.1458, allocations: 8.062 kB / 0.4992 GB, free: 15.69 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001747/0.146, allocations: 15.98 kB / 0.4993 GB, free: 15.67 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.642e-05/0.1461, allocations: 23.97 kB / 0.4993 GB, free: 15.65 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.543e-05/0.1461, allocations: 11.98 kB / 0.4993 GB, free: 15.64 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001701/0.1463, allocations: 172.4 kB / 0.4995 GB, free: 15.47 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1463, allocations: 4 kB / 0.4995 GB, free: 15.46 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003525/0.1467, allocations: 63.89 kB / 0.4995 GB, free: 15.4 MB / 398.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,rectifiedMean.mean.y,rootMeanSquare.mean.y,harmonic.mean1.y,harmonic.mean2.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.001238/0.1479, allocations: 1.072 MB / 0.5006 GB, free: 14.3 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005581/0.1485, allocations: 263.8 kB / 0.5008 GB, free: 14.04 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.1485, allocations: 0.9375 kB / 0.5008 GB, free: 14.04 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002605/0.1488, allocations: 132.4 kB / 0.5009 GB, free: 13.91 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003413/0.1491, allocations: 40.58 kB / 0.501 GB, free: 13.88 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003952/0.1531, allocations: 3.096 MB / 0.504 GB, free: 10.59 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004067/0.1535, allocations: 0.7803 MB / 0.5048 GB, free: 9.777 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001397/0.1536, allocations: 42.95 kB / 0.5048 GB, free: 9.734 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001789/0.1538, allocations: 115.4 kB / 0.5049 GB, free: 9.621 MB / 398.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1538, allocations: 0 / 0.5049 GB, free: 9.621 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02813/0.182, allocations: 5.517 MB / 0.5103 GB, free: 4.086 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.392/8.574, allocations: 3.938 kB / 0.5103 GB, free: 4.082 MB / 398.1 MB (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.00044 ModelicaTest_3_2_3_ModelicaTest_Blocks_Mean.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe 2>&1) 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) Reference file matches