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.00125/0.00125, allocations: 109.2 kB / 19.8 MB, free: 2.516 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.001384/0.001384, allocations: 217.4 kB / 23 MB, free: 5.605 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.43/1.43, allocations: 230.2 MB / 256.2 MB, free: 8.699 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.2384/0.2384, allocations: 46.9 MB / 359.4 MB, free: 4.938 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.002514/0.002514, allocations: 79.86 kB / 0.4941 GB, free: 9.035 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3823/0.3848, allocations: 65.99 MB / 0.5586 GB, free: 5.176 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001952/0.3868, allocations: 0.4972 MB / 0.5591 GB, free: 4.676 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003526/0.3903, allocations: 2.058 MB / 0.5611 GB, free: 2.598 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.897e-05/0.3903, allocations: 0 / 0.5611 GB, free: 2.598 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.379e-05/0.3903, allocations: 0 / 0.5611 GB, free: 2.598 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.825e-06/0.3903, allocations: 0 / 0.5611 GB, free: 2.598 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.001631/0.392, allocations: 0.4905 MB / 0.5615 GB, free: 2.109 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.606e-05/0.392, allocations: 0 / 0.5615 GB, free: 2.109 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.433e-05/0.3921, allocations: 4 kB / 0.5615 GB, free: 2.105 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.481e-05/0.3921, allocations: 4 kB / 0.5615 GB, free: 2.102 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.487e-05/0.3921, allocations: 7.922 kB / 0.5616 GB, free: 2.094 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.925e-06/0.3921, allocations: 0 / 0.5616 GB, free: 2.094 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001183/0.3933, allocations: 0.6725 MB / 0.5622 GB, free: 1.422 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.148e-05/0.3933, allocations: 3.984 kB / 0.5622 GB, free: 1.418 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.616e-05/0.3933, allocations: 4 kB / 0.5622 GB, free: 1.414 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005923/0.3939, allocations: 387.1 kB / 0.5626 GB, free: 1.035 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.3939, allocations: 0 / 0.5626 GB, free: 1.035 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.3939, allocations: 0 / 0.5626 GB, free: 1.035 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.031e-06/0.3939, allocations: 0 / 0.5626 GB, free: 1.035 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.0005119/0.3945, allocations: 420.5 kB / 0.563 GB, free: 0.5703 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.056e-05/0.3945, allocations: 8.031 kB / 0.563 GB, free: 0.5625 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.786e-05/0.3946, allocations: 34.7 kB / 0.563 GB, free: 0.5195 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.665e-05/0.3946, allocations: 0.9375 kB / 0.563 GB, free: 0.5195 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001357/0.3947, allocations: 172.3 kB / 0.5632 GB, free: 320 kB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.174e-05/0.3947, allocations: 4.375 kB / 0.5632 GB, free: 316 kB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.684e-06/0.3948, allocations: 384 / 0.5632 GB, free: 316 kB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001131/0.3949, allocations: 37.81 kB / 0.5632 GB, free: 272 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.426e-06/0.3949, allocations: 0 / 0.5632 GB, free: 272 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.498e-06/0.3949, allocations: 4 kB / 0.5632 GB, free: 268 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.819e-06/0.3949, allocations: 0 / 0.5632 GB, free: 268 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.25e-05/0.3949, allocations: 4 kB / 0.5632 GB, free: 264 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003143/0.3952, allocations: 232.9 kB / 0.5635 GB, free: 15.98 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.535e-05/0.3953, allocations: 26.52 kB / 0.5635 GB, free: 15.95 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.177e-05/0.3953, allocations: 8.922 kB / 0.5635 GB, free: 15.93 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.035e-05/0.3953, allocations: 0 / 0.5635 GB, free: 15.93 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.577e-05/0.3954, allocations: 60.25 kB / 0.5636 GB, free: 15.86 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 1.082e-06/0.3954, allocations: 0 / 0.5636 GB, free: 15.86 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.000245/0.3956, allocations: 79.33 kB / 0.5636 GB, free: 15.77 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.623e-05/0.3957, allocations: 77.11 kB / 0.5637 GB, free: 15.68 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.578e-05/0.3958, allocations: 93.8 kB / 0.5638 GB, free: 15.57 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.014e-05/0.3958, allocations: 29.7 kB / 0.5638 GB, free: 15.54 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.803e-05/0.3958, allocations: 84.14 kB / 0.5639 GB, free: 15.45 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.177e-05/0.3959, allocations: 7.938 kB / 0.5639 GB, free: 15.45 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.873e-05/0.3959, allocations: 13.72 kB / 0.5639 GB, free: 15.43 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001523/0.3961, allocations: 310.8 kB / 0.5642 GB, free: 15.11 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.219e-05/0.3961, allocations: 4.125 kB / 0.5642 GB, free: 15.11 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.272e-05/0.3961, allocations: 8 kB / 0.5642 GB, free: 15.1 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.177e-05/0.3961, allocations: 60.27 kB / 0.5643 GB, free: 15.03 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.157e-06/0.3961, allocations: 3.938 kB / 0.5643 GB, free: 15.02 MB / 414.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.464e-05/0.3962, allocations: 71.33 kB / 0.5644 GB, free: 14.94 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.75e-05/0.3963, allocations: 33.7 kB / 0.5644 GB, free: 14.9 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.3963, allocations: 0 / 0.5644 GB, free: 14.9 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.526e-05/0.3963, allocations: 0 / 0.5644 GB, free: 14.9 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.547e-05/0.3963, allocations: 96 / 0.5644 GB, free: 14.9 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.688e-06/0.3963, allocations: 4 kB / 0.5644 GB, free: 14.9 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.175e-05/0.3963, allocations: 8 kB / 0.5644 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.593e-06/0.3963, allocations: 0 / 0.5644 GB, free: 14.89 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.0001154/0.3965, allocations: 139.5 kB / 0.5645 GB, free: 14.74 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.664e-05/0.3965, allocations: 8 kB / 0.5645 GB, free: 14.73 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.533e-05/0.3965, allocations: 3.125 kB / 0.5646 GB, free: 14.73 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.342e-06/0.3965, allocations: 0 / 0.5646 GB, free: 14.73 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.3965, allocations: 3.938 kB / 0.5646 GB, free: 14.73 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.989e-06/0.3965, allocations: 3.984 kB / 0.5646 GB, free: 14.72 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003059/0.3968, allocations: 304.2 kB / 0.5648 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.528e-06/0.3968, allocations: 3.984 kB / 0.5649 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.346e-06/0.3968, allocations: 0 / 0.5649 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.3968, allocations: 0 / 0.5649 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.532e-06/0.3968, allocations: 0 / 0.5649 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.3968, allocations: 0 / 0.5649 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.3968, allocations: 4 kB / 0.5649 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001526/0.397, allocations: 169.2 kB / 0.565 GB, free: 14.17 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.948e-05/0.397, allocations: 81.11 kB / 0.5651 GB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.514e-05/0.3971, allocations: 4 kB / 0.5651 GB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.104e-05/0.3971, allocations: 0 / 0.5651 GB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.543e-05/0.3971, allocations: 0 / 0.5651 GB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.776e-06/0.3971, allocations: 3.938 kB / 0.5651 GB, free: 14.06 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.942e-05/0.3972, allocations: 75.28 kB / 0.5652 GB, free: 13.99 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3972, allocations: 0 / 0.5652 GB, free: 13.99 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000449/0.3976, allocations: 135.5 kB / 0.5653 GB, free: 13.86 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.001186/0.3988, allocations: 0.9212 MB / 0.5662 GB, free: 12.91 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001419/0.3989, allocations: 59.41 kB / 0.5663 GB, free: 12.84 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.3989, allocations: 0 / 0.5663 GB, free: 12.84 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.783e-05/0.399, allocations: 63.34 kB / 0.5663 GB, free: 12.76 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002001/0.3992, allocations: 7.984 kB / 0.5663 GB, free: 12.75 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001266/0.4005, allocations: 1.207 MB / 0.5675 GB, free: 11.46 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000344/0.4008, allocations: 0.6768 MB / 0.5682 GB, free: 10.76 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.381e-05/0.4008, allocations: 0 / 0.5682 GB, free: 10.76 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.49e-05/0.4008, allocations: 7.438 kB / 0.5682 GB, free: 10.75 MB / 414.1 MB Notification: Performance of SimCode: time 3.1e-07/0.4008, allocations: 0 / 0.5682 GB, free: 10.75 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0297/0.4305, allocations: 4.539 MB / 0.5726 GB, free: 6.27 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.206/8.637, allocations: 10.45 kB / 0.5726 GB, free: 6.262 MB / 414.1 MB " [Timeout remaining time 651] (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.367681402014568] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 8.70587579900166 8.720768295 8.323980103 Calling exit ...