Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions.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.001316/0.001316, allocations: 122.5 kB / 18.51 MB, free: 4.539 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.001412/0.001412, allocations: 215.2 kB / 21.46 MB, free: 1.59 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.491/1.491, allocations: 230.4 MB / 254.7 MB, free: 15.16 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.2338/0.2338, allocations: 46.92 MB / 357.7 MB, free: 10.23 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.TestScalarFunctions,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestScalarFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestScalarFunctions,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestScalarFunctions",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.002228/0.002228, allocations: 71.88 kB / 0.4916 GB, free: 7.766 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1282/0.1305, allocations: 66.05 MB / 0.5561 GB, free: 5.59 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001527/0.132, allocations: 494.4 kB / 0.5566 GB, free: 5.102 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.002249/0.1342, allocations: 1.655 MB / 0.5582 GB, free: 3.43 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.238e-05/0.1343, allocations: 3.938 kB / 0.5582 GB, free: 3.426 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.009e-05/0.1343, allocations: 0 / 0.5582 GB, free: 3.426 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 3.937e-06/0.1343, allocations: 0 / 0.5582 GB, free: 3.426 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/Math.mo:4:3-36:22:writable] Warning: Pure function 'ModelicaTest.Math.ScalarFunctions' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0005919/0.1349, allocations: 159.4 kB / 0.5584 GB, free: 3.27 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 4.36e-05/0.1349, allocations: 8 kB / 0.5584 GB, free: 3.262 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.437e-05/0.1349, allocations: 3.984 kB / 0.5584 GB, free: 3.258 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.338e-05/0.135, allocations: 0 / 0.5584 GB, free: 3.258 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.113e-05/0.135, allocations: 4 kB / 0.5584 GB, free: 3.254 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.412e-06/0.135, allocations: 0 / 0.5584 GB, free: 3.254 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003515/0.1353, allocations: 119.9 kB / 0.5585 GB, free: 3.137 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.464e-06/0.1353, allocations: 0 / 0.5585 GB, free: 3.137 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.557e-05/0.1354, allocations: 0 / 0.5585 GB, free: 3.137 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001123/0.1355, allocations: 35.97 kB / 0.5586 GB, free: 3.102 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.552e-06/0.1355, allocations: 3.984 kB / 0.5586 GB, free: 3.098 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.1355, allocations: 0 / 0.5586 GB, free: 3.098 MB / 414.1 MB Notification: Performance of Transformations before backend: time 9.348e-06/0.1355, allocations: 3.938 kB / 0.5586 GB, free: 3.094 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.0003634/0.1359, allocations: 353.1 kB / 0.5589 GB, free: 2.695 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.6e-05/0.1359, allocations: 8.031 kB / 0.5589 GB, free: 2.688 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.208e-05/0.1359, allocations: 34.75 kB / 0.5589 GB, free: 2.645 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.329e-05/0.1359, allocations: 0.9375 kB / 0.5589 GB, free: 2.645 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001135/0.1361, allocations: 168.3 kB / 0.5591 GB, free: 2.441 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.072e-05/0.1361, allocations: 384 / 0.5591 GB, free: 2.441 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.157e-06/0.1361, allocations: 4.375 kB / 0.5591 GB, free: 2.438 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.92e-05/0.1362, allocations: 33.83 kB / 0.5591 GB, free: 2.398 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.552e-06/0.1362, allocations: 0 / 0.5591 GB, free: 2.398 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.773e-06/0.1362, allocations: 0 / 0.5591 GB, free: 2.398 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.697e-06/0.1362, allocations: 0 / 0.5591 GB, free: 2.398 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.488e-05/0.1362, allocations: 0 / 0.5591 GB, free: 2.398 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001472/0.1363, allocations: 157.6 kB / 0.5593 GB, free: 2.195 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.105e-05/0.1364, allocations: 14.58 kB / 0.5593 GB, free: 2.172 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.513e-05/0.1364, allocations: 12.86 kB / 0.5593 GB, free: 2.156 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.878e-06/0.1364, allocations: 4.094 kB / 0.5593 GB, free: 2.152 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.281e-05/0.1365, allocations: 60.2 kB / 0.5594 GB, free: 2.078 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 8.92e-07/0.1365, allocations: 0 / 0.5594 GB, free: 2.078 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001621/0.1366, allocations: 71.33 kB / 0.5594 GB, free: 1.996 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.471e-05/0.1367, allocations: 77.11 kB / 0.5595 GB, free: 1.902 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.35e-05/0.1367, allocations: 93.81 kB / 0.5596 GB, free: 1.801 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.389e-05/0.1367, allocations: 29.83 kB / 0.5596 GB, free: 1.766 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.29e-05/0.1368, allocations: 80.14 kB / 0.5597 GB, free: 1.684 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.404e-05/0.1368, allocations: 0 / 0.5597 GB, free: 1.684 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.678e-05/0.1368, allocations: 13.72 kB / 0.5597 GB, free: 1.664 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001367/0.137, allocations: 310.8 kB / 0.56 GB, free: 1.352 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.446e-06/0.137, allocations: 0 / 0.56 GB, free: 1.352 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.3e-05/0.137, allocations: 11.98 kB / 0.56 GB, free: 1.34 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.456e-05/0.137, allocations: 64.33 kB / 0.5601 GB, free: 1.262 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.113e-06/0.137, allocations: 0 / 0.5601 GB, free: 1.262 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.933e-05/0.1371, allocations: 59.34 kB / 0.5601 GB, free: 1.191 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.248e-05/0.1371, allocations: 37.64 kB / 0.5602 GB, free: 1.148 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/0.1372, allocations: 3.938 kB / 0.5602 GB, free: 1.145 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.336e-05/0.1372, allocations: 3.984 kB / 0.5602 GB, free: 1.141 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.865e-06/0.1372, allocations: 4 kB / 0.5602 GB, free: 1.137 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.881e-06/0.1372, allocations: 3.984 kB / 0.5602 GB, free: 1.133 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.476e-05/0.1372, allocations: 0 / 0.5602 GB, free: 1.133 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.884e-06/0.1372, allocations: 4 kB / 0.5602 GB, free: 1.129 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: 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 9.038e-05/0.1373, allocations: 139.6 kB / 0.5603 GB, free: 0.9766 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.829e-06/0.1373, allocations: 3.938 kB / 0.5603 GB, free: 0.9727 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.185e-06/0.1373, allocations: 3.125 kB / 0.5603 GB, free: 0.9727 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.42e-07/0.1373, allocations: 4 kB / 0.5603 GB, free: 0.9688 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.1373, allocations: 0 / 0.5603 GB, free: 0.9688 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.944e-06/0.1373, allocations: 0 / 0.5603 GB, free: 0.9688 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001193/0.1374, allocations: 149.7 kB / 0.5605 GB, free: 0.7734 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.32e-07/0.1374, allocations: 0 / 0.5605 GB, free: 0.7734 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.3e-07/0.1374, allocations: 3.938 kB / 0.5605 GB, free: 0.7695 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/0.1374, allocations: 7.938 kB / 0.5605 GB, free: 0.7617 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.853e-06/0.1374, allocations: 4 kB / 0.5605 GB, free: 0.7578 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.42e-07/0.1374, allocations: 0 / 0.5605 GB, free: 0.7578 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.1374, allocations: 0 / 0.5605 GB, free: 0.7578 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001115/0.1376, allocations: 94.77 kB / 0.5606 GB, free: 0.6406 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.787e-05/0.1376, allocations: 81.05 kB / 0.5607 GB, free: 0.543 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.09e-05/0.1376, allocations: 0 / 0.5607 GB, free: 0.543 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.396e-06/0.1376, allocations: 0 / 0.5607 GB, free: 0.543 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.29e-05/0.1376, allocations: 4.031 kB / 0.5607 GB, free: 0.5391 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.759e-06/0.1376, allocations: 4 kB / 0.5607 GB, free: 0.5352 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.619e-05/0.1377, allocations: 79.27 kB / 0.5608 GB, free: 468 kB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1377, allocations: 0 / 0.5608 GB, free: 468 kB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002218/0.1379, allocations: 19.94 kB / 0.5608 GB, free: 448 kB / 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: 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.0006064/0.1385, allocations: 0.6635 MB / 0.5614 GB, free: 15.74 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001017/0.1386, allocations: 67.33 kB / 0.5615 GB, free: 15.66 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.1386, allocations: 0 / 0.5615 GB, free: 15.66 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 3.78e-05/0.1386, allocations: 59.34 kB / 0.5615 GB, free: 15.59 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001231/0.1388, allocations: 5.656 kB / 0.5616 GB, free: 15.59 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000288/0.1391, allocations: 126.8 kB / 0.5617 GB, free: 15.43 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003013/0.1394, allocations: 0.669 MB / 0.5623 GB, free: 14.73 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 5.771e-06/0.1394, allocations: 0 / 0.5623 GB, free: 14.73 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.476e-05/0.1394, allocations: 11.44 kB / 0.5623 GB, free: 14.72 MB / 430.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1394, allocations: 3.938 kB / 0.5623 GB, free: 14.71 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02301/0.1624, allocations: 1.487 MB / 0.5638 GB, free: 13.31 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.779/7.942, allocations: 8 kB / 0.5638 GB, free: 13.3 MB / 430.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions_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_TestScalarFunctions.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.987680678255856] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 8.006507996004075 8.021486075 7.882928696 Calling exit ...