Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.NoiseExamples.Distributions.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: translateModel(Modelica.Blocks.Examples.NoiseExamples.Distributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|uniformNoise_y|truncatedNormalNoise_y",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.NoiseExamples.Distributions") translateModel(Modelica.Blocks.Examples.NoiseExamples.Distributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|uniformNoise_y|truncatedNormalNoise_y",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.NoiseExamples.Distributions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00137/0.00137, allocations: 114.4 kB / 17.74 MB, free: 5.355 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.001422/0.001422, allocations: 183.1 kB / 18.66 MB, free: 4.438 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.737/1.737, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001435/0.001435, allocations: 51.94 kB / 328.5 MB, free: 3.309 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.123/0.1245, allocations: 46.62 MB / 375.1 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.NoiseExamples.Distributions): time 0.004699/0.1292, allocations: 1.522 MB / 376.7 MB, free: 3.051 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003194/0.1325, allocations: 1.458 MB / 378.1 MB, free: 1.578 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001978/0.1327, allocations: 4 kB / 378.1 MB, free: 1.574 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002084/0.133, allocations: 15.81 kB / 378.1 MB, free: 1.559 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002213/0.1332, allocations: 19.78 kB / 378.2 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001928/0.1352, allocations: 394.8 kB / 378.5 MB, free: 1.152 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003226/0.1355, allocations: 135.6 kB / 378.7 MB, free: 1.02 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001039/0.1356, allocations: 9.5 kB / 378.7 MB, free: 1.008 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001358/0.1358, allocations: 55.77 kB / 378.7 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001313/0.1359, allocations: 71.61 kB / 378.8 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.691e-05/0.136, allocations: 12 kB / 378.8 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00107/0.1371, allocations: 411.3 kB / 379.2 MB, free: 480 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001238/0.1372, allocations: 43.83 kB / 379.3 MB, free: 436 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001123/0.1373, allocations: 67.59 kB / 379.3 MB, free: 368 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.3028/0.4401, allocations: 405.2 kB / 379.7 MB, free: 10.11 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.016e-05/0.4402, allocations: 2.531 kB / 379.7 MB, free: 10.11 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.928e-06/0.4402, allocations: 0.8438 kB / 379.7 MB, free: 10.11 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.716e-05/0.4402, allocations: 0 / 379.7 MB, free: 10.11 MB / 318.1 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.001176/0.4414, allocations: 0.5298 MB / 380.3 MB, free: 9.664 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.1e-05/0.4414, allocations: 9.656 kB / 380.3 MB, free: 9.664 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002672/0.4417, allocations: 30.33 kB / 380.3 MB, free: 9.656 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001746/0.4419, allocations: 207.6 kB / 380.5 MB, free: 9.445 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.339e-05/0.4419, allocations: 5.297 kB / 380.5 MB, free: 9.445 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.273e-05/0.442, allocations: 9.5 kB / 380.5 MB, free: 9.445 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002952/0.4423, allocations: 126.5 kB / 380.6 MB, free: 9.391 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.156e-05/0.4423, allocations: 6.781 kB / 380.7 MB, free: 9.387 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.505e-05/0.4423, allocations: 3.812 kB / 380.7 MB, free: 9.387 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.134e-06/0.4423, allocations: 1.281 kB / 380.7 MB, free: 9.387 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002165/0.4426, allocations: 63.09 kB / 380.7 MB, free: 9.387 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008037/0.4434, allocations: 0.5532 MB / 381.3 MB, free: 8.949 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003731/0.4437, allocations: 151.6 kB / 381.4 MB, free: 8.879 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001388/0.4439, allocations: 63.77 kB / 381.5 MB, free: 8.855 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.464e-05/0.4439, allocations: 12.14 kB / 381.5 MB, free: 8.855 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004144/0.4443, allocations: 144.3 kB / 381.6 MB, free: 8.785 MB / 318.1 MB Notification: Performance of pre-optimization done (n=17): time 1.292e-06/0.4444, allocations: 0 / 381.6 MB, free: 8.785 MB / 318.1 MB Notification: Performance of matching and sorting (n=17): time 0.0006767/0.445, allocations: 254.4 kB / 381.9 MB, free: 8.742 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.162e-05/0.4451, allocations: 117.4 kB / 382 MB, free: 8.617 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002165/0.4454, allocations: 196.6 kB / 382.2 MB, free: 8.512 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.964e-05/0.4454, allocations: 49.23 kB / 382.2 MB, free: 8.48 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.858e-05/0.4455, allocations: 111 kB / 382.3 MB, free: 8.395 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.612e-05/0.4455, allocations: 40.95 kB / 382.4 MB, free: 8.375 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001004/0.4457, allocations: 62.47 kB / 382.4 MB, free: 8.355 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.846e-05/0.4458, allocations: 341.5 kB / 382.8 MB, free: 8.035 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002765/0.446, allocations: 99.98 kB / 382.9 MB, free: 8.035 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002968/0.4463, allocations: 142.4 kB / 383 MB, free: 7.996 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005089/0.4469, allocations: 232.8 kB / 383.2 MB, free: 7.953 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.548e-06/0.4469, allocations: 1.375 kB / 383.2 MB, free: 7.953 MB / 318.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0007221/0.4476, allocations: 303.5 kB / 383.5 MB, free: 7.91 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.816e-05/0.4476, allocations: 8.781 kB / 383.6 MB, free: 7.91 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.088e-05/0.4477, allocations: 1.375 kB / 383.6 MB, free: 7.91 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.732e-05/0.4477, allocations: 3.266 kB / 383.6 MB, free: 7.91 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001885/0.4479, allocations: 38.64 kB / 383.6 MB, free: 7.906 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.634e-05/0.4479, allocations: 2.953 kB / 383.6 MB, free: 7.906 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.447e-05/0.448, allocations: 29.67 kB / 383.6 MB, free: 7.895 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.656e-05/0.448, allocations: 9.078 kB / 383.6 MB, free: 7.895 MB / 318.1 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,globalSeed.seed,truncatedNormalNoise.actualGlobalSeed,truncatedNormalNoise.localSeed,uniformNoise.actualGlobalSeed,uniformNoise.localSeed,globalSeed.id_impure,uniformNoise.r_raw,$PRE.uniformNoise.r_raw,uniformNoise.r,$PRE.uniformNoise.r,uniformNoise.state[4],$PRE.uniformNoise.state[4],uniformNoise.state[3],$PRE.uniformNoise.state[3],uniformNoise.state[2],$PRE.uniformNoise.state[2],uniformNoise.state[1],$PRE.uniformNoise.state[1],truncatedNormalNoise.r_raw,$PRE.truncatedNormalNoise.r_raw,truncatedNormalNoise.r,$PRE.truncatedNormalNoise.r,truncatedNormalNoise.state[4],$PRE.truncatedNormalNoise.state[4],truncatedNormalNoise.state[3],$PRE.truncatedNormalNoise.state[3],truncatedNormalNoise.state[2],$PRE.truncatedNormalNoise.state[2],truncatedNormalNoise.state[1],$PRE.truncatedNormalNoise.state[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 27 * Array equations: 2 * 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.0001668/0.4482, allocations: 155.4 kB / 383.8 MB, free: 7.77 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.216e-05/0.4483, allocations: 18.84 kB / 383.8 MB, free: 7.762 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.287e-05/0.4483, allocations: 19.14 kB / 383.8 MB, free: 7.75 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.721e-06/0.4483, allocations: 5.172 kB / 383.8 MB, free: 7.75 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.927e-06/0.4483, allocations: 1.562 kB / 383.8 MB, free: 7.75 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.4483, allocations: 0.6562 kB / 383.8 MB, free: 7.75 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002354/0.4486, allocations: 221 kB / 384 MB, free: 7.555 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.4486, allocations: 1.344 kB / 384 MB, free: 7.555 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.238e-05/0.4487, allocations: 10.75 kB / 384.1 MB, free: 7.555 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/0.4487, allocations: 0.875 kB / 384.1 MB, free: 7.555 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.878e-05/0.4487, allocations: 3.234 kB / 384.1 MB, free: 7.555 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.025e-06/0.4487, allocations: 1.688 kB / 384.1 MB, free: 7.555 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.948e-06/0.4487, allocations: 5.422 kB / 384.1 MB, free: 7.551 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004606/0.4492, allocations: 240.8 kB / 384.3 MB, free: 7.457 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.49e-05/0.4492, allocations: 98.14 kB / 384.4 MB, free: 7.352 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.034e-05/0.4493, allocations: 13.98 kB / 384.4 MB, free: 7.352 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.604e-05/0.4494, allocations: 9.344 kB / 384.4 MB, free: 7.348 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.802e-05/0.4495, allocations: 15.33 kB / 384.4 MB, free: 7.348 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.333e-05/0.4495, allocations: 4.719 kB / 384.4 MB, free: 7.348 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001423/0.4496, allocations: 143.5 kB / 384.6 MB, free: 7.27 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.4496, allocations: 0 / 384.6 MB, free: 7.27 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006184/0.4503, allocations: 121.3 kB / 384.7 MB, free: 7.25 MB / 318.1 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,uniformNoise.state[1],uniformNoise.state[2],uniformNoise.state[3],uniformNoise.state[4],uniformNoise.r,uniformNoise.r_raw,$whenCondition1,truncatedNormalNoise.state[1],truncatedNormalNoise.state[2],truncatedNormalNoise.state[3],truncatedNormalNoise.state[4],truncatedNormalNoise.r,truncatedNormalNoise.r_raw,n) * Number of discrete states: 8 (truncatedNormalNoise.state[1],truncatedNormalNoise.state[2],truncatedNormalNoise.state[3],truncatedNormalNoise.state[4],uniformNoise.state[1],uniformNoise.state[2],uniformNoise.state[3],uniformNoise.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 (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.0007933/0.4511, allocations: 365.2 kB / 385.1 MB, free: 7.082 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004645/0.4515, allocations: 194.9 kB / 385.2 MB, free: 7.082 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.4515, allocations: 1.156 kB / 385.2 MB, free: 7.082 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001665/0.4517, allocations: 63.2 kB / 385.3 MB, free: 7.082 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001837/0.4519, allocations: 12.73 kB / 385.3 MB, free: 7.082 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005186/0.4524, allocations: 289.5 kB / 385.6 MB, free: 6.898 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001828/0.4526, allocations: 0.7177 MB / 386.3 MB, free: 6.199 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 7.689e-05/0.4527, allocations: 21.11 kB / 386.3 MB, free: 6.199 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.585e-05/0.4528, allocations: 21.55 kB / 386.4 MB, free: 6.191 MB / 318.1 MB Notification: Performance of SimCode: time 2.31e-07/0.4528, allocations: 4 kB / 386.4 MB, free: 6.188 MB / 318.1 MB Notification: Performance of Templates: time 0.009318/0.4621, allocations: 3.639 MB / 390 MB, free: 5.867 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.NoiseExamples.Distributions.makefile (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.NoiseExamples.Distributions.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.NoiseExamples.Distributions.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.NoiseExamples.Distributions.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.NoiseExamples.Distributions.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.NoiseExamples.Distributions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.NoiseExamples.Distributions.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.NoiseExamples.Distributions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/NoiseExamples/Distributions/Distributions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Blocks.Examples.NoiseExamples.Distributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches