Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_4_0_0_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.001078/0.001078, allocations: 111.1 kB / 17.78 MB, free: 5.281 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.001046/0.001046, allocations: 180.9 kB / 18.71 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.371/1.371, allocations: 222.9 MB / 242.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2037/0.2037, allocations: 44.18 MB / 336.8 MB, free: 2.684 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001395/0.001395, allocations: 59.91 kB / 470 MB, free: 13.69 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2993/0.3007, allocations: 60.83 MB / 0.5184 GB, free: 3.277 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.002896/0.3037, allocations: 2.233 MB / 0.5206 GB, free: 1.695 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001229/0.3049, allocations: 0.7722 MB / 0.5214 GB, free: 1.145 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001454/0.3051, allocations: 8.875 kB / 0.5214 GB, free: 1.141 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001461/0.3052, allocations: 34.55 kB / 0.5214 GB, free: 1.113 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002176/0.3055, allocations: 61.56 kB / 0.5215 GB, free: 1.066 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003139/0.3058, allocations: 156.9 kB / 0.5216 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003601/0.3062, allocations: 369.1 kB / 0.522 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002388/0.3064, allocations: 124.1 kB / 0.5221 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001853/0.3066, allocations: 146 kB / 0.5222 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002001/0.3068, allocations: 156.8 kB / 0.5224 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.858e-05/0.3069, allocations: 39.45 kB / 0.5224 GB, free: 0.5586 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.023e-05/0.307, allocations: 33.94 kB / 0.5224 GB, free: 0.5586 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.508e-05/0.307, allocations: 83.77 kB / 0.5225 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000149/0.3072, allocations: 166.4 kB / 0.5227 GB, free: 400 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004134/0.3076, allocations: 374.2 kB / 0.523 GB, free: 232 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.3076, allocations: 1.094 kB / 0.523 GB, free: 232 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3076, allocations: 3.938 kB / 0.523 GB, free: 228 kB / 382.1 MB Notification: Performance of Transformations before backend: time 7.524e-06/0.3077, allocations: 0 / 0.523 GB, free: 228 kB / 382.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.001102/0.3088, allocations: 0.6299 MB / 0.5236 GB, free: 15.7 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.609e-05/0.3088, allocations: 10.16 kB / 0.5237 GB, free: 15.7 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001183/0.3089, allocations: 80.97 kB / 0.5237 GB, free: 15.64 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.794e-05/0.309, allocations: 43.06 kB / 0.5238 GB, free: 15.62 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005301/0.3096, allocations: 349.2 kB / 0.5241 GB, free: 15.33 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.953e-05/0.3096, allocations: 23.86 kB / 0.5241 GB, free: 15.32 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.964e-05/0.3097, allocations: 35.91 kB / 0.5242 GB, free: 15.31 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000593/0.3103, allocations: 291.5 kB / 0.5244 GB, free: 15.19 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.766e-05/0.3103, allocations: 1.469 kB / 0.5244 GB, free: 15.19 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.72e-05/0.3103, allocations: 16.67 kB / 0.5245 GB, free: 15.18 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.416e-06/0.3104, allocations: 11.5 kB / 0.5245 GB, free: 15.17 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004703/0.3108, allocations: 198.9 kB / 0.5247 GB, free: 15.11 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001399/0.3122, allocations: 0.8385 MB / 0.5255 GB, free: 14.6 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004471/0.3127, allocations: 199.3 kB / 0.5257 GB, free: 14.52 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002213/0.3129, allocations: 94.77 kB / 0.5258 GB, free: 14.48 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.444e-05/0.313, allocations: 12.25 kB / 0.5258 GB, free: 14.47 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004477/0.3134, allocations: 224.9 kB / 0.526 GB, free: 14.38 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 1.994e-06/0.3134, allocations: 0 / 0.526 GB, free: 14.38 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008661/0.3143, allocations: 370.5 kB / 0.5263 GB, free: 14.24 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.754e-05/0.3144, allocations: 56.95 kB / 0.5264 GB, free: 14.18 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002418/0.3146, allocations: 231.9 kB / 0.5266 GB, free: 14.03 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.4e-05/0.3147, allocations: 36.61 kB / 0.5267 GB, free: 13.99 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001153/0.3148, allocations: 185.7 kB / 0.5268 GB, free: 13.82 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.176e-05/0.3149, allocations: 111.8 kB / 0.5269 GB, free: 13.72 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001092/0.315, allocations: 73.47 kB / 0.527 GB, free: 13.67 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001191/0.3151, allocations: 346.2 kB / 0.5273 GB, free: 13.33 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002032/0.3153, allocations: 88.84 kB / 0.5274 GB, free: 13.29 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002739/0.3156, allocations: 224.2 kB / 0.5276 GB, free: 13.07 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004939/0.3161, allocations: 348.4 kB / 0.528 GB, free: 12.79 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.06e-06/0.3161, allocations: 1.375 kB / 0.528 GB, free: 12.79 MB / 398.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006513/0.3168, allocations: 367.5 kB / 0.5283 GB, free: 12.59 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.997e-05/0.3168, allocations: 14.36 kB / 0.5283 GB, free: 12.59 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.019e-05/0.3168, allocations: 5.5 kB / 0.5283 GB, free: 12.59 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.859e-05/0.3169, allocations: 6.469 kB / 0.5283 GB, free: 12.59 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002974/0.3172, allocations: 74.47 kB / 0.5284 GB, free: 12.57 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.276e-05/0.3172, allocations: 10.92 kB / 0.5284 GB, free: 12.56 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001949/0.3174, allocations: 35.59 kB / 0.5285 GB, free: 12.54 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.852e-05/0.3174, allocations: 25.64 kB / 0.5285 GB, free: 12.53 MB / 398.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.0001764/0.3176, allocations: 168.2 kB / 0.5286 GB, free: 12.38 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.748e-05/0.3177, allocations: 29 kB / 0.5287 GB, free: 12.36 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006445/0.3183, allocations: 324.4 kB / 0.529 GB, free: 12.18 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.12e-06/0.3183, allocations: 2.562 kB / 0.529 GB, free: 12.18 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.3183, allocations: 0 / 0.529 GB, free: 12.18 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.3184, allocations: 5.062 kB / 0.529 GB, free: 12.17 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009492/0.3193, allocations: 0.7233 MB / 0.5297 GB, free: 11.61 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.3193, allocations: 1.094 kB / 0.5297 GB, free: 11.61 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00026/0.3196, allocations: 47.22 kB / 0.5297 GB, free: 11.6 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.513e-06/0.3196, allocations: 1.844 kB / 0.5297 GB, free: 11.6 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.86e-05/0.3196, allocations: 15.58 kB / 0.5298 GB, free: 11.59 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.3197, allocations: 5.625 kB / 0.5298 GB, free: 11.58 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.3197, allocations: 3.938 kB / 0.5298 GB, free: 11.58 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000863/0.3205, allocations: 0.5179 MB / 0.5303 GB, free: 11.25 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.687e-05/0.3206, allocations: 109.2 kB / 0.5304 GB, free: 11.14 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.181e-05/0.3207, allocations: 11.47 kB / 0.5304 GB, free: 11.13 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001951/0.3209, allocations: 17.27 kB / 0.5304 GB, free: 11.12 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.073e-05/0.3209, allocations: 30.84 kB / 0.5304 GB, free: 11.1 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.58e-05/0.321, allocations: 12.77 kB / 0.5304 GB, free: 11.09 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001508/0.3211, allocations: 168.9 kB / 0.5306 GB, free: 10.97 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3211, allocations: 0 / 0.5306 GB, free: 10.97 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003884/0.3215, allocations: 69.44 kB / 0.5307 GB, free: 10.95 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_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.001134/0.3227, allocations: 1.07 MB / 0.5317 GB, free: 10.09 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005475/0.3232, allocations: 258.5 kB / 0.532 GB, free: 9.984 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.3233, allocations: 1.25 kB / 0.532 GB, free: 9.984 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002479/0.3235, allocations: 127.5 kB / 0.5321 GB, free: 9.934 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003668/0.3239, allocations: 39.95 kB / 0.5321 GB, free: 9.91 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003645/0.3275, allocations: 3.1 MB / 0.5352 GB, free: 7.516 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003322/0.3279, allocations: 0.7886 MB / 0.5359 GB, free: 6.77 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001592/0.3281, allocations: 45.78 kB / 0.536 GB, free: 6.746 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001628/0.3282, allocations: 110.5 kB / 0.5361 GB, free: 6.66 MB / 398.1 MB Notification: Performance of SimCode: time 1.773e-06/0.3282, allocations: 112 / 0.5361 GB, free: 6.66 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02213/0.3504, allocations: 5.524 MB / 0.5415 GB, free: 3.895 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.455/8.806, allocations: 12.94 kB / 0.5415 GB, free: 3.883 MB / 398.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_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_4_0_0_ModelicaTest_Blocks_Mean.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Blocks.Mean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches