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: translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean") translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001042/0.001042, allocations: 103.7 kB / 16.4 MB, free: 6.508 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.00113/0.00113, allocations: 192.2 kB / 17.34 MB, free: 5.742 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.37/1.37, 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.1869/0.1869, 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.001418/0.001418, allocations: 65.47 kB / 441.8 MB, free: 5.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1258/0.1272, allocations: 57.79 MB / 499.6 MB, free: 11.79 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003111/0.1303, allocations: 2.225 MB / 0.49 GB, free: 9.555 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00124/0.1316, allocations: 0.8149 MB / 0.4908 GB, free: 8.73 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001079/0.1317, allocations: 7.938 kB / 0.4909 GB, free: 8.723 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001319/0.1319, allocations: 31.61 kB / 0.4909 GB, free: 8.691 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000197/0.1321, allocations: 59.39 kB / 0.4909 GB, free: 8.633 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002825/0.1324, allocations: 147.8 kB / 0.4911 GB, free: 8.488 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003454/0.1327, allocations: 359 kB / 0.4914 GB, free: 8.137 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002318/0.133, allocations: 124.2 kB / 0.4915 GB, free: 8.012 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001608/0.1331, allocations: 143.4 kB / 0.4917 GB, free: 7.871 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001913/0.1333, allocations: 147.3 kB / 0.4918 GB, free: 7.727 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.221e-05/0.1334, allocations: 32 kB / 0.4918 GB, free: 7.695 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.136e-05/0.1334, allocations: 32 kB / 0.4919 GB, free: 7.664 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.922e-05/0.1335, allocations: 87.67 kB / 0.492 GB, free: 7.578 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001293/0.1337, allocations: 155.2 kB / 0.4921 GB, free: 7.426 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000335/0.134, allocations: 358.7 kB / 0.4925 GB, free: 7.074 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.134, allocations: 3.938 kB / 0.4925 GB, free: 7.07 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.134, allocations: 0 / 0.4925 GB, free: 7.07 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.524e-06/0.134, allocations: 0 / 0.4925 GB, free: 7.07 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.0009943/0.135, allocations: 0.6222 MB / 0.4931 GB, free: 6.398 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.371e-05/0.1351, allocations: 11.89 kB / 0.4931 GB, free: 6.387 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.774e-05/0.1351, allocations: 36.56 kB / 0.4931 GB, free: 6.352 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004643/0.1356, allocations: 327.2 kB / 0.4934 GB, free: 5.988 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.313e-05/0.1356, allocations: 20.94 kB / 0.4934 GB, free: 5.969 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.593e-05/0.1357, allocations: 32.28 kB / 0.4935 GB, free: 5.938 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004603/0.1362, allocations: 268.9 kB / 0.4937 GB, free: 5.668 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.563e-05/0.1362, allocations: 4 kB / 0.4937 GB, free: 5.664 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.072e-05/0.1362, allocations: 8 kB / 0.4937 GB, free: 5.656 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.169e-05/0.1362, allocations: 8 kB / 0.4937 GB, free: 5.648 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004004/0.1367, allocations: 182.1 kB / 0.4939 GB, free: 5.473 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001254/0.1379, allocations: 0.7677 MB / 0.4947 GB, free: 4.652 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004174/0.1383, allocations: 210.6 kB / 0.4949 GB, free: 4.441 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002041/0.1386, allocations: 108.7 kB / 0.495 GB, free: 4.332 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.858e-05/0.1386, allocations: 4 kB / 0.495 GB, free: 4.328 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003961/0.139, allocations: 231 kB / 0.4952 GB, free: 4.09 MB / 382.1 MB Notification: Performance of pre-optimization done (n=31): time 1.724e-06/0.139, allocations: 0 / 0.4952 GB, free: 4.09 MB / 382.1 MB Notification: Performance of matching and sorting (n=31): time 0.0007685/0.1398, allocations: 373.9 kB / 0.4956 GB, free: 3.719 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.781e-05/0.1398, allocations: 63.39 kB / 0.4956 GB, free: 3.645 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002137/0.1401, allocations: 229 kB / 0.4958 GB, free: 3.414 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.134e-05/0.1401, allocations: 37.7 kB / 0.4959 GB, free: 3.371 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000111/0.1402, allocations: 168.6 kB / 0.496 GB, free: 3.203 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.923e-05/0.1403, allocations: 102.5 kB / 0.4961 GB, free: 3.102 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001091/0.1404, allocations: 74.06 kB / 0.4962 GB, free: 3.02 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001263/0.1406, allocations: 342.8 kB / 0.4965 GB, free: 2.676 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001823/0.1407, allocations: 84.7 kB / 0.4966 GB, free: 2.594 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00028/0.141, allocations: 229.7 kB / 0.4968 GB, free: 2.312 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004608/0.1415, allocations: 336.9 kB / 0.4971 GB, free: 1.922 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.1415, allocations: 0 / 0.4971 GB, free: 1.922 MB / 382.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006014/0.1421, allocations: 372.9 kB / 0.4975 GB, free: 1.551 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.908e-05/0.1421, allocations: 11.94 kB / 0.4975 GB, free: 1.539 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.458e-06/0.1422, allocations: 7.938 kB / 0.4975 GB, free: 1.531 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.294e-05/0.1422, allocations: 8 kB / 0.4975 GB, free: 1.523 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002805/0.1425, allocations: 75.83 kB / 0.4976 GB, free: 1.449 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.295e-05/0.1425, allocations: 11.98 kB / 0.4976 GB, free: 1.438 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001664/0.1427, allocations: 32.05 kB / 0.4976 GB, free: 1.406 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.378e-05/0.1427, allocations: 20 kB / 0.4977 GB, free: 1.387 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.0001508/0.1429, allocations: 165.7 kB / 0.4978 GB, free: 1.215 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.032e-05/0.1429, allocations: 31.61 kB / 0.4979 GB, free: 1.184 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006212/0.1436, allocations: 327.4 kB / 0.4982 GB, free: 0.8633 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.08e-06/0.1436, allocations: 3.984 kB / 0.4982 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.195e-06/0.1436, allocations: 4.094 kB / 0.4982 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.212e-06/0.1436, allocations: 11.86 kB / 0.4982 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008785/0.1445, allocations: 0.6973 MB / 0.4989 GB, free: 92 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.1445, allocations: 0 / 0.4989 GB, free: 92 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002359/0.1447, allocations: 51.91 kB / 0.4989 GB, free: 40 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.876e-06/0.1447, allocations: 4 kB / 0.4989 GB, free: 36 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.53e-05/0.1448, allocations: 11.98 kB / 0.4989 GB, free: 24 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.1448, allocations: 0 / 0.4989 GB, free: 24 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.1448, allocations: 0 / 0.4989 GB, free: 24 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007907/0.1456, allocations: 0.5225 MB / 0.4994 GB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.82e-05/0.1457, allocations: 104.8 kB / 0.4995 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.178e-05/0.1457, allocations: 8.062 kB / 0.4995 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001604/0.1459, allocations: 19.92 kB / 0.4996 GB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.588e-05/0.146, allocations: 19.97 kB / 0.4996 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.486e-05/0.146, allocations: 15.98 kB / 0.4996 GB, free: 15.3 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001388/0.1461, allocations: 164.5 kB / 0.4998 GB, free: 15.14 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1461, allocations: 4 kB / 0.4998 GB, free: 15.14 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003465/0.1465, allocations: 71.69 kB / 0.4998 GB, free: 15.07 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.0001447/0.1466, allocations: 119.5 kB / 0.4999 GB, free: 14.94 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005212/0.1472, allocations: 259.6 kB / 0.5002 GB, free: 14.68 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.1472, allocations: 0.9375 kB / 0.5002 GB, free: 14.68 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002742/0.1475, allocations: 131.8 kB / 0.5003 GB, free: 14.55 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003514/0.1478, allocations: 40.42 kB / 0.5004 GB, free: 14.52 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009791/0.1488, allocations: 0.5834 MB / 0.5009 GB, free: 13.91 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003688/0.1492, allocations: 0.7764 MB / 0.5017 GB, free: 13.1 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001297/0.1493, allocations: 47.22 kB / 0.5017 GB, free: 13.05 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.92e-05/0.1494, allocations: 31.44 kB / 0.5018 GB, free: 13.02 MB / 398.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1494, allocations: 0 / 0.5018 GB, free: 13.02 MB / 398.1 MB Notification: Performance of Templates: time 0.00611/0.1555, allocations: 2.546 MB / 0.5042 GB, free: 10.48 MB / 398.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.makefile (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 & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Mean/Mean.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches