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.00131/0.00131, allocations: 109 kB / 21.23 MB, free: 0.6641 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.001425/0.001425, allocations: 213.9 kB / 24.54 MB, free: 4.02 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.443/1.443, allocations: 230.5 MB / 258.2 MB, free: 8.027 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.2293/0.2293, allocations: 46.94 MB / 361.6 MB, free: 4.203 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.002363/0.002363, allocations: 83.88 kB / 0.497 GB, free: 7.789 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3476/0.35, allocations: 66.08 MB / 0.5615 GB, free: 4.34 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001807/0.3518, allocations: 0.4893 MB / 0.562 GB, free: 3.852 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00307/0.3549, allocations: 2.054 MB / 0.564 GB, free: 1.777 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.108e-05/0.3549, allocations: 0 / 0.564 GB, free: 1.777 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.714e-05/0.3549, allocations: 7.938 kB / 0.564 GB, free: 1.77 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.061e-06/0.3549, allocations: 0 / 0.564 GB, free: 1.77 MB / 398.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.001495/0.3564, allocations: 0.5059 MB / 0.5645 GB, free: 1.266 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.987e-05/0.3565, allocations: 4 kB / 0.5645 GB, free: 1.262 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.724e-05/0.3565, allocations: 3.938 kB / 0.5645 GB, free: 1.258 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.539e-05/0.3565, allocations: 0 / 0.5645 GB, free: 1.258 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.905e-05/0.3565, allocations: 3.938 kB / 0.5645 GB, free: 1.254 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.682e-06/0.3566, allocations: 3.938 kB / 0.5645 GB, free: 1.25 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001148/0.3577, allocations: 0.735 MB / 0.5652 GB, free: 0.5156 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.862e-06/0.3577, allocations: 4 kB / 0.5652 GB, free: 0.5117 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.828e-05/0.3577, allocations: 4 kB / 0.5652 GB, free: 0.5078 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005557/0.3583, allocations: 387.1 kB / 0.5656 GB, free: 132 kB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.042e-06/0.3583, allocations: 3.984 kB / 0.5656 GB, free: 128 kB / 398.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3583, allocations: 3.938 kB / 0.5656 GB, free: 124 kB / 398.1 MB Notification: Performance of Transformations before backend: time 5.13e-06/0.3583, allocations: 0 / 0.5656 GB, free: 124 kB / 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.0004949/0.3588, allocations: 343.4 kB / 0.5659 GB, free: 15.75 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.553e-05/0.3588, allocations: 8.031 kB / 0.5659 GB, free: 15.74 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.562e-05/0.3589, allocations: 38.7 kB / 0.566 GB, free: 15.7 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.714e-05/0.3589, allocations: 4.938 kB / 0.566 GB, free: 15.69 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001034/0.359, allocations: 106.5 kB / 0.5661 GB, free: 15.56 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.373e-05/0.359, allocations: 384 / 0.5661 GB, free: 15.56 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.199e-05/0.3591, allocations: 384 / 0.5661 GB, free: 15.56 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001145/0.3592, allocations: 37.81 kB / 0.5661 GB, free: 15.52 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/0.3592, allocations: 0 / 0.5661 GB, free: 15.52 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.458e-06/0.3592, allocations: 8 kB / 0.5661 GB, free: 15.51 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/0.3592, allocations: 0 / 0.5661 GB, free: 15.51 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.41e-05/0.3592, allocations: 3.938 kB / 0.5661 GB, free: 15.51 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002648/0.3595, allocations: 204 kB / 0.5663 GB, free: 15.27 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.126e-05/0.3595, allocations: 22.61 kB / 0.5663 GB, free: 15.23 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.473e-05/0.3596, allocations: 8.922 kB / 0.5664 GB, free: 15.22 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.382e-05/0.3596, allocations: 4 kB / 0.5664 GB, free: 15.22 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.758e-05/0.3597, allocations: 60.27 kB / 0.5664 GB, free: 15.14 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 1.222e-06/0.3597, allocations: 0 / 0.5664 GB, free: 15.14 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002138/0.3599, allocations: 75.33 kB / 0.5665 GB, free: 15.06 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.7e-05/0.3599, allocations: 77.11 kB / 0.5666 GB, free: 14.96 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.577e-05/0.36, allocations: 89.86 kB / 0.5666 GB, free: 14.87 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.723e-05/0.36, allocations: 29.64 kB / 0.5667 GB, free: 14.83 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.504e-05/0.36, allocations: 80.14 kB / 0.5668 GB, free: 14.75 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.167e-05/0.3601, allocations: 8.125 kB / 0.5668 GB, free: 14.74 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.337e-05/0.3601, allocations: 17.7 kB / 0.5668 GB, free: 14.72 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000152/0.3603, allocations: 310.8 kB / 0.5671 GB, free: 14.41 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.344e-05/0.3603, allocations: 4 kB / 0.5671 GB, free: 14.4 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.003e-06/0.3603, allocations: 0 / 0.5671 GB, free: 14.4 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.448e-05/0.3603, allocations: 68.27 kB / 0.5671 GB, free: 14.32 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.327e-06/0.3603, allocations: 3.938 kB / 0.5671 GB, free: 14.32 MB / 414.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.993e-05/0.3604, allocations: 75.39 kB / 0.5672 GB, free: 14.23 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.01e-05/0.3605, allocations: 36.2 kB / 0.5673 GB, free: 14.19 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.968e-06/0.3605, allocations: 0 / 0.5673 GB, free: 14.19 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.436e-05/0.3605, allocations: 0 / 0.5673 GB, free: 14.19 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.426e-05/0.3605, allocations: 3.938 kB / 0.5673 GB, free: 14.19 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.929e-06/0.3605, allocations: 0 / 0.5673 GB, free: 14.19 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.859e-05/0.3605, allocations: 3.953 kB / 0.5673 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.072e-06/0.3605, allocations: 0 / 0.5673 GB, free: 14.18 MB / 414.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.0001054/0.3606, allocations: 143.5 kB / 0.5674 GB, free: 14.03 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.074e-05/0.3607, allocations: 32 / 0.5674 GB, free: 14.03 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.959e-05/0.3607, allocations: 11.16 kB / 0.5674 GB, free: 14.01 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.042e-06/0.3607, allocations: 4 kB / 0.5674 GB, free: 14.01 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.3607, allocations: 0 / 0.5674 GB, free: 14.01 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-06/0.3607, allocations: 0 / 0.5674 GB, free: 14.01 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002791/0.361, allocations: 267.3 kB / 0.5677 GB, free: 13.69 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.361, allocations: 4 kB / 0.5677 GB, free: 13.69 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.5e-06/0.361, allocations: 4 kB / 0.5677 GB, free: 13.68 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.172e-06/0.361, allocations: 0 / 0.5677 GB, free: 13.68 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.107e-06/0.361, allocations: 3.984 kB / 0.5677 GB, free: 13.68 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.361, allocations: 4.031 kB / 0.5677 GB, free: 13.68 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.361, allocations: 0 / 0.5677 GB, free: 13.68 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001484/0.3611, allocations: 169.2 kB / 0.5678 GB, free: 13.49 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.343e-06/0.3611, allocations: 11.92 kB / 0.5679 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.148e-05/0.3612, allocations: 0 / 0.5679 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.381e-05/0.3612, allocations: 4 kB / 0.5679 GB, free: 13.47 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.813e-05/0.3612, allocations: 0 / 0.5679 GB, free: 13.47 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.746e-06/0.3612, allocations: 4.031 kB / 0.5679 GB, free: 13.47 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.844e-05/0.3613, allocations: 79.22 kB / 0.5679 GB, free: 13.39 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3613, allocations: 0 / 0.5679 GB, free: 13.39 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004222/0.3617, allocations: 135.5 kB / 0.5681 GB, free: 13.26 MB / 414.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.001161/0.3628, allocations: 0.9111 MB / 0.569 GB, free: 12.32 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000125/0.363, allocations: 63.33 kB / 0.569 GB, free: 12.24 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.363, allocations: 4 kB / 0.569 GB, free: 12.24 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.766e-05/0.363, allocations: 63.47 kB / 0.5691 GB, free: 12.16 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001862/0.3632, allocations: 0 / 0.5691 GB, free: 12.16 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001096/0.3643, allocations: 1.207 MB / 0.5703 GB, free: 10.87 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003361/0.3646, allocations: 0.6729 MB / 0.5709 GB, free: 10.17 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 9.367e-06/0.3646, allocations: 0 / 0.5709 GB, free: 10.17 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.927e-05/0.3647, allocations: 11.44 kB / 0.5709 GB, free: 10.16 MB / 414.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3647, allocations: 0 / 0.5709 GB, free: 10.16 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02682/0.3915, allocations: 4.551 MB / 0.5754 GB, free: 5.676 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.975/8.366, allocations: 21.3 kB / 0.5754 GB, free: 5.66 MB / 414.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.323496696073562] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 8.438820553943515 8.46173148 8.099341753 Calling exit ...