Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Blocks.Examples.NoiseExamples.ImpureGenerator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.NoiseExamples.ImpureGenerator,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Blocks_Examples_NoiseExamples_ImpureGenerator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.NoiseExamples.ImpureGenerator,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Blocks_Examples_NoiseExamples_ImpureGenerator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008823/0.0008825, allocations: 175 kB / 16.72 MB, free: 5.086 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.342/1.342, allocations: 205.4 MB / 222.9 MB, free: 9.035 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007286/0.0007289, allocations: 93.48 kB / 271.2 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003003/0.0003003, allocations: 8 kB / 327.6 MB, free: 15.8 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2223/0.2226, allocations: 47.58 MB / 375.2 MB, free: 45.44 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.NoiseExamples.ImpureGenerator): time 0.001235/0.2239, allocations: 1.071 MB / 376.3 MB, free: 44.59 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005946/0.2245, allocations: 340.1 kB / 376.6 MB, free: 44.34 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.112e-05/0.2246, allocations: 0 / 376.6 MB, free: 44.34 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.782e-05/0.2246, allocations: 3.938 kB / 376.6 MB, free: 44.33 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.67e-05/0.2246, allocations: 5.125 kB / 376.6 MB, free: 44.33 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003775/0.225, allocations: 61.34 kB / 376.7 MB, free: 44.29 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.989e-05/0.2251, allocations: 22.39 kB / 376.7 MB, free: 44.27 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.482e-05/0.2251, allocations: 10.12 kB / 376.7 MB, free: 44.27 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.445e-05/0.2252, allocations: 10.94 kB / 376.7 MB, free: 44.26 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.263e-05/0.2252, allocations: 2.188 kB / 376.7 MB, free: 44.26 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.869e-06/0.2252, allocations: 1 kB / 376.7 MB, free: 44.26 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001564/0.2254, allocations: 80.88 kB / 376.8 MB, free: 44.21 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.515e-05/0.2254, allocations: 9.125 kB / 376.8 MB, free: 44.21 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.316e-05/0.2254, allocations: 31.7 kB / 376.8 MB, free: 44.17 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001178/0.2256, allocations: 66.88 kB / 376.9 MB, free: 44.13 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.2256, allocations: 0 / 376.9 MB, free: 44.13 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.372e-06/0.2256, allocations: 0 / 376.9 MB, free: 44.13 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.787e-06/0.2256, allocations: 0 / 376.9 MB, free: 44.13 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0003327/0.2259, allocations: 337.7 kB / 377.2 MB, free: 43.76 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.111e-05/0.226, allocations: 10.22 kB / 377.2 MB, free: 43.76 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.914e-05/0.226, allocations: 34.75 kB / 377.3 MB, free: 43.71 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.28e-05/0.2261, allocations: 6.969 kB / 377.3 MB, free: 43.71 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.325e-05/0.2261, allocations: 171.6 kB / 377.4 MB, free: 43.51 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.43e-05/0.2262, allocations: 1.375 kB / 377.4 MB, free: 43.51 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.286e-05/0.2262, allocations: 6.469 kB / 377.4 MB, free: 43.5 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.291e-05/0.2263, allocations: 34.95 kB / 377.5 MB, free: 43.47 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.418e-06/0.2263, allocations: 7.922 kB / 377.5 MB, free: 43.46 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.977e-06/0.2263, allocations: 0 / 377.5 MB, free: 43.46 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.48e-06/0.2263, allocations: 5.25 kB / 377.5 MB, free: 43.46 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.092e-05/0.2263, allocations: 2.875 kB / 377.5 MB, free: 43.46 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003155/0.2267, allocations: 255.8 kB / 377.7 MB, free: 43.17 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.45e-05/0.2267, allocations: 32.39 kB / 377.8 MB, free: 43.13 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.09e-05/0.2267, allocations: 13.08 kB / 377.8 MB, free: 43.12 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.335e-06/0.2268, allocations: 0 / 377.8 MB, free: 43.12 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001066/0.2269, allocations: 51.36 kB / 377.8 MB, free: 43.07 MB / 298.7 MB Notification: Performance of pre-optimization done (n=3): time 1.242e-06/0.2269, allocations: 4 kB / 377.8 MB, free: 43.06 MB / 298.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001447/0.227, allocations: 57.66 kB / 377.9 MB, free: 43.02 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.319e-05/0.2271, allocations: 52.47 kB / 378 MB, free: 42.95 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.666e-05/0.2271, allocations: 105.4 kB / 378.1 MB, free: 42.85 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.945e-06/0.2271, allocations: 25.7 kB / 378.1 MB, free: 42.82 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.497e-05/0.2272, allocations: 94.44 kB / 378.2 MB, free: 42.72 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.173e-06/0.2272, allocations: 5.125 kB / 378.2 MB, free: 42.72 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.787e-06/0.2272, allocations: 1.031 kB / 378.2 MB, free: 42.72 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.308e-05/0.2272, allocations: 320 kB / 378.5 MB, free: 42.4 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.027e-05/0.2273, allocations: 7.203 kB / 378.5 MB, free: 42.39 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.733e-05/0.2273, allocations: 18.94 kB / 378.5 MB, free: 42.38 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.767e-05/0.2273, allocations: 31.25 kB / 378.5 MB, free: 42.35 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.193e-06/0.2273, allocations: 0 / 378.5 MB, free: 42.35 MB / 298.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 7.437e-05/0.2274, allocations: 62.64 kB / 378.6 MB, free: 42.3 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.501e-05/0.2274, allocations: 7.469 kB / 378.6 MB, free: 42.3 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.2275, allocations: 5.438 kB / 378.6 MB, free: 42.29 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.24e-05/0.2275, allocations: 0 / 378.6 MB, free: 42.29 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.444e-05/0.2275, allocations: 9.656 kB / 378.6 MB, free: 42.29 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.079e-06/0.2275, allocations: 1.281 kB / 378.6 MB, free: 42.29 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.596e-05/0.2276, allocations: 1.375 kB / 378.6 MB, free: 42.29 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.424e-06/0.2276, allocations: 1.516 kB / 378.6 MB, free: 42.29 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,impureRandom.y,globalSeed.seed,globalSeed.id_impure) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.944e-05/0.2276, allocations: 118.2 kB / 378.7 MB, free: 42.17 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.947e-06/0.2276, allocations: 9.047 kB / 378.8 MB, free: 42.16 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.907e-05/0.2277, allocations: 9.266 kB / 378.8 MB, free: 42.15 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.2277, allocations: 4 kB / 378.8 MB, free: 42.15 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.2277, allocations: 0 / 378.8 MB, free: 42.15 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.355e-06/0.2277, allocations: 1.438 kB / 378.8 MB, free: 42.15 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001542/0.2279, allocations: 288 kB / 379.1 MB, free: 41.83 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-06/0.2279, allocations: 1.156 kB / 379.1 MB, free: 41.83 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.139e-05/0.2279, allocations: 1.094 kB / 379.1 MB, free: 41.83 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.407e-06/0.2279, allocations: 4.953 kB / 379.1 MB, free: 41.82 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.35e-06/0.2279, allocations: 0 / 379.1 MB, free: 41.82 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.2279, allocations: 1.688 kB / 379.1 MB, free: 41.82 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.2279, allocations: 4 kB / 379.1 MB, free: 41.82 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.498e-05/0.228, allocations: 142 kB / 379.2 MB, free: 41.68 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.757e-05/0.228, allocations: 82.58 kB / 379.3 MB, free: 41.58 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.192e-05/0.228, allocations: 1.094 kB / 379.3 MB, free: 41.58 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.378e-05/0.2281, allocations: 7.938 kB / 379.3 MB, free: 41.57 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.309e-05/0.2281, allocations: 6.297 kB / 379.3 MB, free: 41.57 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.798e-06/0.2281, allocations: 0.9375 kB / 379.3 MB, free: 41.57 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.228e-05/0.2282, allocations: 84.25 kB / 379.4 MB, free: 41.49 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2282, allocations: 4 kB / 379.4 MB, free: 41.49 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000269/0.2284, allocations: 30.42 kB / 379.4 MB, free: 41.48 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition1,impureRandom.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0004793/0.2289, allocations: 0.7674 MB / 380.2 MB, free: 40.76 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 7.843e-05/0.229, allocations: 25.45 kB / 380.2 MB, free: 40.75 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.229, allocations: 0 / 380.2 MB, free: 40.75 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.564e-05/0.229, allocations: 10.28 kB / 380.2 MB, free: 40.75 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001799/0.2292, allocations: 5 kB / 380.2 MB, free: 40.74 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005113/0.2297, allocations: 421.8 kB / 380.6 MB, free: 40.33 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001133/0.2299, allocations: 0.6789 MB / 381.3 MB, free: 39.63 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.398e-05/0.2299, allocations: 12.59 kB / 381.3 MB, free: 39.62 MB / 298.7 MB Notification: Performance of SimCode: time 1.8e-07/0.2299, allocations: 0 / 381.3 MB, free: 39.62 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.99/3.22, allocations: 1.383 MB / 382.7 MB, free: 38.91 MB / 298.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.NoiseExamples.ImpureGenerator.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.NoiseExamples.ImpureGenerator.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.NoiseExamples.ImpureGenerator.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.NoiseExamples.ImpureGenerator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Blocks.Examples.NoiseExamples.ImpureGenerator_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Blocks_Examples_NoiseExamples_ImpureGenerator_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Blocks_Examples_NoiseExamples_ImpureGenerator.fmu > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.NoiseExamples.ImpureGenerator.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Blocks.Examples.NoiseExamples.ImpureGenerator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/NoiseExamples/ImpureGenerator/ImpureGenerator.csv","../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.NoiseExamples.ImpureGenerator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,impureRandom_y Variables in the result:globalSeed.enableNoise,globalSeed.fixedSeed,globalSeed.id_impure,globalSeed.seed,globalSeed.useAutomaticSeed,impureRandom.samplePeriod,impureRandom.y,impureRandom_y,time