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: "" <> buildModelFMU(Modelica.Blocks.Examples.NoiseExamples.Distributions,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_NoiseExamples_Distributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.NoiseExamples.Distributions,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_NoiseExamples_Distributions",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.001605/0.001605, allocations: 102.6 kB / 17.72 MB, free: 5.371 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.001818/0.001818, allocations: 187.1 kB / 18.66 MB, free: 4.445 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.501/1.501, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001361/0.001362, allocations: 51.92 kB / 328 MB, free: 3.824 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09651/0.09788, allocations: 46.63 MB / 374.6 MB, free: 5.086 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.NoiseExamples.Distributions): time 0.0028/0.1007, allocations: 1.522 MB / 376.2 MB, free: 3.555 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002536/0.1033, allocations: 1.458 MB / 377.6 MB, free: 2.082 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001168/0.1034, allocations: 0 / 377.6 MB, free: 2.082 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000135/0.1036, allocations: 15.8 kB / 377.6 MB, free: 2.066 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001356/0.1037, allocations: 27.78 kB / 377.7 MB, free: 2.039 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001409/0.1052, allocations: 394.8 kB / 378.1 MB, free: 1.652 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002322/0.1054, allocations: 127.6 kB / 378.2 MB, free: 1.527 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.265e-05/0.1055, allocations: 9.781 kB / 378.2 MB, free: 1.516 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001082/0.1056, allocations: 59.77 kB / 378.2 MB, free: 1.457 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001023/0.1057, allocations: 71.61 kB / 378.3 MB, free: 1.387 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.185e-05/0.1058, allocations: 12 kB / 378.3 MB, free: 1.375 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008515/0.1066, allocations: 411.3 kB / 378.7 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.263e-05/0.1067, allocations: 43.83 kB / 378.8 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.617e-05/0.1068, allocations: 55.61 kB / 378.8 MB, free: 0.875 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007435/0.1076, allocations: 423 kB / 379.2 MB, free: 472 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.638e-06/0.1076, allocations: 0 / 379.2 MB, free: 472 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1076, allocations: 0 / 379.2 MB, free: 472 kB / 318.1 MB Notification: Performance of Transformations before backend: time 9.758e-06/0.1076, allocations: 0 / 379.2 MB, free: 472 kB / 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.2066/0.3141, allocations: 0.5065 MB / 379.7 MB, free: 12.87 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.099e-05/0.3142, allocations: 8.719 kB / 379.8 MB, free: 12.87 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.212e-05/0.3143, allocations: 40.77 kB / 379.8 MB, free: 12.83 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002542/0.3145, allocations: 32.19 kB / 379.8 MB, free: 12.82 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000159/0.3147, allocations: 212.9 kB / 380 MB, free: 12.61 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.314e-05/0.3147, allocations: 9.719 kB / 380 MB, free: 12.61 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.588e-05/0.3148, allocations: 11.34 kB / 380.1 MB, free: 12.61 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002565/0.315, allocations: 132.8 kB / 380.2 MB, free: 12.55 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.348e-06/0.3151, allocations: 5.031 kB / 380.2 MB, free: 12.55 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.255e-05/0.3151, allocations: 5.594 kB / 380.2 MB, free: 12.55 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-06/0.3151, allocations: 1.375 kB / 380.2 MB, free: 12.55 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002087/0.3153, allocations: 66.2 kB / 380.3 MB, free: 12.55 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006661/0.316, allocations: 0.5512 MB / 380.8 MB, free: 12.11 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003235/0.3163, allocations: 154.3 kB / 381 MB, free: 12.04 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000122/0.3164, allocations: 69.17 kB / 381 MB, free: 12.02 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.53e-05/0.3165, allocations: 2.266 kB / 381 MB, free: 12.02 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003288/0.3168, allocations: 151.1 kB / 381.2 MB, free: 11.95 MB / 318.1 MB Notification: Performance of pre-optimization done (n=17): time 1.362e-06/0.3168, allocations: 1.781 kB / 381.2 MB, free: 11.95 MB / 318.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005617/0.3174, allocations: 250.6 kB / 381.4 MB, free: 11.91 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.72e-05/0.3174, allocations: 121.7 kB / 381.5 MB, free: 11.79 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001634/0.3176, allocations: 197 kB / 381.7 MB, free: 11.68 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.054e-05/0.3177, allocations: 47.52 kB / 381.8 MB, free: 11.65 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.112e-05/0.3177, allocations: 118.9 kB / 381.9 MB, free: 11.56 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.691e-05/0.3178, allocations: 39.22 kB / 381.9 MB, free: 11.54 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.589e-05/0.3179, allocations: 59.23 kB / 382 MB, free: 11.52 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.87e-05/0.3179, allocations: 336 kB / 382.3 MB, free: 11.21 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000235/0.3182, allocations: 97.55 kB / 382.4 MB, free: 11.21 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003317/0.3185, allocations: 144.1 kB / 382.6 MB, free: 11.17 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005338/0.3191, allocations: 234.7 kB / 382.8 MB, free: 11.12 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/0.3191, allocations: 0 / 382.8 MB, free: 11.12 MB / 318.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0007994/0.3199, allocations: 314.2 kB / 383.1 MB, free: 11.05 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.106e-05/0.3199, allocations: 6.594 kB / 383.1 MB, free: 11.05 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.192e-05/0.3199, allocations: 3.516 kB / 383.1 MB, free: 11.05 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.366e-05/0.32, allocations: 2.562 kB / 383.1 MB, free: 11.05 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001732/0.3201, allocations: 27.03 kB / 383.1 MB, free: 11.05 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.168e-05/0.3202, allocations: 5.344 kB / 383.1 MB, free: 11.04 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001113/0.3203, allocations: 28.5 kB / 383.2 MB, free: 11.03 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.622e-05/0.3203, allocations: 15.27 kB / 383.2 MB, free: 11.02 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,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],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]) * 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.000141/0.3205, allocations: 143 kB / 383.3 MB, free: 10.89 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.057e-05/0.3205, allocations: 17.77 kB / 383.3 MB, free: 10.89 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.423e-05/0.3206, allocations: 19.78 kB / 383.4 MB, free: 10.87 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.109e-06/0.3206, allocations: 5.219 kB / 383.4 MB, free: 10.87 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.446e-06/0.3206, allocations: 1.312 kB / 383.4 MB, free: 10.87 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.224e-06/0.3206, allocations: 2.016 kB / 383.4 MB, free: 10.87 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002417/0.3209, allocations: 227.7 kB / 383.6 MB, free: 10.65 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.3209, allocations: 1.828 kB / 383.6 MB, free: 10.65 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.029e-05/0.3209, allocations: 14.91 kB / 383.6 MB, free: 10.64 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.749e-06/0.3209, allocations: 1.188 kB / 383.6 MB, free: 10.64 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.444e-05/0.321, allocations: 3.234 kB / 383.6 MB, free: 10.64 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.798e-06/0.321, allocations: 1.672 kB / 383.6 MB, free: 10.64 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/0.321, allocations: 0.75 kB / 383.6 MB, free: 10.64 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003894/0.3214, allocations: 248.3 kB / 383.9 MB, free: 10.5 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.759e-05/0.3214, allocations: 92.41 kB / 383.9 MB, free: 10.4 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.354e-05/0.3215, allocations: 8.656 kB / 384 MB, free: 10.4 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.051e-05/0.3215, allocations: 9.875 kB / 384 MB, free: 10.4 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.283e-05/0.3216, allocations: 14.8 kB / 384 MB, free: 10.39 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.344e-05/0.3216, allocations: 5.344 kB / 384 MB, free: 10.39 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001048/0.3217, allocations: 139.8 kB / 384.1 MB, free: 10.3 MB / 318.1 MB Notification: Performance of sort global known variables: time 6.51e-07/0.3218, allocations: 4 kB / 384.1 MB, free: 10.3 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000467/0.3222, allocations: 129 kB / 384.3 MB, free: 10.29 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,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 (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.001294/0.3235, allocations: 1.075 MB / 385.3 MB, free: 9.547 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004318/0.324, allocations: 203.9 kB / 385.5 MB, free: 9.488 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.324, allocations: 0 / 385.5 MB, free: 9.488 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001521/0.3241, allocations: 61.8 kB / 385.6 MB, free: 9.473 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001748/0.3243, allocations: 22.97 kB / 385.6 MB, free: 9.457 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002574/0.3269, allocations: 2.325 MB / 387.9 MB, free: 7.859 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001525/0.3271, allocations: 0.722 MB / 388.7 MB, free: 7.156 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 7.691e-05/0.3272, allocations: 26.39 kB / 388.7 MB, free: 7.152 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.807e-05/0.3272, allocations: 48.95 kB / 388.7 MB, free: 7.117 MB / 318.1 MB Notification: Performance of SimCode: time 2.81e-07/0.3273, allocations: 0 / 388.7 MB, free: 7.117 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02493/0.3522, allocations: 5.688 MB / 394.4 MB, free: 6.172 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.194/8.547, allocations: 5.094 kB / 394.4 MB, free: 6.168 MB / 318.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.NoiseExamples.Distributions_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_NoiseExamples_Distributions_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Blocks_Examples_NoiseExamples_Distributions.fmu > 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/NoiseExamples/Distributions/Distributions.csv","/var/lib/jenkins1/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