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.001314/0.001314, allocations: 119.5 kB / 18.45 MB, free: 4.613 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.001423/0.001424, allocations: 209.7 kB / 21.41 MB, free: 1.66 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.52/1.52, allocations: 227.4 MB / 251.7 MB, free: 80 kB / 190.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.3169/0.3169, allocations: 46.14 MB / 351.1 MB, free: 14.34 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.003253/0.003253, allocations: 81.66 kB / 489.6 MB, free: 28.36 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1642/0.1675, allocations: 62.45 MB / 0.5392 GB, free: 4.824 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.002784/0.1703, allocations: 0.4944 MB / 0.5396 GB, free: 4.324 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004469/0.1748, allocations: 2.036 MB / 0.5416 GB, free: 2.266 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.153e-05/0.1749, allocations: 0 / 0.5416 GB, free: 2.266 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.492e-05/0.1749, allocations: 0 / 0.5416 GB, free: 2.266 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.605e-06/0.1749, allocations: 0 / 0.5416 GB, free: 2.266 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.00197/0.1769, allocations: 0.4901 MB / 0.5421 GB, free: 1.777 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.943e-05/0.177, allocations: 0 / 0.5421 GB, free: 1.777 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.199e-05/0.1771, allocations: 7.984 kB / 0.5421 GB, free: 1.77 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.969e-05/0.1771, allocations: 4 kB / 0.5421 GB, free: 1.766 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.065e-05/0.1771, allocations: 0 / 0.5421 GB, free: 1.766 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.025e-05/0.1771, allocations: 0 / 0.5421 GB, free: 1.766 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001289/0.1784, allocations: 0.6359 MB / 0.5427 GB, free: 1.129 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.738e-06/0.1784, allocations: 0 / 0.5427 GB, free: 1.129 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.108e-05/0.1785, allocations: 0 / 0.5427 GB, free: 1.129 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008268/0.1793, allocations: 395.1 kB / 0.5431 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.1793, allocations: 0 / 0.5431 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.1793, allocations: 0 / 0.5431 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.359e-05/0.1793, allocations: 0 / 0.5431 GB, free: 0.7422 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.0006576/0.18, allocations: 420.4 kB / 0.5435 GB, free: 284 kB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.355e-05/0.1801, allocations: 12.03 kB / 0.5435 GB, free: 272 kB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.434e-05/0.1801, allocations: 42.67 kB / 0.5436 GB, free: 220 kB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.384e-05/0.1802, allocations: 4.938 kB / 0.5436 GB, free: 216 kB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001349/0.1803, allocations: 160.4 kB / 0.5437 GB, free: 16 kB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.871e-05/0.1803, allocations: 384 / 0.5437 GB, free: 16 kB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.779e-05/0.1804, allocations: 4.375 kB / 0.5437 GB, free: 12 kB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001677/0.1805, allocations: 33.83 kB / 0.5438 GB, free: 15.97 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.287e-06/0.1806, allocations: 4 kB / 0.5438 GB, free: 15.97 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.837e-06/0.1806, allocations: 0 / 0.5438 GB, free: 15.97 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.278e-05/0.1806, allocations: 4 kB / 0.5438 GB, free: 15.96 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.13e-05/0.1806, allocations: 3.984 kB / 0.5438 GB, free: 15.96 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000321/0.181, allocations: 236.8 kB / 0.544 GB, free: 15.68 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.153e-05/0.181, allocations: 22.59 kB / 0.544 GB, free: 15.65 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.916e-05/0.1811, allocations: 12.92 kB / 0.544 GB, free: 15.63 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.51e-05/0.1811, allocations: 4 kB / 0.544 GB, free: 15.63 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.693e-05/0.1812, allocations: 56.27 kB / 0.5441 GB, free: 15.56 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 1.222e-06/0.1812, allocations: 3.938 kB / 0.5441 GB, free: 15.55 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002311/0.1814, allocations: 79.33 kB / 0.5442 GB, free: 15.46 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.205e-05/0.1815, allocations: 77.11 kB / 0.5442 GB, free: 15.37 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.742e-05/0.1816, allocations: 89.86 kB / 0.5443 GB, free: 15.27 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.894e-05/0.1816, allocations: 25.7 kB / 0.5444 GB, free: 15.24 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.687e-05/0.1816, allocations: 80.14 kB / 0.5444 GB, free: 15.16 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.886e-05/0.1817, allocations: 7.953 kB / 0.5444 GB, free: 15.15 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.63e-05/0.1817, allocations: 13.66 kB / 0.5445 GB, free: 15.13 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001637/0.1819, allocations: 327 kB / 0.5448 GB, free: 14.8 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.318e-05/0.1819, allocations: 0 / 0.5448 GB, free: 14.8 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.646e-06/0.1819, allocations: 0 / 0.5448 GB, free: 14.8 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.57e-05/0.182, allocations: 68.27 kB / 0.5448 GB, free: 14.72 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.458e-06/0.182, allocations: 3.938 kB / 0.5448 GB, free: 14.72 MB / 414.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.857e-05/0.1821, allocations: 67.33 kB / 0.5449 GB, free: 14.64 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.559e-05/0.1822, allocations: 33.7 kB / 0.5449 GB, free: 14.6 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.119e-06/0.1822, allocations: 0 / 0.5449 GB, free: 14.6 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.616e-05/0.1822, allocations: 96 / 0.5449 GB, free: 14.6 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.717e-05/0.1822, allocations: 4 kB / 0.5449 GB, free: 14.6 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.962e-06/0.1822, allocations: 0 / 0.5449 GB, free: 14.6 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.936e-05/0.1823, allocations: 0 / 0.5449 GB, free: 14.6 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.125e-05/0.1823, allocations: 4 kB / 0.5449 GB, free: 14.59 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.000124/0.1824, allocations: 139.5 kB / 0.5451 GB, free: 14.44 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.694e-05/0.1824, allocations: 4 kB / 0.5451 GB, free: 14.44 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.998e-05/0.1825, allocations: 7.109 kB / 0.5451 GB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.1825, allocations: 0 / 0.5451 GB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.1825, allocations: 0 / 0.5451 GB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.065e-06/0.1825, allocations: 4 kB / 0.5451 GB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003208/0.1828, allocations: 300.2 kB / 0.5454 GB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.1828, allocations: 0 / 0.5454 GB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.472e-06/0.1828, allocations: 0 / 0.5454 GB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.295e-06/0.1829, allocations: 0 / 0.5454 GB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.796e-06/0.1829, allocations: 0 / 0.5454 GB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.1829, allocations: 0 / 0.5454 GB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.1829, allocations: 0 / 0.5454 GB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001784/0.1831, allocations: 181.2 kB / 0.5455 GB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.266e-05/0.1831, allocations: 77.11 kB / 0.5456 GB, free: 13.78 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.019e-05/0.1832, allocations: 3.984 kB / 0.5456 GB, free: 13.78 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.625e-05/0.1832, allocations: 7.938 kB / 0.5456 GB, free: 13.77 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.594e-05/0.1833, allocations: 4 kB / 0.5456 GB, free: 13.77 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.497e-06/0.1833, allocations: 0 / 0.5456 GB, free: 13.77 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.951e-05/0.1833, allocations: 75.31 kB / 0.5457 GB, free: 13.69 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1833, allocations: 0 / 0.5457 GB, free: 13.69 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006256/0.1839, allocations: 143.5 kB / 0.5458 GB, free: 13.55 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.001584/0.1855, allocations: 0.9122 MB / 0.5467 GB, free: 12.61 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001617/0.1857, allocations: 71.33 kB / 0.5468 GB, free: 12.53 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.1857, allocations: 0 / 0.5468 GB, free: 12.53 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.166e-05/0.1858, allocations: 55.41 kB / 0.5469 GB, free: 12.46 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002063/0.186, allocations: 4 kB / 0.5469 GB, free: 12.46 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001231/0.1872, allocations: 1.195 MB / 0.548 GB, free: 11.18 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003647/0.1876, allocations: 0.6768 MB / 0.5487 GB, free: 10.47 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.413e-05/0.1876, allocations: 0 / 0.5487 GB, free: 10.47 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.834e-05/0.1877, allocations: 11.44 kB / 0.5487 GB, free: 10.46 MB / 414.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1877, allocations: 0 / 0.5487 GB, free: 10.46 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03166/0.2193, allocations: 4.531 MB / 0.5531 GB, free: 6.016 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.171/8.391, allocations: 12.39 kB / 0.5531 GB, free: 6.008 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.680206026067026] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 8.459822576027364 8.473069560999999 8.290927467 Calling exit ...