Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.Random.TestSpecial,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_Random_TestSpecial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestSpecial,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_Random_TestSpecial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001164/0.001164, allocations: 118.1 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00138/0.00138, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.376/1.376, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2341/0.2341, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001479/0.001479, allocations: 75.88 kB / 480.8 MB, free: 4.57 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3415/0.343, allocations: 62.43 MB / 0.5305 GB, free: 13.4 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.0017/0.3448, allocations: 0.4936 MB / 0.531 GB, free: 13.03 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002893/0.3477, allocations: 2.024 MB / 0.533 GB, free: 11.43 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.636e-05/0.3477, allocations: 0 / 0.533 GB, free: 11.43 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.667e-05/0.3478, allocations: 0.7812 kB / 0.533 GB, free: 11.43 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.63e-06/0.3478, allocations: 0 / 0.533 GB, free: 11.43 MB / 398.1 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.001605/0.3494, allocations: 0.4937 MB / 0.5335 GB, free: 11.14 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.445e-05/0.3494, allocations: 13.64 kB / 0.5335 GB, free: 11.13 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.114e-05/0.3495, allocations: 1.406 kB / 0.5335 GB, free: 11.13 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.403e-05/0.3495, allocations: 0 / 0.5335 GB, free: 11.13 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.504e-05/0.3495, allocations: 1.875 kB / 0.5335 GB, free: 11.13 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.085e-06/0.3495, allocations: 0 / 0.5335 GB, free: 11.13 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001064/0.3506, allocations: 0.639 MB / 0.5341 GB, free: 10.78 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.634e-06/0.3506, allocations: 1.375 kB / 0.5341 GB, free: 10.78 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.794e-05/0.3507, allocations: 0 / 0.5341 GB, free: 10.78 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007134/0.3514, allocations: 396.3 kB / 0.5345 GB, free: 10.54 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.3514, allocations: 0 / 0.5345 GB, free: 10.54 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3514, allocations: 0 / 0.5345 GB, free: 10.54 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.669e-06/0.3514, allocations: 1.344 kB / 0.5345 GB, free: 10.54 MB / 398.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.0004736/0.3519, allocations: 413.5 kB / 0.5349 GB, free: 10.11 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.83e-05/0.3519, allocations: 9.156 kB / 0.5349 GB, free: 10.11 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.731e-05/0.352, allocations: 39.92 kB / 0.5349 GB, free: 10.06 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.654e-05/0.352, allocations: 6.578 kB / 0.5349 GB, free: 10.05 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.648e-05/0.3521, allocations: 172.2 kB / 0.5351 GB, free: 9.848 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.694e-06/0.3521, allocations: 384 / 0.5351 GB, free: 9.848 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.109e-05/0.3522, allocations: 1.938 kB / 0.5351 GB, free: 9.848 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.788e-05/0.3523, allocations: 37.7 kB / 0.5351 GB, free: 9.809 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.254e-06/0.3523, allocations: 0 / 0.5351 GB, free: 9.809 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.572e-06/0.3523, allocations: 0 / 0.5351 GB, free: 9.809 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.188e-06/0.3523, allocations: 1.344 kB / 0.5351 GB, free: 9.809 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.187e-05/0.3523, allocations: 5.156 kB / 0.5351 GB, free: 9.805 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002238/0.3525, allocations: 233.3 kB / 0.5353 GB, free: 9.531 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.669e-05/0.3526, allocations: 23.92 kB / 0.5354 GB, free: 9.504 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.447e-05/0.3526, allocations: 12.41 kB / 0.5354 GB, free: 9.492 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.893e-06/0.3526, allocations: 0 / 0.5354 GB, free: 9.492 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.46e-05/0.3527, allocations: 66.36 kB / 0.5354 GB, free: 9.414 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 9.72e-07/0.3527, allocations: 3.938 kB / 0.5355 GB, free: 9.41 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002045/0.3529, allocations: 62.69 kB / 0.5355 GB, free: 9.348 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.472e-05/0.353, allocations: 86.34 kB / 0.5356 GB, free: 9.246 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.783e-05/0.353, allocations: 89.86 kB / 0.5357 GB, free: 9.148 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.958e-05/0.353, allocations: 26.95 kB / 0.5357 GB, free: 9.117 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.474e-05/0.3531, allocations: 80.14 kB / 0.5358 GB, free: 9.035 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.529e-05/0.3531, allocations: 4.828 kB / 0.5358 GB, free: 9.031 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.946e-05/0.3531, allocations: 16.78 kB / 0.5358 GB, free: 9.012 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001099/0.3533, allocations: 318.8 kB / 0.5361 GB, free: 8.691 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.409e-05/0.3533, allocations: 1.719 kB / 0.5361 GB, free: 8.691 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.606e-06/0.3533, allocations: 2.562 kB / 0.5361 GB, free: 8.691 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.077e-05/0.3534, allocations: 69.34 kB / 0.5362 GB, free: 8.613 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.3534, allocations: 3.938 kB / 0.5362 GB, free: 8.609 MB / 398.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.873e-05/0.3535, allocations: 69.03 kB / 0.5362 GB, free: 8.539 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.05e-05/0.3535, allocations: 31.89 kB / 0.5363 GB, free: 8.508 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.94e-06/0.3535, allocations: 4.094 kB / 0.5363 GB, free: 8.504 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.774e-05/0.3535, allocations: 5.422 kB / 0.5363 GB, free: 8.5 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.356e-05/0.3535, allocations: 0 / 0.5363 GB, free: 8.5 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.528e-06/0.3536, allocations: 0 / 0.5363 GB, free: 8.5 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.607e-05/0.3536, allocations: 1.375 kB / 0.5363 GB, free: 8.5 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.813e-06/0.3536, allocations: 1.219 kB / 0.5363 GB, free: 8.5 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 8.517e-05/0.3537, allocations: 142.1 kB / 0.5364 GB, free: 8.348 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.212e-05/0.3537, allocations: 0 / 0.5364 GB, free: 8.348 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.37e-05/0.3537, allocations: 4.344 kB / 0.5364 GB, free: 8.348 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.3537, allocations: 4 kB / 0.5364 GB, free: 8.344 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/0.3537, allocations: 1.5 kB / 0.5364 GB, free: 8.344 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.254e-06/0.3537, allocations: 0 / 0.5364 GB, free: 8.344 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002409/0.354, allocations: 302.4 kB / 0.5367 GB, free: 8 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.354, allocations: 0 / 0.5367 GB, free: 8 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.909e-06/0.354, allocations: 5.031 kB / 0.5367 GB, free: 7.996 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.354, allocations: 0 / 0.5367 GB, free: 7.996 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.973e-06/0.354, allocations: 1.156 kB / 0.5367 GB, free: 7.996 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.354, allocations: 0 / 0.5367 GB, free: 7.996 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.354, allocations: 1.5 kB / 0.5367 GB, free: 7.996 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001283/0.3542, allocations: 178.9 kB / 0.5369 GB, free: 7.812 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.25e-05/0.3542, allocations: 77.11 kB / 0.537 GB, free: 7.719 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.262e-05/0.3542, allocations: 1.156 kB / 0.537 GB, free: 7.719 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.323e-05/0.3543, allocations: 1.188 kB / 0.537 GB, free: 7.719 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.537e-05/0.3543, allocations: 1 kB / 0.537 GB, free: 7.719 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.867e-06/0.3543, allocations: 1.125 kB / 0.537 GB, free: 7.719 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.391e-05/0.3544, allocations: 79.27 kB / 0.5371 GB, free: 7.641 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3544, allocations: 4.031 kB / 0.5371 GB, free: 7.637 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004904/0.3549, allocations: 132.5 kB / 0.5372 GB, free: 7.602 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.00112/0.356, allocations: 0.9176 MB / 0.5381 GB, free: 6.801 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001063/0.3561, allocations: 63.34 kB / 0.5381 GB, free: 6.734 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.3561, allocations: 0 / 0.5381 GB, free: 6.734 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.781e-05/0.3562, allocations: 64.64 kB / 0.5382 GB, free: 6.664 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000189/0.3564, allocations: 4.344 kB / 0.5382 GB, free: 6.664 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009582/0.3573, allocations: 1.2 MB / 0.5394 GB, free: 5.438 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002308/0.3576, allocations: 0.6746 MB / 0.54 GB, free: 4.738 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.135e-05/0.3576, allocations: 0 / 0.54 GB, free: 4.738 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.325e-05/0.3576, allocations: 13.8 kB / 0.54 GB, free: 4.727 MB / 398.1 MB Notification: Performance of SimCode: time 2.1e-07/0.3576, allocations: 0 / 0.54 GB, free: 4.727 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02307/0.3807, allocations: 4.525 MB / 0.5445 GB, free: 2.316 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.523/7.904, allocations: 13.2 kB / 0.5445 GB, free: 2.309 MB / 398.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_Math_Random_TestSpecial.fmu > ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Math.Random.TestSpecial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches