Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile.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.001354/0.001354, allocations: 122.5 kB / 18.51 MB, free: 4.52 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.566 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.02 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.2283/0.2283, allocations: 46.93 MB / 357.7 MB, free: 10.29 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.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestWriteFile",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.4916 GB, free: 7.828 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1185/0.1209, allocations: 66.05 MB / 0.5561 GB, free: 5.652 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001553/0.1224, allocations: 490.4 kB / 0.5566 GB, free: 5.168 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005294/0.1229, allocations: 216 kB / 0.5568 GB, free: 4.957 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.141e-05/0.123, allocations: 4 kB / 0.5568 GB, free: 4.953 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.049e-05/0.123, allocations: 4 kB / 0.5568 GB, free: 4.949 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 4.699e-06/0.123, allocations: 0 / 0.5568 GB, free: 4.949 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/Utilities.mo:289:3-320:16:writable] Warning: Pure function 'ModelicaTest.Utilities.WriteFile' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0002689/0.1232, allocations: 39.84 kB / 0.5569 GB, free: 4.91 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.138e-05/0.1233, allocations: 7.984 kB / 0.5569 GB, free: 4.902 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.915e-05/0.1233, allocations: 0 / 0.5569 GB, free: 4.902 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.224e-05/0.1233, allocations: 0 / 0.5569 GB, free: 4.902 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.793e-05/0.1234, allocations: 0 / 0.5569 GB, free: 4.902 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 4.568e-06/0.1234, allocations: 0 / 0.5569 GB, free: 4.902 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000123/0.1235, allocations: 55.95 kB / 0.5569 GB, free: 4.848 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.695e-06/0.1235, allocations: 3.984 kB / 0.5569 GB, free: 4.844 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.487e-05/0.1235, allocations: 7.938 kB / 0.5569 GB, free: 4.836 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001093/0.1236, allocations: 43.89 kB / 0.557 GB, free: 4.793 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.586e-06/0.1236, allocations: 0 / 0.557 GB, free: 4.793 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.1236, allocations: 0 / 0.557 GB, free: 4.793 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.151e-05/0.1236, allocations: 3.984 kB / 0.557 GB, free: 4.789 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.0003425/0.124, allocations: 357 kB / 0.5573 GB, free: 4.383 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.449e-05/0.124, allocations: 8.031 kB / 0.5573 GB, free: 4.375 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.252e-05/0.124, allocations: 34.73 kB / 0.5574 GB, free: 4.332 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.929e-05/0.1241, allocations: 0.9375 kB / 0.5574 GB, free: 4.332 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001035/0.1242, allocations: 168.4 kB / 0.5575 GB, free: 4.129 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.147e-06/0.1242, allocations: 384 / 0.5575 GB, free: 4.129 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.466e-06/0.1242, allocations: 384 / 0.5575 GB, free: 4.129 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.559e-05/0.1243, allocations: 30.27 kB / 0.5575 GB, free: 4.094 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.726e-06/0.1243, allocations: 3.938 kB / 0.5576 GB, free: 4.09 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.502e-06/0.1243, allocations: 0 / 0.5576 GB, free: 4.09 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.803e-06/0.1243, allocations: 0 / 0.5576 GB, free: 4.09 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.485e-05/0.1243, allocations: 0 / 0.5576 GB, free: 4.09 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001374/0.1244, allocations: 149.7 kB / 0.5577 GB, free: 3.895 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.117e-05/0.1245, allocations: 26.52 kB / 0.5577 GB, free: 3.859 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.518e-05/0.1245, allocations: 4.859 kB / 0.5577 GB, free: 3.852 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.951e-06/0.1245, allocations: 0 / 0.5577 GB, free: 3.852 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.982e-05/0.1245, allocations: 60.33 kB / 0.5578 GB, free: 3.777 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 9.51e-07/0.1245, allocations: 0 / 0.5578 GB, free: 3.777 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001577/0.1247, allocations: 71.27 kB / 0.5579 GB, free: 3.695 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.342e-05/0.1248, allocations: 81.11 kB / 0.5579 GB, free: 3.598 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.826e-05/0.1248, allocations: 101.9 kB / 0.558 GB, free: 3.488 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.48e-05/0.1248, allocations: 25.7 kB / 0.558 GB, free: 3.457 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.349e-05/0.1249, allocations: 80.14 kB / 0.5581 GB, free: 3.375 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.32e-05/0.1249, allocations: 0 / 0.5581 GB, free: 3.375 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.782e-05/0.1249, allocations: 13.72 kB / 0.5581 GB, free: 3.355 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001354/0.1251, allocations: 310.8 kB / 0.5584 GB, free: 3.043 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.087e-05/0.1251, allocations: 3.984 kB / 0.5584 GB, free: 3.039 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.364e-06/0.1251, allocations: 4 kB / 0.5584 GB, free: 3.035 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.246e-05/0.1251, allocations: 64.33 kB / 0.5585 GB, free: 2.957 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.1251, allocations: 0 / 0.5585 GB, free: 2.957 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.277e-05/0.1252, allocations: 63.34 kB / 0.5586 GB, free: 2.883 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.41e-05/0.1252, allocations: 37.69 kB / 0.5586 GB, free: 2.84 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.591e-06/0.1252, allocations: 3.938 kB / 0.5586 GB, free: 2.836 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.006e-05/0.1252, allocations: 0 / 0.5586 GB, free: 2.836 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.71e-07/0.1252, allocations: 0 / 0.5586 GB, free: 2.836 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.797e-06/0.1253, allocations: 0 / 0.5586 GB, free: 2.836 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.331e-05/0.1253, allocations: 0 / 0.5586 GB, free: 2.836 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.39e-06/0.1253, allocations: 7.969 kB / 0.5586 GB, free: 2.828 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.414e-05/0.1254, allocations: 139.5 kB / 0.5587 GB, free: 2.676 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.504e-06/0.1254, allocations: 0 / 0.5587 GB, free: 2.676 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.198e-06/0.1254, allocations: 7.062 kB / 0.5588 GB, free: 2.672 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.062e-06/0.1254, allocations: 0 / 0.5588 GB, free: 2.672 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.966e-06/0.1254, allocations: 0 / 0.5588 GB, free: 2.672 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.1254, allocations: 7.984 kB / 0.5588 GB, free: 2.664 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001101/0.1255, allocations: 149.7 kB / 0.5589 GB, free: 2.469 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.806e-06/0.1255, allocations: 3.984 kB / 0.5589 GB, free: 2.465 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.41e-07/0.1255, allocations: 4 kB / 0.5589 GB, free: 2.461 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.242e-06/0.1255, allocations: 0 / 0.5589 GB, free: 2.461 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.426e-06/0.1255, allocations: 7.938 kB / 0.5589 GB, free: 2.453 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.1255, allocations: 0 / 0.5589 GB, free: 2.453 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.32e-07/0.1255, allocations: 0 / 0.5589 GB, free: 2.453 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.878e-05/0.1256, allocations: 90.77 kB / 0.559 GB, free: 2.34 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.635e-05/0.1257, allocations: 81.11 kB / 0.5591 GB, free: 2.242 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.234e-05/0.1257, allocations: 3.938 kB / 0.5591 GB, free: 2.238 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.556e-06/0.1257, allocations: 4.031 kB / 0.5591 GB, free: 2.234 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.385e-05/0.1257, allocations: 3.984 kB / 0.5591 GB, free: 2.23 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.434e-06/0.1257, allocations: 3.938 kB / 0.5591 GB, free: 2.227 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.183e-05/0.1257, allocations: 80.94 kB / 0.5592 GB, free: 2.148 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1257, allocations: 0 / 0.5592 GB, free: 2.148 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002135/0.1259, allocations: 19.94 kB / 0.5592 GB, free: 2.129 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: 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.0007217/0.1267, allocations: 0.7064 MB / 0.5599 GB, free: 1.41 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 9.837e-05/0.1268, allocations: 59.34 kB / 0.5599 GB, free: 1.34 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.433e-06/0.1268, allocations: 0 / 0.5599 GB, free: 1.34 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.827e-05/0.1268, allocations: 59.41 kB / 0.56 GB, free: 1.27 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001174/0.1269, allocations: 2.188 kB / 0.56 GB, free: 1.27 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003009/0.1272, allocations: 118.6 kB / 0.5601 GB, free: 1.113 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003109/0.1275, allocations: 0.669 MB / 0.5608 GB, free: 428 kB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.3e-06/0.1275, allocations: 4.125 kB / 0.5608 GB, free: 424 kB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.824e-05/0.1276, allocations: 7.438 kB / 0.5608 GB, free: 416 kB / 414.1 MB Notification: Performance of SimCode: time 4.1e-07/0.1276, allocations: 0 / 0.5608 GB, free: 416 kB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02242/0.15, allocations: 1.419 MB / 0.5622 GB, free: 15.07 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.098/8.248, allocations: 12.06 kB / 0.5622 GB, free: 15.05 MB / 430.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile_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_Utilities_TestWriteFile.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.234792814124376] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 8.31690123071894 8.338910742 8.211265426 Calling exit ...