Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.NoiseExamples.Densities.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) 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(Modelica.Blocks.Examples.NoiseExamples.Densities,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_NoiseExamples_Densities",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.NoiseExamples.Densities,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_NoiseExamples_Densities",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.001075/0.001075, allocations: 104.9 kB / 17.58 MB, free: 5.406 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.001163/0.001163, allocations: 191.9 kB / 18.5 MB, free: 4.516 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.297/1.297, allocations: 205.1 MB / 224.4 MB, free: 12.28 MB / 190.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.001179/0.00118, allocations: 52.16 kB / 280.7 MB, free: 3.09 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07609/0.07728, allocations: 46.63 MB / 327.4 MB, free: 4.379 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.NoiseExamples.Densities): time 0.003/0.08031, allocations: 1.566 MB / 328.9 MB, free: 2.793 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009546/0.08129, allocations: 0.5657 MB / 329.5 MB, free: 2.219 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.343e-05/0.0814, allocations: 4 kB / 329.5 MB, free: 2.215 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 3.651e-05/0.08144, allocations: 7.922 kB / 329.5 MB, free: 2.207 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 7.285e-05/0.08152, allocations: 7.875 kB / 329.5 MB, free: 2.199 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002473/0.08177, allocations: 47.84 kB / 329.6 MB, free: 2.152 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 8.6e-05/0.08187, allocations: 51.84 kB / 329.6 MB, free: 2.102 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001173/0.08199, allocations: 19.98 kB / 329.6 MB, free: 2.082 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.422e-05/0.08203, allocations: 19.92 kB / 329.7 MB, free: 2.062 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.212e-05/0.08209, allocations: 23.86 kB / 329.7 MB, free: 2.039 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 1.54e-05/0.08211, allocations: 8 kB / 329.7 MB, free: 2.031 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001735/0.08229, allocations: 51.88 kB / 329.8 MB, free: 1.98 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 1.933e-05/0.08232, allocations: 11.94 kB / 329.8 MB, free: 1.969 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 3.534e-05/0.08236, allocations: 27.8 kB / 329.8 MB, free: 1.941 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001496/0.08251, allocations: 79.77 kB / 329.9 MB, free: 1.863 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.08253, allocations: 4 kB / 329.9 MB, free: 1.859 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.08253, allocations: 0 / 329.9 MB, free: 1.859 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.286e-06/0.08255, allocations: 0 / 329.9 MB, free: 1.859 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0004158/0.08297, allocations: 379.4 kB / 330.2 MB, free: 1.441 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.536e-05/0.08301, allocations: 8.031 kB / 330.2 MB, free: 1.434 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.739e-05/0.08308, allocations: 46.73 kB / 330.3 MB, free: 1.379 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003444/0.08343, allocations: 40.8 kB / 330.3 MB, free: 1.34 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001022/0.08354, allocations: 180.2 kB / 330.5 MB, free: 1.125 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.309e-05/0.08357, allocations: 384 / 330.5 MB, free: 1.125 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.618e-05/0.08359, allocations: 12.38 kB / 330.5 MB, free: 1.113 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002186/0.08381, allocations: 98.5 kB / 330.6 MB, free: 1.012 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.356e-06/0.08383, allocations: 0 / 330.6 MB, free: 1.012 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.773e-05/0.08386, allocations: 15.98 kB / 330.6 MB, free: 0.9961 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.18e-06/0.08387, allocations: 3.938 kB / 330.6 MB, free: 0.9922 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002036/0.08407, allocations: 63.95 kB / 330.7 MB, free: 0.9297 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005441/0.08463, allocations: 372.6 kB / 331.1 MB, free: 0.5156 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001917/0.08483, allocations: 74.47 kB / 331.1 MB, free: 444 kB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.683e-05/0.08494, allocations: 28.97 kB / 331.2 MB, free: 412 kB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.739e-05/0.08496, allocations: 4 kB / 331.2 MB, free: 408 kB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.348e-05/0.08499, allocations: 34.55 kB / 331.2 MB, free: 364 kB / 270.1 MB Notification: Performance of pre-optimization done (n=5): time 1.453e-06/0.085, allocations: 4 kB / 331.2 MB, free: 360 kB / 270.1 MB Notification: Performance of matching and sorting (n=5): time 0.0003904/0.08539, allocations: 113.6 kB / 331.3 MB, free: 240 kB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.71e-05/0.08544, allocations: 55.41 kB / 331.4 MB, free: 172 kB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.781e-05/0.08554, allocations: 122.1 kB / 331.5 MB, free: 40 kB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 1.575e-05/0.08556, allocations: 29.7 kB / 331.5 MB, free: 4 kB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.99e-05/0.08562, allocations: 99.94 kB / 331.6 MB, free: 15.9 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.444e-05/0.08566, allocations: 23.75 kB / 331.6 MB, free: 15.88 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.113e-05/0.0857, allocations: 21.58 kB / 331.7 MB, free: 15.85 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 9.82e-05/0.08581, allocations: 318.8 kB / 332 MB, free: 15.53 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.727e-05/0.08591, allocations: 27.97 kB / 332 MB, free: 15.5 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.303e-05/0.086, allocations: 27.98 kB / 332 MB, free: 15.48 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001746/0.08618, allocations: 60.81 kB / 332.1 MB, free: 15.41 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.08619, allocations: 384 / 332.1 MB, free: 15.41 MB / 286.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002347/0.08643, allocations: 93.66 kB / 332.2 MB, free: 15.32 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.245e-05/0.08645, allocations: 4 kB / 332.2 MB, free: 15.31 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.08646, allocations: 0 / 332.2 MB, free: 15.31 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.327e-05/0.08648, allocations: 3.938 kB / 332.2 MB, free: 15.31 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000132/0.08662, allocations: 19.92 kB / 332.2 MB, free: 15.29 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.402e-06/0.08664, allocations: 8 kB / 332.2 MB, free: 15.28 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.806e-05/0.08672, allocations: 11.89 kB / 332.2 MB, free: 15.27 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.568e-06/0.08674, allocations: 4 kB / 332.2 MB, free: 15.27 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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 7.76e-05/0.08682, allocations: 109.8 kB / 332.3 MB, free: 15.15 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.306e-05/0.08686, allocations: 7.984 kB / 332.3 MB, free: 15.14 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002878/0.08715, allocations: 113.5 kB / 332.5 MB, free: 15.02 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.514e-06/0.08716, allocations: 0 / 332.5 MB, free: 15.02 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.08717, allocations: 0 / 332.5 MB, free: 15.02 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.985e-06/0.08718, allocations: 0 / 332.5 MB, free: 15.02 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001904/0.08737, allocations: 201.5 kB / 332.7 MB, free: 14.78 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.08738, allocations: 3.938 kB / 332.7 MB, free: 14.77 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001091/0.0875, allocations: 27.91 kB / 332.7 MB, free: 14.75 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.08751, allocations: 0 / 332.7 MB, free: 14.75 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.086e-05/0.08752, allocations: 3.938 kB / 332.7 MB, free: 14.74 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.08753, allocations: 0 / 332.7 MB, free: 14.74 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.08754, allocations: 4 kB / 332.7 MB, free: 14.74 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002779/0.08782, allocations: 187.5 kB / 332.9 MB, free: 14.54 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.299e-05/0.08787, allocations: 85 kB / 333 MB, free: 14.44 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.829e-05/0.0879, allocations: 3.938 kB / 333 MB, free: 14.43 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001003/0.088, allocations: 8 kB / 333 MB, free: 14.43 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.636e-05/0.08805, allocations: 7.984 kB / 333 MB, free: 14.42 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.054e-06/0.08806, allocations: 8.188 kB / 333 MB, free: 14.41 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.457e-05/0.08812, allocations: 91.77 kB / 333.1 MB, free: 14.32 MB / 286.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.08813, allocations: 4 kB / 333.1 MB, free: 14.32 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002379/0.08837, allocations: 11.91 kB / 333.1 MB, free: 14.3 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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 Backend phase and start with SimCode phase: time 0.0006586/0.08904, allocations: 0.7671 MB / 333.9 MB, free: 13.51 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002494/0.0893, allocations: 71.83 kB / 333.9 MB, free: 13.44 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.08931, allocations: 0 / 333.9 MB, free: 13.44 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001019/0.08942, allocations: 35.97 kB / 334 MB, free: 13.41 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003178/0.08974, allocations: 15.06 kB / 334 MB, free: 13.39 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001711/0.09147, allocations: 1.484 MB / 335.5 MB, free: 11.83 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002481/0.09173, allocations: 0.6924 MB / 336.2 MB, free: 11.11 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 5.655e-05/0.0918, allocations: 11.98 kB / 336.2 MB, free: 11.1 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.629e-05/0.09186, allocations: 23.42 kB / 336.2 MB, free: 11.08 MB / 286.1 MB Notification: Performance of SimCode: time 2.6e-07/0.09187, allocations: 4 kB / 336.2 MB, free: 11.07 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01784/0.1097, allocations: 1.903 MB / 338.1 MB, free: 9.109 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.322/7.431, allocations: 11.86 kB / 338.1 MB, free: 9.098 MB / 286.1 MB (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.NoiseExamples.Densities.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.NoiseExamples.Densities.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.NoiseExamples.Densities.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.NoiseExamples.Densities.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Blocks.Examples.NoiseExamples.Densities_res.csv --start-time 0 --stop-time 20 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.02 Modelica_3_2_3_Modelica_Blocks_Examples_NoiseExamples_Densities.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.NoiseExamples.Densities.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.NoiseExamples.Densities_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/NoiseExamples/Densities/Densities.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Blocks.Examples.NoiseExamples.Densities.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches