Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexFunctions.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.001407/0.001407, allocations: 120.2 kB / 18.5 MB, free: 4.578 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.001517/0.001517, allocations: 205 kB / 21.45 MB, free: 1.629 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.515/1.515, 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.2425/0.2425, allocations: 46.92 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.ComplexMath.TestComplexFunctions,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_ComplexMath_TestComplexFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexFunctions,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_ComplexMath_TestComplexFunctions",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.002353/0.002353, allocations: 80.14 kB / 0.4916 GB, free: 7.773 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1267/0.129, allocations: 66.03 MB / 0.5561 GB, free: 5.605 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001488/0.1305, allocations: 490.2 kB / 0.5566 GB, free: 5.121 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.00377/0.1343, allocations: 2.422 MB / 0.559 GB, free: 2.68 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.199e-05/0.1343, allocations: 0 / 0.559 GB, free: 2.68 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.046e-05/0.1343, allocations: 0 / 0.559 GB, free: 2.68 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 6.001e-06/0.1343, allocations: 0 / 0.559 GB, free: 2.68 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/ComplexMath.mo:4:3-189:23:writable] Warning: Pure function 'ModelicaTest.ComplexMath.ComplexFunctions' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.002812/0.1371, allocations: 1.155 MB / 0.5601 GB, free: 1.523 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.367e-05/0.1372, allocations: 3.984 kB / 0.5601 GB, free: 1.52 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.922e-05/0.1372, allocations: 4 kB / 0.5601 GB, free: 1.516 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.71e-05/0.1372, allocations: 0 / 0.5601 GB, free: 1.516 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.949e-05/0.1372, allocations: 0 / 0.5601 GB, free: 1.516 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 4.899e-06/0.1372, allocations: 0 / 0.5601 GB, free: 1.516 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001683/0.1389, allocations: 1.038 MB / 0.5611 GB, free: 488 kB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.293e-06/0.1389, allocations: 0 / 0.5611 GB, free: 488 kB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.772e-05/0.139, allocations: 8 kB / 0.5611 GB, free: 480 kB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006457/0.1396, allocations: 451 kB / 0.5615 GB, free: 28 kB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.1396, allocations: 0 / 0.5615 GB, free: 28 kB / 414.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1396, allocations: 0 / 0.5615 GB, free: 28 kB / 414.1 MB Notification: Performance of Transformations before backend: time 6.161e-06/0.1396, allocations: 0 / 0.5615 GB, free: 28 kB / 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.000608/0.1402, allocations: 448.3 kB / 0.562 GB, free: 15.54 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.925e-05/0.1403, allocations: 11.97 kB / 0.562 GB, free: 15.52 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.513e-05/0.1403, allocations: 30.75 kB / 0.562 GB, free: 15.48 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.091e-05/0.1403, allocations: 0.9375 kB / 0.562 GB, free: 15.48 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001359/0.1405, allocations: 160.4 kB / 0.5622 GB, free: 15.29 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.146e-05/0.1405, allocations: 8.359 kB / 0.5622 GB, free: 15.28 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.154e-05/0.1405, allocations: 4.375 kB / 0.5622 GB, free: 15.28 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.755e-05/0.1406, allocations: 33.81 kB / 0.5622 GB, free: 15.24 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.953e-06/0.1406, allocations: 0 / 0.5622 GB, free: 15.24 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.135e-06/0.1406, allocations: 0 / 0.5622 GB, free: 15.24 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.999e-06/0.1406, allocations: 4 kB / 0.5622 GB, free: 15.23 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.994e-05/0.1406, allocations: 3.938 kB / 0.5622 GB, free: 15.23 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001566/0.1408, allocations: 145.7 kB / 0.5624 GB, free: 15.04 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.884e-05/0.1408, allocations: 26.59 kB / 0.5624 GB, free: 15 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.465e-05/0.1409, allocations: 4.859 kB / 0.5624 GB, free: 15 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.873e-06/0.1409, allocations: 0 / 0.5624 GB, free: 15 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.33e-05/0.1409, allocations: 60.2 kB / 0.5624 GB, free: 14.92 MB / 430.1 MB Notification: Performance of pre-optimization done (n=1): time 8.82e-07/0.1409, allocations: 0 / 0.5624 GB, free: 14.92 MB / 430.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001844/0.1411, allocations: 67.41 kB / 0.5625 GB, free: 14.84 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.465e-05/0.1412, allocations: 89.03 kB / 0.5626 GB, free: 14.74 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.525e-05/0.1412, allocations: 97.94 kB / 0.5627 GB, free: 14.63 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.717e-05/0.1413, allocations: 25.7 kB / 0.5627 GB, free: 14.6 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.63e-05/0.1413, allocations: 80.14 kB / 0.5628 GB, free: 14.52 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.896e-05/0.1413, allocations: 0 / 0.5628 GB, free: 14.52 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.083e-05/0.1413, allocations: 13.72 kB / 0.5628 GB, free: 14.5 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001567/0.1415, allocations: 310.8 kB / 0.5631 GB, free: 14.19 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.447e-06/0.1415, allocations: 0 / 0.5631 GB, free: 14.19 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.307e-06/0.1415, allocations: 4 kB / 0.5631 GB, free: 14.18 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.81e-05/0.1416, allocations: 64.33 kB / 0.5632 GB, free: 14.11 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.1416, allocations: 0 / 0.5632 GB, free: 14.11 MB / 430.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.208e-05/0.1417, allocations: 67.33 kB / 0.5632 GB, free: 14.03 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.806e-05/0.1417, allocations: 33.64 kB / 0.5633 GB, free: 13.99 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.639e-06/0.1417, allocations: 0 / 0.5633 GB, free: 13.99 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.208e-05/0.1417, allocations: 0 / 0.5633 GB, free: 13.99 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.11e-07/0.1417, allocations: 4 kB / 0.5633 GB, free: 13.98 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.839e-06/0.1417, allocations: 0 / 0.5633 GB, free: 13.98 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.766e-05/0.1417, allocations: 0 / 0.5633 GB, free: 13.98 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.123e-06/0.1418, allocations: 7.969 kB / 0.5633 GB, free: 13.98 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: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * 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.0001013/0.1419, allocations: 143.5 kB / 0.5634 GB, free: 13.82 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.011e-05/0.1419, allocations: 3.938 kB / 0.5634 GB, free: 13.82 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.703e-06/0.1419, allocations: 3.125 kB / 0.5634 GB, free: 13.82 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-06/0.1419, allocations: 0 / 0.5634 GB, free: 13.82 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.946e-06/0.1419, allocations: 0 / 0.5634 GB, free: 13.82 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.693e-06/0.1419, allocations: 0 / 0.5634 GB, free: 13.82 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000118/0.142, allocations: 153.7 kB / 0.5636 GB, free: 13.62 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.51e-07/0.142, allocations: 0 / 0.5636 GB, free: 13.62 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.21e-07/0.142, allocations: 4 kB / 0.5636 GB, free: 13.61 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/0.142, allocations: 3.938 kB / 0.5636 GB, free: 13.61 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.162e-06/0.142, allocations: 0 / 0.5636 GB, free: 13.61 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.61e-07/0.142, allocations: 0 / 0.5636 GB, free: 13.61 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.142, allocations: 0 / 0.5636 GB, free: 13.61 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001113/0.1421, allocations: 94.77 kB / 0.5637 GB, free: 13.49 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.469e-05/0.1422, allocations: 81.05 kB / 0.5637 GB, free: 13.39 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.249e-05/0.1422, allocations: 4 kB / 0.5637 GB, free: 13.39 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.426e-06/0.1422, allocations: 4.031 kB / 0.5637 GB, free: 13.39 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.182e-05/0.1422, allocations: 0 / 0.5637 GB, free: 13.39 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.495e-06/0.1422, allocations: 0 / 0.5637 GB, free: 13.39 MB / 430.1 MB Notification: Performance of sorting global known variables: time 3.565e-05/0.1422, allocations: 75.28 kB / 0.5638 GB, free: 13.31 MB / 430.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1422, allocations: 0 / 0.5638 GB, free: 13.31 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0004882/0.1427, allocations: 163.5 kB / 0.564 GB, free: 13.15 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: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * 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.001122/0.1438, allocations: 0.9159 MB / 0.5649 GB, free: 12.2 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001041/0.1439, allocations: 67.41 kB / 0.5649 GB, free: 12.12 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.1439, allocations: 0 / 0.5649 GB, free: 12.12 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 4.558e-05/0.144, allocations: 51.41 kB / 0.565 GB, free: 12.06 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001393/0.1441, allocations: 10.17 kB / 0.565 GB, free: 12.05 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004023/0.1445, allocations: 186.2 kB / 0.5652 GB, free: 11.83 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003121/0.1448, allocations: 0.6768 MB / 0.5658 GB, free: 11.13 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 6.062e-06/0.1449, allocations: 3.938 kB / 0.5658 GB, free: 11.12 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.279e-05/0.1449, allocations: 7.438 kB / 0.5658 GB, free: 11.12 MB / 430.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1449, allocations: 4.125 kB / 0.5658 GB, free: 11.11 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02995/0.1748, allocations: 5.68 MB / 0.5714 GB, free: 5.523 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.436/8.611, allocations: 0 / 0.5714 GB, free: 5.523 MB / 430.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexFunctions.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexFunctions.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexFunctions_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_ComplexMath_TestComplexFunctions.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.705116678960621] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 8.682222018949687 8.70694292 8.563017856 Calling exit ...