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.001092/0.001092, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001257/0.001257, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.508/1.508, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.241/0.241, allocations: 46.1 MB / 344.1 MB, free: 11.62 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002865/0.002865, allocations: 77.62 kB / 417.7 MB, free: 19.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1349/0.1378, allocations: 62.43 MB / 480.1 MB, free: 5.215 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.002533/0.1404, allocations: 0.4902 MB / 480.6 MB, free: 4.723 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003971/0.1444, allocations: 2.026 MB / 482.6 MB, free: 2.676 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.912e-05/0.1444, allocations: 3.938 kB / 482.6 MB, free: 2.672 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.91e-05/0.1445, allocations: 0 / 482.6 MB, free: 2.672 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.27e-06/0.1445, allocations: 4 kB / 482.6 MB, free: 2.668 MB / 350.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.001818/0.1464, allocations: 0.4943 MB / 483.1 MB, free: 2.176 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.713e-05/0.1464, allocations: 7.984 kB / 483.1 MB, free: 2.168 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.73e-05/0.1465, allocations: 4 kB / 483.1 MB, free: 2.164 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.073e-05/0.1465, allocations: 0 / 483.1 MB, free: 2.164 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.449e-05/0.1466, allocations: 0 / 483.1 MB, free: 2.164 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.856e-06/0.1466, allocations: 0 / 483.1 MB, free: 2.164 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001366/0.1479, allocations: 0.6318 MB / 483.8 MB, free: 1.531 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.03e-05/0.148, allocations: 0 / 483.8 MB, free: 1.531 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.775e-05/0.148, allocations: 3.938 kB / 483.8 MB, free: 1.527 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007681/0.1488, allocations: 387.3 kB / 484.2 MB, free: 1.148 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.1488, allocations: 0 / 484.2 MB, free: 1.148 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.1488, allocations: 0 / 484.2 MB, free: 1.148 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.771e-06/0.1488, allocations: 0 / 484.2 MB, free: 1.148 MB / 350.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.0005226/0.1494, allocations: 421.4 kB / 484.6 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.7e-05/0.1494, allocations: 8.031 kB / 484.6 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.135e-05/0.1495, allocations: 38.75 kB / 484.6 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.031e-05/0.1495, allocations: 4.938 kB / 484.6 MB, free: 0.625 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.431e-05/0.1496, allocations: 168.3 kB / 484.8 MB, free: 432 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.389e-05/0.1496, allocations: 384 / 484.8 MB, free: 432 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.355e-06/0.1497, allocations: 384 / 484.8 MB, free: 432 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000104/0.1498, allocations: 37.81 kB / 484.8 MB, free: 388 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.923e-06/0.1498, allocations: 0 / 484.8 MB, free: 388 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.296e-06/0.1498, allocations: 0 / 484.8 MB, free: 388 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.1498, allocations: 0 / 484.8 MB, free: 388 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.544e-05/0.1498, allocations: 8 kB / 484.8 MB, free: 380 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002587/0.1501, allocations: 236.9 kB / 485.1 MB, free: 92 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.204e-05/0.1502, allocations: 26.55 kB / 485.1 MB, free: 56 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.494e-05/0.1502, allocations: 8.922 kB / 485.1 MB, free: 44 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.769e-06/0.1502, allocations: 0 / 485.1 MB, free: 44 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.544e-05/0.1503, allocations: 60.27 kB / 485.2 MB, free: 15.97 MB / 366.1 MB Notification: Performance of pre-optimization done (n=2): time 1.483e-06/0.1503, allocations: 4 kB / 485.2 MB, free: 15.96 MB / 366.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002073/0.1505, allocations: 71.39 kB / 485.2 MB, free: 15.88 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.401e-05/0.1506, allocations: 81.05 kB / 485.3 MB, free: 15.79 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.394e-05/0.1506, allocations: 89.86 kB / 485.4 MB, free: 15.69 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.16e-05/0.1506, allocations: 25.7 kB / 485.4 MB, free: 15.66 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.203e-05/0.1507, allocations: 80.14 kB / 485.5 MB, free: 15.57 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.578e-05/0.1507, allocations: 3.906 kB / 485.5 MB, free: 15.57 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.562e-05/0.1507, allocations: 21.7 kB / 485.5 MB, free: 15.54 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001056/0.1508, allocations: 315 kB / 485.8 MB, free: 15.23 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.281e-05/0.1509, allocations: 4 kB / 485.8 MB, free: 15.22 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.645e-06/0.1509, allocations: 0 / 485.8 MB, free: 15.22 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.854e-05/0.1509, allocations: 64.27 kB / 485.9 MB, free: 15.14 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.151, allocations: 11.88 kB / 485.9 MB, free: 15.13 MB / 366.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.354e-05/0.151, allocations: 71.33 kB / 486 MB, free: 15.05 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.371e-05/0.1511, allocations: 29.7 kB / 486 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.1511, allocations: 0 / 486 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.237e-05/0.1511, allocations: 8.094 kB / 486 MB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.817e-05/0.1511, allocations: 0 / 486 MB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.221e-06/0.1511, allocations: 0 / 486 MB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.845e-05/0.1512, allocations: 0 / 486 MB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.424e-06/0.1512, allocations: 0 / 486 MB, free: 15.01 MB / 366.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.93e-05/0.1513, allocations: 143.5 kB / 486.2 MB, free: 14.85 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.472e-05/0.1513, allocations: 0 / 486.2 MB, free: 14.85 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.484e-05/0.1513, allocations: 3.125 kB / 486.2 MB, free: 14.85 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.963e-06/0.1513, allocations: 0 / 486.2 MB, free: 14.85 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.393e-06/0.1514, allocations: 8 kB / 486.2 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.344e-06/0.1514, allocations: 0 / 486.2 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002534/0.1516, allocations: 296.3 kB / 486.5 MB, free: 14.49 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.1516, allocations: 3.938 kB / 486.5 MB, free: 14.49 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.14e-06/0.1517, allocations: 3.938 kB / 486.5 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.1517, allocations: 4 kB / 486.5 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.155e-06/0.1517, allocations: 3.984 kB / 486.5 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.153e-06/0.1517, allocations: 0 / 486.5 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.1517, allocations: 0 / 486.5 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001423/0.1518, allocations: 177.1 kB / 486.7 MB, free: 14.28 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.017e-05/0.1519, allocations: 81.09 kB / 486.7 MB, free: 14.18 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.342e-05/0.1519, allocations: 0 / 486.7 MB, free: 14.18 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.748e-05/0.152, allocations: 0 / 486.7 MB, free: 14.18 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.533e-05/0.152, allocations: 0 / 486.7 MB, free: 14.18 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.785e-06/0.152, allocations: 12 kB / 486.7 MB, free: 14.17 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.208e-05/0.1521, allocations: 79.31 kB / 486.8 MB, free: 14.09 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1521, allocations: 4.031 kB / 486.8 MB, free: 14.09 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005098/0.1526, allocations: 131.9 kB / 487 MB, free: 13.96 MB / 366.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.001256/0.1538, allocations: 0.9104 MB / 487.9 MB, free: 13.02 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001208/0.154, allocations: 67.41 kB / 487.9 MB, free: 12.95 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.154, allocations: 0 / 487.9 MB, free: 12.95 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.157e-05/0.154, allocations: 63.34 kB / 488 MB, free: 12.87 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001981/0.1542, allocations: 0 / 488 MB, free: 12.87 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001055/0.1553, allocations: 1.196 MB / 489.2 MB, free: 11.59 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002311/0.1555, allocations: 0.6767 MB / 489.9 MB, free: 10.89 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.163e-05/0.1556, allocations: 0 / 489.9 MB, free: 10.89 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.621e-05/0.1556, allocations: 11.44 kB / 489.9 MB, free: 10.88 MB / 366.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1556, allocations: 3.938 kB / 489.9 MB, free: 10.88 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02319/0.1788, allocations: 4.491 MB / 494.4 MB, free: 6.438 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.907/8.086, allocations: 13.19 kB / 494.4 MB, free: 6.43 MB / 366.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