Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) 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(ModelicaTest.Math.Random.TestSpecial,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestSpecial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestSpecial,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestSpecial",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.001189/0.001189, allocations: 113.2 kB / 17.78 MB, free: 5.258 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.001383/0.001382, allocations: 185 kB / 18.72 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.42/1.42, allocations: 222.9 MB / 242.4 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2552/0.2552, allocations: 44.17 MB / 336.7 MB, free: 2.684 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001473/0.001473, allocations: 67.91 kB / 470 MB, free: 13.69 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.365/0.3665, allocations: 60.83 MB / 0.5184 GB, free: 3.301 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001468/0.368, allocations: 0.4895 MB / 0.5189 GB, free: 3.004 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00254/0.3706, allocations: 1.995 MB / 0.5209 GB, free: 1.598 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.677e-05/0.3706, allocations: 1.406 kB / 0.5209 GB, free: 1.598 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.891e-05/0.3707, allocations: 4 kB / 0.5209 GB, free: 1.594 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 7.143e-06/0.3707, allocations: 0 / 0.5209 GB, free: 1.594 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/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.001553/0.3723, allocations: 0.4898 MB / 0.5213 GB, free: 1.41 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.609e-05/0.3723, allocations: 1.312 kB / 0.5213 GB, free: 1.41 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.432e-05/0.3724, allocations: 6.203 kB / 0.5213 GB, free: 1.406 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.655e-05/0.3724, allocations: 2.047 kB / 0.5213 GB, free: 1.406 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.92e-05/0.3724, allocations: 1.5 kB / 0.5213 GB, free: 1.406 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.424e-06/0.3724, allocations: 0 / 0.5213 GB, free: 1.406 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001182/0.3736, allocations: 0.6253 MB / 0.522 GB, free: 1.215 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.977e-06/0.3737, allocations: 5.156 kB / 0.522 GB, free: 1.211 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.111e-05/0.3737, allocations: 5.344 kB / 0.522 GB, free: 1.207 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006665/0.3744, allocations: 376.2 kB / 0.5223 GB, free: 1.105 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.833e-06/0.3744, allocations: 1.062 kB / 0.5223 GB, free: 1.105 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3744, allocations: 0 / 0.5223 GB, free: 1.105 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.861e-06/0.3744, allocations: 0 / 0.5223 GB, free: 1.105 MB / 382.1 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.0004181/0.3748, allocations: 413.9 kB / 0.5227 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.556e-05/0.3749, allocations: 9.625 kB / 0.5227 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.815e-05/0.3749, allocations: 35.72 kB / 0.5228 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.713e-05/0.375, allocations: 2.031 kB / 0.5228 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.863e-05/0.375, allocations: 166.8 kB / 0.5229 GB, free: 448 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.305e-05/0.375, allocations: 4.312 kB / 0.5229 GB, free: 444 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.202e-05/0.3751, allocations: 1.5 kB / 0.5229 GB, free: 444 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001008/0.3752, allocations: 39.33 kB / 0.523 GB, free: 404 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.187e-06/0.3752, allocations: 1.094 kB / 0.523 GB, free: 404 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.253e-06/0.3752, allocations: 4 kB / 0.523 GB, free: 400 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.669e-06/0.3752, allocations: 0.6094 kB / 0.523 GB, free: 400 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.922e-05/0.3752, allocations: 2.703 kB / 0.523 GB, free: 400 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001816/0.3754, allocations: 226.8 kB / 0.5232 GB, free: 128 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.2e-05/0.3755, allocations: 28.66 kB / 0.5232 GB, free: 96 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.228e-05/0.3755, allocations: 11.05 kB / 0.5232 GB, free: 88 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.046e-05/0.3755, allocations: 4 kB / 0.5232 GB, free: 84 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.145e-05/0.3756, allocations: 62 kB / 0.5233 GB, free: 8 kB / 382.1 MB Notification: Performance of pre-optimization done (n=2): time 1.133e-06/0.3756, allocations: 1.125 kB / 0.5233 GB, free: 8 kB / 382.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002275/0.3758, allocations: 69.31 kB / 0.5234 GB, free: 15.94 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.102e-05/0.3759, allocations: 79.45 kB / 0.5234 GB, free: 15.85 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.952e-05/0.3759, allocations: 94.47 kB / 0.5235 GB, free: 15.75 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.728e-05/0.3759, allocations: 25.7 kB / 0.5236 GB, free: 15.71 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.911e-05/0.376, allocations: 84.27 kB / 0.5236 GB, free: 15.63 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.446e-05/0.376, allocations: 6.938 kB / 0.5236 GB, free: 15.62 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.968e-05/0.376, allocations: 12.33 kB / 0.5237 GB, free: 15.61 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001241/0.3762, allocations: 313 kB / 0.5239 GB, free: 15.3 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.49e-05/0.3762, allocations: 9.969 kB / 0.524 GB, free: 15.29 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.524e-06/0.3762, allocations: 2.281 kB / 0.524 GB, free: 15.29 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.468e-05/0.3763, allocations: 61.88 kB / 0.524 GB, free: 15.22 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.948e-06/0.3763, allocations: 3.938 kB / 0.524 GB, free: 15.21 MB / 398.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.914e-05/0.3764, allocations: 75.52 kB / 0.5241 GB, free: 15.14 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.541e-05/0.3764, allocations: 32.38 kB / 0.5241 GB, free: 15.11 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/0.3764, allocations: 0.6562 kB / 0.5241 GB, free: 15.11 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.343e-05/0.3764, allocations: 1.375 kB / 0.5241 GB, free: 15.11 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.615e-05/0.3765, allocations: 0 / 0.5241 GB, free: 15.11 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.55e-06/0.3765, allocations: 0.5625 kB / 0.5241 GB, free: 15.11 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.611e-05/0.3765, allocations: 1.469 kB / 0.5241 GB, free: 15.11 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.025e-05/0.3765, allocations: 1.406 kB / 0.5241 GB, free: 15.11 MB / 398.1 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 ($outputAlias_result,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.038e-05/0.3766, allocations: 150.3 kB / 0.5243 GB, free: 14.95 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.403e-05/0.3766, allocations: 6.047 kB / 0.5243 GB, free: 14.95 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.781e-05/0.3767, allocations: 11.06 kB / 0.5243 GB, free: 14.93 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.376e-06/0.3767, allocations: 2.047 kB / 0.5243 GB, free: 14.93 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.3767, allocations: 0 / 0.5243 GB, free: 14.93 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.3767, allocations: 0 / 0.5243 GB, free: 14.93 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002681/0.377, allocations: 304.8 kB / 0.5246 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.377, allocations: 1.375 kB / 0.5246 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.018e-06/0.377, allocations: 0 / 0.5246 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.377, allocations: 5.094 kB / 0.5246 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.322e-06/0.377, allocations: 4.031 kB / 0.5246 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.377, allocations: 2.484 kB / 0.5246 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.377, allocations: 0 / 0.5246 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001234/0.3771, allocations: 169.9 kB / 0.5248 GB, free: 14.41 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.382e-05/0.3772, allocations: 77.81 kB / 0.5248 GB, free: 14.32 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.381e-05/0.3772, allocations: 1.938 kB / 0.5248 GB, free: 14.32 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.26e-05/0.3773, allocations: 1.156 kB / 0.5248 GB, free: 14.32 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.096e-05/0.3773, allocations: 5.797 kB / 0.5248 GB, free: 14.32 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.987e-06/0.3773, allocations: 1.312 kB / 0.5248 GB, free: 14.32 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.396e-05/0.3773, allocations: 75.28 kB / 0.5249 GB, free: 14.24 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3773, allocations: 0 / 0.5249 GB, free: 14.24 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000583/0.3779, allocations: 132.1 kB / 0.525 GB, free: 14.21 MB / 398.1 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 (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.001136/0.3791, allocations: 0.9035 MB / 0.5259 GB, free: 13.45 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001148/0.3792, allocations: 69.73 kB / 0.526 GB, free: 13.38 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.536e-06/0.3792, allocations: 4.062 kB / 0.526 GB, free: 13.38 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.71e-05/0.3792, allocations: 60.92 kB / 0.5261 GB, free: 13.31 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001988/0.3795, allocations: 3.125 kB / 0.5261 GB, free: 13.31 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009395/0.3804, allocations: 1.192 MB / 0.5272 GB, free: 12.11 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002476/0.3807, allocations: 0.6754 MB / 0.5279 GB, free: 11.41 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.081e-05/0.3807, allocations: 0.5156 kB / 0.5279 GB, free: 11.41 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.621e-05/0.3807, allocations: 9.281 kB / 0.5279 GB, free: 11.4 MB / 398.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3807, allocations: 0 / 0.5279 GB, free: 11.4 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02481/0.4055, allocations: 4.368 MB / 0.5322 GB, free: 9.398 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.84/8.245, allocations: 17.89 kB / 0.5322 GB, free: 9.391 MB / 398.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestSpecial.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestSpecial/TestSpecial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches