Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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.001514/0.001514, allocations: 116.8 kB / 18.5 MB, free: 4.52 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.002/0.002, allocations: 212.9 kB / 21.46 MB, free: 1.566 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.483/1.483, allocations: 230.4 MB / 254.7 MB, free: 15.04 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2233/0.2233, allocations: 46.93 MB / 357.7 MB, free: 10.21 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_4_1_0-beta_om_ModelicaTest_Math_Random_TestSpecial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestSpecial,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_Random_TestSpecial",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00226/0.00226, allocations: 79.88 kB / 0.4917 GB, free: 7.734 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1531/0.1554, allocations: 66.04 MB / 0.5562 GB, free: 5.562 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.002331/0.1577, allocations: 0.498 MB / 0.5566 GB, free: 5.059 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.003766/0.1615, allocations: 2.045 MB / 0.5586 GB, free: 2.992 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.318e-05/0.1615, allocations: 3.938 kB / 0.5586 GB, free: 2.988 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 2.322e-05/0.1615, allocations: 0 / 0.5586 GB, free: 2.988 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 8.045e-06/0.1615, allocations: 0 / 0.5586 GB, free: 2.988 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.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.001776/0.1633, allocations: 0.4941 MB / 0.5591 GB, free: 2.496 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 6.397e-05/0.1634, allocations: 0 / 0.5591 GB, free: 2.496 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.386e-05/0.1634, allocations: 0 / 0.5591 GB, free: 2.496 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.672e-05/0.1634, allocations: 7.938 kB / 0.5591 GB, free: 2.488 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.183e-05/0.1635, allocations: 0 / 0.5591 GB, free: 2.488 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 9.388e-06/0.1635, allocations: 0 / 0.5591 GB, free: 2.488 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001162/0.1646, allocations: 0.6746 MB / 0.5598 GB, free: 1.812 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.777e-06/0.1646, allocations: 0 / 0.5598 GB, free: 1.812 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.617e-05/0.1647, allocations: 3.984 kB / 0.5598 GB, free: 1.809 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006512/0.1653, allocations: 387.1 kB / 0.5602 GB, free: 1.43 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.314e-06/0.1653, allocations: 7.938 kB / 0.5602 GB, free: 1.422 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.415e-06/0.1653, allocations: 0 / 0.5602 GB, free: 1.422 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.184e-06/0.1653, allocations: 4 kB / 0.5602 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.0006167/0.1659, allocations: 408.6 kB / 0.5606 GB, free: 0.9648 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.148e-05/0.166, allocations: 12.03 kB / 0.5606 GB, free: 0.9531 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.386e-05/0.1661, allocations: 38.7 kB / 0.5606 GB, free: 0.9062 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.717e-05/0.1661, allocations: 0.9375 kB / 0.5606 GB, free: 0.9062 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001378/0.1662, allocations: 164.4 kB / 0.5608 GB, free: 0.707 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.269e-05/0.1663, allocations: 384 / 0.5608 GB, free: 0.707 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.089e-05/0.1663, allocations: 4.375 kB / 0.5608 GB, free: 0.7031 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001302/0.1664, allocations: 37.77 kB / 0.5608 GB, free: 0.6602 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.258e-06/0.1664, allocations: 4 kB / 0.5608 GB, free: 0.6562 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.007e-06/0.1664, allocations: 0 / 0.5608 GB, free: 0.6562 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.91e-06/0.1664, allocations: 0 / 0.5608 GB, free: 0.6562 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.235e-05/0.1664, allocations: 0 / 0.5608 GB, free: 0.6562 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003215/0.1668, allocations: 232.9 kB / 0.561 GB, free: 388 kB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.87e-05/0.1668, allocations: 22.61 kB / 0.5611 GB, free: 356 kB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.231e-05/0.1669, allocations: 16.86 kB / 0.5611 GB, free: 336 kB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.337e-05/0.1669, allocations: 3.984 kB / 0.5611 GB, free: 332 kB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.354e-05/0.167, allocations: 60.27 kB / 0.5611 GB, free: 256 kB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 1.242e-06/0.167, allocations: 3.938 kB / 0.5611 GB, free: 252 kB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002261/0.1672, allocations: 67.41 kB / 0.5612 GB, free: 172 kB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.866e-05/0.1672, allocations: 81.09 kB / 0.5613 GB, free: 72 kB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.991e-05/0.1673, allocations: 89.86 kB / 0.5614 GB, free: 15.97 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.937e-05/0.1673, allocations: 25.7 kB / 0.5614 GB, free: 15.94 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.917e-05/0.1674, allocations: 84.27 kB / 0.5615 GB, free: 15.86 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.804e-05/0.1674, allocations: 15.88 kB / 0.5615 GB, free: 15.84 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.836e-05/0.1674, allocations: 17.66 kB / 0.5615 GB, free: 15.82 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001719/0.1676, allocations: 310.8 kB / 0.5618 GB, free: 15.5 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.665e-05/0.1676, allocations: 7.938 kB / 0.5618 GB, free: 15.5 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.612e-06/0.1676, allocations: 0 / 0.5618 GB, free: 15.5 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.155e-05/0.1677, allocations: 72.25 kB / 0.5619 GB, free: 15.41 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.397e-06/0.1677, allocations: 8 kB / 0.5619 GB, free: 15.4 MB / 430.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.565e-05/0.1678, allocations: 63.41 kB / 0.5619 GB, free: 15.33 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.618e-05/0.1678, allocations: 33.7 kB / 0.562 GB, free: 15.29 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.1679, allocations: 0 / 0.562 GB, free: 15.29 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.611e-05/0.1679, allocations: 0 / 0.562 GB, free: 15.29 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.75e-05/0.1679, allocations: 3.984 kB / 0.562 GB, free: 15.29 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.083e-06/0.1679, allocations: 0 / 0.562 GB, free: 15.29 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.563e-05/0.1679, allocations: 0 / 0.562 GB, free: 15.29 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.436e-06/0.1679, allocations: 0 / 0.562 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.0001298/0.168, allocations: 147.5 kB / 0.5621 GB, free: 15.12 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.195e-05/0.1681, allocations: 0 / 0.5621 GB, free: 15.12 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.663e-05/0.1681, allocations: 3.125 kB / 0.5621 GB, free: 15.12 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.082e-06/0.1681, allocations: 4 kB / 0.5621 GB, free: 15.12 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.795e-06/0.1681, allocations: 3.984 kB / 0.5621 GB, free: 15.12 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.454e-06/0.1681, allocations: 0 / 0.5621 GB, free: 15.12 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003117/0.1684, allocations: 300.3 kB / 0.5624 GB, free: 14.76 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.1684, allocations: 0 / 0.5624 GB, free: 14.76 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.436e-06/0.1684, allocations: 4 kB / 0.5624 GB, free: 14.76 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.362e-06/0.1684, allocations: 0 / 0.5624 GB, free: 14.76 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.792e-06/0.1684, allocations: 4.031 kB / 0.5624 GB, free: 14.75 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.1684, allocations: 4 kB / 0.5624 GB, free: 14.75 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.1684, allocations: 0 / 0.5624 GB, free: 14.75 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001746/0.1686, allocations: 173.1 kB / 0.5626 GB, free: 14.56 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.33e-05/0.1687, allocations: 77.11 kB / 0.5627 GB, free: 14.46 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.271e-05/0.1687, allocations: 3.938 kB / 0.5627 GB, free: 14.46 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.662e-05/0.1687, allocations: 0 / 0.5627 GB, free: 14.46 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.943e-05/0.1687, allocations: 8.031 kB / 0.5627 GB, free: 14.45 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.96e-06/0.1687, allocations: 4 kB / 0.5627 GB, free: 14.45 MB / 430.1 MB Notification: Performance of sorting global known variables: time 4.428e-05/0.1688, allocations: 75.28 kB / 0.5628 GB, free: 14.38 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1688, allocations: 0 / 0.5628 GB, free: 14.38 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0004439/0.1692, allocations: 135.5 kB / 0.5629 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.001301/0.1705, allocations: 0.9209 MB / 0.5638 GB, free: 13.29 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001304/0.1706, allocations: 63.41 kB / 0.5638 GB, free: 13.22 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.078e-06/0.1706, allocations: 4.062 kB / 0.5638 GB, free: 13.21 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 4.862e-05/0.1707, allocations: 59.39 kB / 0.5639 GB, free: 13.14 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001904/0.1709, allocations: 0 / 0.5639 GB, free: 13.14 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00114/0.172, allocations: 1.199 MB / 0.5651 GB, free: 11.86 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003342/0.1724, allocations: 0.669 MB / 0.5657 GB, free: 11.16 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 1.005e-05/0.1724, allocations: 0 / 0.5657 GB, free: 11.16 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.521e-05/0.1724, allocations: 11.44 kB / 0.5657 GB, free: 11.15 MB / 430.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1724, allocations: 0 / 0.5657 GB, free: 11.15 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02802/0.2004, allocations: 4.544 MB / 0.5702 GB, free: 6.691 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.096/8.296, allocations: 9.875 kB / 0.5702 GB, free: 6.684 MB / 430.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestSpecial.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestSpecial.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestSpecial.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestSpecial.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_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_1_0-beta_om_ModelicaTest_Math_Random_TestSpecial.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestSpecial.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.352455747313797] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 8.36794484499842 8.393517663 8.22362823 Calling exit ...