Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.conf.json 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.Distributions,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_Noise_Distributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.Distributions,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_Noise_Distributions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001573/0.001573, allocations: 180.9 kB / 16.39 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.31/1.31, allocations: 223.2 MB / 240.3 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009735/0.0009735, allocations: 94.14 kB / 291.5 MB, free: 10.89 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002798/0.0002798, allocations: 8 kB / 351.2 MB, free: 15.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2236/0.2239, allocations: 50.41 MB / 401.6 MB, free: 32.55 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1007/0.3247, allocations: 79.08 MB / 480.7 MB, free: 1.363 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000251/0.325, allocations: 79.89 kB / 480.7 MB, free: 1.285 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02171/0.3467, allocations: 7.649 MB / 488.4 MB, free: 9.613 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.3468, allocations: 0 / 488.4 MB, free: 9.613 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.326e-06/0.3468, allocations: 7.938 kB / 488.4 MB, free: 9.605 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0008239/0.3476, allocations: 0.5182 MB / 488.9 MB, free: 9.039 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.302e-05/0.3477, allocations: 8.031 kB / 488.9 MB, free: 9.031 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.123e-05/0.3477, allocations: 42.55 kB / 489 MB, free: 8.98 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000217/0.348, allocations: 35.7 kB / 489 MB, free: 8.945 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001936/0.3482, allocations: 208.6 kB / 489.2 MB, free: 8.699 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.105e-05/0.3482, allocations: 8 kB / 489.2 MB, free: 8.691 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.847e-05/0.3482, allocations: 12 kB / 489.2 MB, free: 8.68 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002928/0.3485, allocations: 135.9 kB / 489.4 MB, free: 8.535 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.144e-05/0.3486, allocations: 0 / 489.4 MB, free: 8.535 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.539e-05/0.3486, allocations: 7.938 kB / 489.4 MB, free: 8.527 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.3486, allocations: 0 / 489.4 MB, free: 8.527 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000211/0.3488, allocations: 79.94 kB / 489.4 MB, free: 8.449 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007858/0.3496, allocations: 0.5827 MB / 490 MB, free: 7.809 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003642/0.35, allocations: 160 kB / 490.2 MB, free: 7.625 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.277e-05/0.35, allocations: 0 / 490.2 MB, free: 7.625 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002989/0.3503, allocations: 161.9 kB / 490.3 MB, free: 7.445 MB / 362.7 MB Notification: Performance of pre-optimization done (n=17): time 1.362e-06/0.3503, allocations: 0 / 490.3 MB, free: 7.445 MB / 362.7 MB Notification: Performance of matching and sorting (n=17): time 0.0007234/0.3511, allocations: 427.7 kB / 490.8 MB, free: 6.984 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.323e-05/0.3511, allocations: 122.7 kB / 490.9 MB, free: 6.84 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001793/0.3513, allocations: 174.2 kB / 491 MB, free: 6.664 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.621e-05/0.3514, allocations: 45.69 kB / 491.1 MB, free: 6.613 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.896e-05/0.3515, allocations: 116.5 kB / 491.2 MB, free: 6.496 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.243e-05/0.3515, allocations: 43.67 kB / 491.2 MB, free: 6.453 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.376e-05/0.3516, allocations: 4 kB / 491.2 MB, free: 6.449 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001485/0.3517, allocations: 334.8 kB / 491.6 MB, free: 6.113 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002145/0.3519, allocations: 95.8 kB / 491.7 MB, free: 6.02 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002245/0.3522, allocations: 127.4 kB / 491.8 MB, free: 5.883 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002261/0.3524, allocations: 108.5 kB / 491.9 MB, free: 5.777 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.038e-06/0.3524, allocations: 3.953 kB / 491.9 MB, free: 5.773 MB / 362.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005401/0.353, allocations: 301.2 kB / 492.2 MB, free: 5.473 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.573e-05/0.353, allocations: 4 kB / 492.2 MB, free: 5.469 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.593e-05/0.353, allocations: 7.984 kB / 492.2 MB, free: 5.461 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.423e-05/0.353, allocations: 0 / 492.2 MB, free: 5.461 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001422/0.3532, allocations: 31.98 kB / 492.2 MB, free: 5.43 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.817e-06/0.3532, allocations: 3.938 kB / 492.2 MB, free: 5.426 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.269e-05/0.3533, allocations: 27.86 kB / 492.3 MB, free: 5.398 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.393e-05/0.3533, allocations: 16 kB / 492.3 MB, free: 5.383 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 33 ($whenCondition2,$whenCondition1,n,$PRE.uniformNoise.state[1],uniformNoise.state[1],$PRE.uniformNoise.state[2],uniformNoise.state[2],$PRE.uniformNoise.state[3],uniformNoise.state[3],$PRE.uniformNoise.state[4],uniformNoise.state[4],$PRE.uniformNoise.r,uniformNoise.r,$PRE.uniformNoise.r_raw,uniformNoise.r_raw,$PRE.truncatedNormalNoise.state[1],truncatedNormalNoise.state[1],$PRE.truncatedNormalNoise.state[2],truncatedNormalNoise.state[2],$PRE.truncatedNormalNoise.state[3],truncatedNormalNoise.state[3],$PRE.truncatedNormalNoise.state[4],truncatedNormalNoise.state[4],$PRE.truncatedNormalNoise.r,truncatedNormalNoise.r,$PRE.truncatedNormalNoise.r_raw,truncatedNormalNoise.r_raw,globalSeed.id_impure,uniformNoise.localSeed,uniformNoise.actualGlobalSeed,truncatedNormalNoise.localSeed,truncatedNormalNoise.actualGlobalSeed,globalSeed.seed) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 25 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001594/0.3535, allocations: 141.9 kB / 492.4 MB, free: 5.234 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.024e-05/0.3535, allocations: 23.75 kB / 492.4 MB, free: 5.211 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.78e-05/0.3536, allocations: 17.34 kB / 492.5 MB, free: 5.188 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.3536, allocations: 0 / 492.5 MB, free: 5.188 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.586e-06/0.3536, allocations: 11.98 kB / 492.5 MB, free: 5.176 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.98e-06/0.3536, allocations: 0 / 492.5 MB, free: 5.176 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002448/0.3539, allocations: 221.4 kB / 492.7 MB, free: 4.91 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.3539, allocations: 4 kB / 492.7 MB, free: 4.906 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.219e-05/0.3539, allocations: 15.94 kB / 492.7 MB, free: 4.891 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/0.354, allocations: 4 kB / 492.7 MB, free: 4.887 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.516e-05/0.354, allocations: 4 kB / 492.7 MB, free: 4.883 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.354, allocations: 3.984 kB / 492.7 MB, free: 4.879 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.354, allocations: 4 kB / 492.7 MB, free: 4.875 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004329/0.3544, allocations: 277 kB / 493 MB, free: 4.57 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.894e-05/0.3545, allocations: 100.8 kB / 493.1 MB, free: 4.453 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.577e-05/0.3545, allocations: 12 kB / 493.1 MB, free: 4.441 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.939e-05/0.3546, allocations: 7.984 kB / 493.1 MB, free: 4.434 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.996e-05/0.3547, allocations: 15.97 kB / 493.1 MB, free: 4.418 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.609e-05/0.3547, allocations: 8 kB / 493.1 MB, free: 4.41 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001103/0.3548, allocations: 137.2 kB / 493.3 MB, free: 4.277 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3548, allocations: 0 / 493.3 MB, free: 4.277 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000485/0.3553, allocations: 155.6 kB / 493.4 MB, free: 4.125 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition2,truncatedNormalNoise.state[1],truncatedNormalNoise.state[2],truncatedNormalNoise.state[3],truncatedNormalNoise.state[4],truncatedNormalNoise.r,truncatedNormalNoise.r_raw,$whenCondition1,uniformNoise.state[1],uniformNoise.state[2],uniformNoise.state[3],uniformNoise.state[4],uniformNoise.r,uniformNoise.r_raw,n) * Number of discrete states: 8 (uniformNoise.state[1],uniformNoise.state[2],uniformNoise.state[3],uniformNoise.state[4],truncatedNormalNoise.state[1],truncatedNormalNoise.state[2],truncatedNormalNoise.state[3],truncatedNormalNoise.state[4]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00168/0.357, allocations: 1.303 MB / 494.7 MB, free: 2.82 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004491/0.3575, allocations: 259.1 kB / 495 MB, free: 2.555 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.3575, allocations: 0 / 495 MB, free: 2.555 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001631/0.3577, allocations: 67.97 kB / 495 MB, free: 2.488 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001316/0.3578, allocations: 12.39 kB / 495.1 MB, free: 2.473 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009767/0.3588, allocations: 1.075 MB / 496.1 MB, free: 1.336 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002961/0.3591, allocations: 0.7239 MB / 496.9 MB, free: 0.5859 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.591e-05/0.3592, allocations: 25.39 kB / 496.9 MB, free: 0.5625 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.649e-05/0.3592, allocations: 43.42 kB / 496.9 MB, free: 0.5195 MB / 362.7 MB Notification: Performance of SimCode: time 2.2e-07/0.3593, allocations: 0 / 496.9 MB, free: 0.5195 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01847/0.3777, allocations: 5.224 MB / 0.4904 GB, free: 11.42 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001715/0.3779, allocations: 214.8 kB / 0.4906 GB, free: 11.18 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.765/2.143, allocations: 0 / 0.4906 GB, free: 11.18 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_Noise_Distributions_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_Noise_Distributions.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions_res.mat does not exist to compare? outputFormat=mat