Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestSpecial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.Random.TestSpecial,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Math_Random_TestSpecial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestSpecial,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Math_Random_TestSpecial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001055/0.001055, allocations: 193.8 kB / 16.09 MB, free: 5.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.253/1.253, allocations: 226.5 MB / 243.4 MB, free: 8.215 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007907/0.0007908, allocations: 92 kB / 295.4 MB, free: 6.887 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3041/0.3041, allocations: 44.82 MB / 392.3 MB, free: 35.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002688/0.0002688, allocations: 11.98 kB / 465.4 MB, free: 12.56 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3185/0.3188, allocations: 62.96 MB / 0.516 GB, free: 36.96 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.0006057/0.3194, allocations: 230 kB / 0.5162 GB, free: 36.8 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002096/0.3216, allocations: 1.94 MB / 0.5181 GB, free: 35.44 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.252e-05/0.3216, allocations: 0 / 0.5181 GB, free: 35.44 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 9.578e-06/0.3216, allocations: 0 / 0.5181 GB, free: 35.44 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 7.314e-06/0.3216, allocations: 0 / 0.5181 GB, free: 35.44 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:928:5-1011:16:writable] Warning: Pure function ‘ModelicaTest.Math.Random.special‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.001127/0.3227, allocations: 400.2 kB / 0.5185 GB, free: 35.29 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.26e-05/0.3228, allocations: 2.844 kB / 0.5185 GB, free: 35.29 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.265e-05/0.3228, allocations: 3.047 kB / 0.5185 GB, free: 35.29 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.575e-05/0.3229, allocations: 3.984 kB / 0.5185 GB, free: 35.28 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.865e-05/0.3229, allocations: 2.938 kB / 0.5185 GB, free: 35.28 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.392e-06/0.3229, allocations: 0 / 0.5185 GB, free: 35.28 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008082/0.3237, allocations: 0.664 MB / 0.5191 GB, free: 35.11 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 8.185e-06/0.3237, allocations: 7.172 kB / 0.5191 GB, free: 35.11 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.844e-05/0.3238, allocations: 25.7 kB / 0.5191 GB, free: 35.07 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003112/0.3241, allocations: 253.2 kB / 0.5194 GB, free: 35.02 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.3241, allocations: 2.938 kB / 0.5194 GB, free: 35.02 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.3241, allocations: 3.938 kB / 0.5194 GB, free: 35.01 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.128e-06/0.3241, allocations: 0 / 0.5194 GB, free: 35.01 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003097/0.3244, allocations: 406.3 kB / 0.5198 GB, free: 34.59 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.085e-05/0.3245, allocations: 15.28 kB / 0.5198 GB, free: 34.59 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.909e-05/0.3245, allocations: 34.69 kB / 0.5198 GB, free: 34.55 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.151e-05/0.3246, allocations: 0.9375 kB / 0.5198 GB, free: 34.55 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.721e-05/0.3246, allocations: 160.4 kB / 0.52 GB, free: 34.35 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.069e-05/0.3246, allocations: 6.703 kB / 0.52 GB, free: 34.35 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.262e-06/0.3246, allocations: 384 / 0.52 GB, free: 34.35 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.158e-05/0.3247, allocations: 36.12 kB / 0.52 GB, free: 34.31 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.305e-06/0.3247, allocations: 0 / 0.52 GB, free: 34.31 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.245e-06/0.3248, allocations: 6.719 kB / 0.52 GB, free: 34.31 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.928e-06/0.3248, allocations: 0 / 0.52 GB, free: 34.31 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.709e-05/0.3248, allocations: 6.531 kB / 0.52 GB, free: 34.3 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001634/0.325, allocations: 234.8 kB / 0.5203 GB, free: 34.03 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.541e-05/0.325, allocations: 24.64 kB / 0.5203 GB, free: 34 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.11e-05/0.325, allocations: 10.91 kB / 0.5203 GB, free: 34 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.282e-06/0.325, allocations: 0 / 0.5203 GB, free: 34 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.322e-05/0.3251, allocations: 63.33 kB / 0.5204 GB, free: 33.92 MB / 378.7 MB Notification: Performance of pre-optimization done (n=2): time 1.804e-06/0.3251, allocations: 0 / 0.5204 GB, free: 33.92 MB / 378.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001657/0.3253, allocations: 82.27 kB / 0.5204 GB, free: 33.84 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.996e-05/0.3253, allocations: 77.11 kB / 0.5205 GB, free: 33.75 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.869e-05/0.3253, allocations: 89.86 kB / 0.5206 GB, free: 33.65 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.634e-06/0.3253, allocations: 29.7 kB / 0.5206 GB, free: 33.62 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.848e-06/0.3254, allocations: 80.14 kB / 0.5207 GB, free: 33.54 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.941e-05/0.3254, allocations: 8.547 kB / 0.5207 GB, free: 33.53 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.394e-06/0.3254, allocations: 128 / 0.5207 GB, free: 33.53 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.211e-05/0.3254, allocations: 314.8 kB / 0.521 GB, free: 33.21 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.107e-06/0.3255, allocations: 2.906 kB / 0.521 GB, free: 33.21 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.151e-06/0.3255, allocations: 3.234 kB / 0.521 GB, free: 33.21 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.468e-05/0.3255, allocations: 66.08 kB / 0.5211 GB, free: 33.14 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.3255, allocations: 3.938 kB / 0.5211 GB, free: 33.14 MB / 378.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.571e-05/0.3256, allocations: 71.95 kB / 0.5211 GB, free: 33.07 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.249e-05/0.3256, allocations: 32.58 kB / 0.5212 GB, free: 33.04 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.917e-06/0.3256, allocations: 4.094 kB / 0.5212 GB, free: 33.03 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.116e-05/0.3256, allocations: 0 / 0.5212 GB, free: 33.03 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.293e-05/0.3257, allocations: 0 / 0.5212 GB, free: 33.03 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.43e-06/0.3257, allocations: 3.156 kB / 0.5212 GB, free: 33.03 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.608e-05/0.3257, allocations: 4 kB / 0.5212 GB, free: 33.03 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.362e-06/0.3257, allocations: 0 / 0.5212 GB, free: 33.03 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (result,$outputAlias_result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 1 * 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 5.503e-05/0.3258, allocations: 141.9 kB / 0.5213 GB, free: 32.88 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.957e-05/0.3258, allocations: 0 / 0.5213 GB, free: 32.88 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.295e-05/0.3258, allocations: 6.719 kB / 0.5213 GB, free: 32.88 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.3258, allocations: 6.844 kB / 0.5213 GB, free: 32.88 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.527e-06/0.3258, allocations: 0 / 0.5213 GB, free: 32.88 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.3258, allocations: 0 / 0.5213 GB, free: 32.88 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001747/0.326, allocations: 305.3 kB / 0.5216 GB, free: 32.54 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.326, allocations: 0 / 0.5216 GB, free: 32.54 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.817e-06/0.326, allocations: 0 / 0.5216 GB, free: 32.54 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.462e-06/0.326, allocations: 0 / 0.5216 GB, free: 32.54 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.281e-06/0.326, allocations: 2.938 kB / 0.5216 GB, free: 32.54 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.326, allocations: 0 / 0.5216 GB, free: 32.54 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.3261, allocations: 0 / 0.5216 GB, free: 32.54 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.258e-05/0.3261, allocations: 170.9 kB / 0.5218 GB, free: 32.36 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.738e-05/0.3262, allocations: 77.11 kB / 0.5219 GB, free: 32.27 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.212e-05/0.3262, allocations: 0 / 0.5219 GB, free: 32.27 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.468e-05/0.3262, allocations: 6.844 kB / 0.5219 GB, free: 32.27 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.431e-05/0.3262, allocations: 3.234 kB / 0.5219 GB, free: 32.27 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.258e-06/0.3263, allocations: 4 kB / 0.5219 GB, free: 32.26 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.503e-05/0.3263, allocations: 86.03 kB / 0.522 GB, free: 32.18 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.3263, allocations: 4.031 kB / 0.522 GB, free: 32.18 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003774/0.3267, allocations: 129.5 kB / 0.5221 GB, free: 32.15 MB / 378.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 (result,$outputAlias_result) * Number of discrete states: 1 ($outputAlias_result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 1 * 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 Backend phase and start with SimCode phase: time 0.0009206/0.3276, allocations: 0.9149 MB / 0.523 GB, free: 31.39 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 7.817e-05/0.3277, allocations: 64.12 kB / 0.523 GB, free: 31.32 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.594e-06/0.3277, allocations: 0 / 0.523 GB, free: 31.32 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 2.49e-05/0.3277, allocations: 62.67 kB / 0.5231 GB, free: 31.25 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001824/0.3279, allocations: 3.781 kB / 0.5231 GB, free: 31.25 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004406/0.3283, allocations: 377.5 kB / 0.5235 GB, free: 30.88 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001022/0.3285, allocations: 0.6755 MB / 0.5241 GB, free: 30.18 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.718e-05/0.3285, allocations: 10.28 kB / 0.5241 GB, free: 30.18 MB / 378.7 MB Notification: Performance of SimCode: time 2.11e-07/0.3285, allocations: 0 / 0.5241 GB, free: 30.18 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.942/4.27, allocations: 3.568 MB / 0.5276 GB, free: 29.91 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestSpecial.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestSpecial.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestSpecial.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestSpecial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestSpecial_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Math_Random_TestSpecial_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Math_Random_TestSpecial.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestSpecial.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestSpecial_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestSpecial/TestSpecial.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestSpecial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches