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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001317/0.001317, allocations: 120.4 kB / 17.79 MB, free: 5.285 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00146/0.00146, allocations: 214.6 kB / 20.75 MB, free: 2.328 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.509/1.509, allocations: 230.4 MB / 254 MB, free: 15.04 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2299/0.2299, allocations: 46.91 MB / 357 MB, free: 10.2 MB / 286.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002315/0.002315, allocations: 79.88 kB / 0.491 GB, free: 7.742 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1477/0.15, allocations: 66.04 MB / 0.5555 GB, free: 5.566 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001776/0.1518, allocations: 0.502 MB / 0.556 GB, free: 5.059 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.003182/0.155, allocations: 2.045 MB / 0.5579 GB, free: 2.992 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.583e-05/0.155, allocations: 0 / 0.5579 GB, free: 2.992 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.331e-05/0.155, allocations: 0 / 0.5579 GB, free: 2.992 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 6.232e-06/0.155, allocations: 0 / 0.5579 GB, free: 2.992 MB / 414.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.001549/0.1566, allocations: 0.4971 MB / 0.5584 GB, free: 2.496 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 4.97e-05/0.1566, allocations: 0 / 0.5584 GB, free: 2.496 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.998e-05/0.1567, allocations: 0 / 0.5584 GB, free: 2.496 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.35e-05/0.1567, allocations: 7.938 kB / 0.5584 GB, free: 2.488 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.561e-05/0.1567, allocations: 0 / 0.5584 GB, free: 2.488 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.312e-06/0.1567, allocations: 0 / 0.5584 GB, free: 2.488 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001103/0.1578, allocations: 0.6668 MB / 0.5591 GB, free: 1.82 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.445e-06/0.1578, allocations: 0 / 0.5591 GB, free: 1.82 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.557e-05/0.1578, allocations: 4 kB / 0.5591 GB, free: 1.816 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006523/0.1585, allocations: 395 kB / 0.5595 GB, free: 1.43 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.1585, allocations: 0 / 0.5595 GB, free: 1.43 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.1585, allocations: 7.938 kB / 0.5595 GB, free: 1.422 MB / 414.1 MB Notification: Performance of Transformations before backend: time 9.408e-06/0.1585, allocations: 3.984 kB / 0.5595 GB, free: 1.418 MB / 414.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.0006168/0.1591, allocations: 408.6 kB / 0.5599 GB, free: 0.9648 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.048e-05/0.1592, allocations: 12.03 kB / 0.5599 GB, free: 0.9531 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.168e-05/0.1593, allocations: 34.7 kB / 0.5599 GB, free: 0.9102 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.422e-05/0.1593, allocations: 0.9375 kB / 0.5599 GB, free: 0.9102 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001516/0.1594, allocations: 160.4 kB / 0.5601 GB, free: 0.7148 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.058e-05/0.1595, allocations: 384 / 0.5601 GB, free: 0.7148 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.649e-05/0.1595, allocations: 4.375 kB / 0.5601 GB, free: 0.7109 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001313/0.1596, allocations: 41.81 kB / 0.5601 GB, free: 0.6641 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.554e-06/0.1596, allocations: 0 / 0.5601 GB, free: 0.6641 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.985e-06/0.1596, allocations: 0 / 0.5601 GB, free: 0.6641 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.4e-06/0.1596, allocations: 0 / 0.5601 GB, free: 0.6641 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.609e-05/0.1597, allocations: 7.938 kB / 0.5601 GB, free: 0.6562 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003005/0.16, allocations: 228.9 kB / 0.5603 GB, free: 392 kB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.197e-05/0.16, allocations: 22.61 kB / 0.5604 GB, free: 360 kB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.727e-05/0.1601, allocations: 12.92 kB / 0.5604 GB, free: 344 kB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.997e-06/0.1601, allocations: 0 / 0.5604 GB, free: 344 kB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.652e-05/0.1601, allocations: 60.27 kB / 0.5604 GB, free: 268 kB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 1.122e-06/0.1601, allocations: 3.938 kB / 0.5604 GB, free: 264 kB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002214/0.1603, allocations: 79.27 kB / 0.5605 GB, free: 172 kB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.136e-05/0.1604, allocations: 77.11 kB / 0.5606 GB, free: 76 kB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.619e-05/0.1605, allocations: 89.98 kB / 0.5607 GB, free: 15.98 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.649e-05/0.1605, allocations: 29.7 kB / 0.5607 GB, free: 15.94 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.132e-05/0.1605, allocations: 80.14 kB / 0.5608 GB, free: 15.86 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.849e-05/0.1606, allocations: 11.89 kB / 0.5608 GB, free: 15.85 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.1e-05/0.1606, allocations: 17.7 kB / 0.5608 GB, free: 15.82 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001578/0.1608, allocations: 310.8 kB / 0.5611 GB, free: 15.51 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.734e-05/0.1608, allocations: 4 kB / 0.5611 GB, free: 15.51 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.424e-06/0.1608, allocations: 0 / 0.5611 GB, free: 15.51 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.021e-05/0.1609, allocations: 76.27 kB / 0.5612 GB, free: 15.42 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.666e-06/0.1609, allocations: 7.938 kB / 0.5612 GB, free: 15.41 MB / 430.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.559e-05/0.161, allocations: 67.39 kB / 0.5613 GB, free: 15.33 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.223e-05/0.161, allocations: 33.7 kB / 0.5613 GB, free: 15.29 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.161, allocations: 0 / 0.5613 GB, free: 15.29 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.247e-05/0.161, allocations: 0 / 0.5613 GB, free: 15.29 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.523e-05/0.161, allocations: 0 / 0.5613 GB, free: 15.29 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.582e-06/0.161, allocations: 3.984 kB / 0.5613 GB, free: 15.29 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.66e-05/0.161, allocations: 0 / 0.5613 GB, free: 15.29 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.334e-06/0.1611, allocations: 0 / 0.5613 GB, free: 15.29 MB / 430.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 0.0001127/0.1612, allocations: 147.5 kB / 0.5614 GB, free: 15.13 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.291e-05/0.1612, allocations: 0 / 0.5614 GB, free: 15.13 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.459e-05/0.1612, allocations: 3.125 kB / 0.5614 GB, free: 15.13 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.1612, allocations: 4 kB / 0.5614 GB, free: 15.12 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.1612, allocations: 0 / 0.5614 GB, free: 15.12 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.169e-06/0.1612, allocations: 3.984 kB / 0.5614 GB, free: 15.12 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003182/0.1615, allocations: 304.2 kB / 0.5617 GB, free: 14.76 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.1615, allocations: 4 kB / 0.5617 GB, free: 14.76 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.691e-06/0.1615, allocations: 8.016 kB / 0.5617 GB, free: 14.75 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.1615, allocations: 0 / 0.5617 GB, free: 14.75 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.434e-06/0.1616, allocations: 0 / 0.5617 GB, free: 14.75 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.1616, allocations: 0 / 0.5617 GB, free: 14.75 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.1616, allocations: 0 / 0.5617 GB, free: 14.75 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001513/0.1617, allocations: 173.1 kB / 0.5619 GB, free: 14.56 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.82e-05/0.1618, allocations: 77.11 kB / 0.562 GB, free: 14.46 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.308e-05/0.1618, allocations: 0 / 0.562 GB, free: 14.46 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.191e-05/0.1618, allocations: 7.969 kB / 0.562 GB, free: 14.46 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.495e-05/0.1618, allocations: 8 kB / 0.562 GB, free: 14.45 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.976e-06/0.1618, allocations: 0 / 0.562 GB, free: 14.45 MB / 430.1 MB Notification: Performance of sorting global known variables: time 4.133e-05/0.1619, allocations: 75.28 kB / 0.5621 GB, free: 14.38 MB / 430.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1619, allocations: 0 / 0.5621 GB, free: 14.38 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0005389/0.1624, allocations: 139.5 kB / 0.5622 GB, free: 14.24 MB / 430.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.001385/0.1638, allocations: 0.9077 MB / 0.5631 GB, free: 13.3 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001501/0.164, allocations: 67.38 kB / 0.5631 GB, free: 13.22 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.164, allocations: 0 / 0.5631 GB, free: 13.22 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 5.566e-05/0.164, allocations: 63.39 kB / 0.5632 GB, free: 13.15 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002126/0.1642, allocations: 0 / 0.5632 GB, free: 13.15 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001223/0.1655, allocations: 1.203 MB / 0.5644 GB, free: 11.86 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003646/0.1658, allocations: 0.669 MB / 0.565 GB, free: 11.16 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 1.312e-05/0.1658, allocations: 0 / 0.565 GB, free: 11.16 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.615e-05/0.1659, allocations: 11.44 kB / 0.565 GB, free: 11.15 MB / 430.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1659, allocations: 0 / 0.565 GB, free: 11.15 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02828/0.1942, allocations: 4.535 MB / 0.5695 GB, free: 6.684 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.112/8.306, allocations: 4.062 kB / 0.5695 GB, free: 6.68 MB / 430.1 MB " [Timeout remaining time 652] (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) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.463294179062359]