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.001812/0.001812, allocations: 122.7 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.002423/0.002423, allocations: 210.5 kB / 21.46 MB, free: 1.625 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.494/1.494, allocations: 230.2 MB / 254.5 MB, free: 15.27 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.2302/0.2302, allocations: 46.89 MB / 357.4 MB, free: 10.54 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.002307/0.002307, allocations: 79.84 kB / 0.4912 GB, free: 8.594 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1207/0.123, allocations: 65.98 MB / 0.5556 GB, free: 6.484 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.00156/0.1246, allocations: 490.5 kB / 0.5561 GB, free: 6 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.000563/0.1252, allocations: 215.9 kB / 0.5563 GB, free: 5.789 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.984e-05/0.1252, allocations: 0 / 0.5563 GB, free: 5.789 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.494e-05/0.1252, allocations: 3.938 kB / 0.5563 GB, free: 5.785 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 4.889e-06/0.1252, allocations: 4 kB / 0.5563 GB, free: 5.781 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.0002668/0.1255, allocations: 43.84 kB / 0.5564 GB, free: 5.738 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 4.549e-05/0.1255, allocations: 0 / 0.5564 GB, free: 5.738 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.443e-05/0.1255, allocations: 0 / 0.5564 GB, free: 5.738 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.481e-05/0.1256, allocations: 7.984 kB / 0.5564 GB, free: 5.73 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.97e-05/0.1256, allocations: 0 / 0.5564 GB, free: 5.73 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.12e-06/0.1256, allocations: 0 / 0.5564 GB, free: 5.73 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001267/0.1257, allocations: 59.94 kB / 0.5564 GB, free: 5.672 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 6.642e-06/0.1257, allocations: 0 / 0.5564 GB, free: 5.672 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.506e-05/0.1257, allocations: 0 / 0.5564 GB, free: 5.672 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001134/0.1258, allocations: 43.88 kB / 0.5565 GB, free: 5.629 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.1258, allocations: 4 kB / 0.5565 GB, free: 5.625 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.1258, allocations: 0 / 0.5565 GB, free: 5.625 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.247e-06/0.1259, allocations: 0 / 0.5565 GB, free: 5.625 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.000364/0.1262, allocations: 349.2 kB / 0.5568 GB, free: 5.227 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.888e-05/0.1263, allocations: 12.03 kB / 0.5568 GB, free: 5.215 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.883e-05/0.1263, allocations: 30.75 kB / 0.5568 GB, free: 5.176 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.124e-05/0.1263, allocations: 0.9375 kB / 0.5568 GB, free: 5.176 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001156/0.1264, allocations: 164.4 kB / 0.557 GB, free: 4.977 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.089e-05/0.1264, allocations: 384 / 0.557 GB, free: 4.977 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.192e-06/0.1264, allocations: 384 / 0.557 GB, free: 4.977 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.491e-05/0.1265, allocations: 42.2 kB / 0.557 GB, free: 4.93 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.407e-06/0.1265, allocations: 3.938 kB / 0.557 GB, free: 4.926 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.643e-06/0.1265, allocations: 0 / 0.557 GB, free: 4.926 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.127e-06/0.1266, allocations: 0 / 0.557 GB, free: 4.926 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.73e-05/0.1266, allocations: 4 kB / 0.557 GB, free: 4.922 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001538/0.1267, allocations: 141.7 kB / 0.5572 GB, free: 4.734 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.243e-05/0.1268, allocations: 18.56 kB / 0.5572 GB, free: 4.707 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.937e-05/0.1268, allocations: 12.95 kB / 0.5572 GB, free: 4.691 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.775e-06/0.1268, allocations: 3.938 kB / 0.5572 GB, free: 4.688 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.954e-05/0.1269, allocations: 60.27 kB / 0.5573 GB, free: 4.613 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 1.022e-06/0.1269, allocations: 0 / 0.5573 GB, free: 4.613 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001663/0.127, allocations: 63.34 kB / 0.5573 GB, free: 4.539 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.022e-05/0.1271, allocations: 81.09 kB / 0.5574 GB, free: 4.441 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.751e-05/0.1271, allocations: 93.81 kB / 0.5575 GB, free: 4.34 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.488e-05/0.1272, allocations: 29.64 kB / 0.5575 GB, free: 4.305 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.798e-05/0.1272, allocations: 88.27 kB / 0.5576 GB, free: 4.215 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.832e-05/0.1272, allocations: 3.938 kB / 0.5576 GB, free: 4.211 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.898e-05/0.1272, allocations: 13.72 kB / 0.5576 GB, free: 4.191 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001454/0.1274, allocations: 314.8 kB / 0.5579 GB, free: 3.875 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.267e-05/0.1274, allocations: 4 kB / 0.5579 GB, free: 3.871 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.434e-06/0.1274, allocations: 3.938 kB / 0.5579 GB, free: 3.867 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.196e-05/0.1275, allocations: 60.27 kB / 0.558 GB, free: 3.793 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.689e-06/0.1275, allocations: 8.047 kB / 0.558 GB, free: 3.785 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.71e-05/0.1275, allocations: 63.41 kB / 0.5581 GB, free: 3.711 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.942e-05/0.1276, allocations: 31.42 kB / 0.5581 GB, free: 3.676 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.1276, allocations: 3.938 kB / 0.5581 GB, free: 3.672 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.194e-05/0.1276, allocations: 0 / 0.5581 GB, free: 3.672 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.92e-07/0.1276, allocations: 0 / 0.5581 GB, free: 3.672 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.007e-06/0.1276, allocations: 0 / 0.5581 GB, free: 3.672 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.655e-05/0.1276, allocations: 4 kB / 0.5581 GB, free: 3.668 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.022e-06/0.1276, allocations: 0 / 0.5581 GB, free: 3.668 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 0.0001015/0.1277, allocations: 139.6 kB / 0.5582 GB, free: 3.516 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.005e-05/0.1277, allocations: 4 kB / 0.5582 GB, free: 3.512 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.856e-06/0.1277, allocations: 11 kB / 0.5582 GB, free: 3.504 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.353e-06/0.1277, allocations: 0 / 0.5582 GB, free: 3.504 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.1277, allocations: 0 / 0.5582 GB, free: 3.504 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.964e-06/0.1277, allocations: 0 / 0.5582 GB, free: 3.504 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001371/0.1279, allocations: 149.7 kB / 0.5584 GB, free: 3.309 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.949e-06/0.1279, allocations: 7.984 kB / 0.5584 GB, free: 3.301 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.21e-07/0.1279, allocations: 4 kB / 0.5584 GB, free: 3.297 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.363e-06/0.1279, allocations: 0 / 0.5584 GB, free: 3.297 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.614e-06/0.1279, allocations: 7.938 kB / 0.5584 GB, free: 3.289 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.91e-07/0.1279, allocations: 0 / 0.5584 GB, free: 3.289 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.1279, allocations: 0 / 0.5584 GB, free: 3.289 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001122/0.128, allocations: 90.83 kB / 0.5585 GB, free: 3.176 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.414e-05/0.1281, allocations: 77.11 kB / 0.5586 GB, free: 3.082 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.248e-05/0.1281, allocations: 3.938 kB / 0.5586 GB, free: 3.078 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.316e-06/0.1281, allocations: 0 / 0.5586 GB, free: 3.078 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.538e-06/0.1281, allocations: 4 kB / 0.5586 GB, free: 3.074 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.695e-06/0.1281, allocations: 4.031 kB / 0.5586 GB, free: 3.07 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.952e-05/0.1281, allocations: 80.91 kB / 0.5587 GB, free: 2.992 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1281, allocations: 0 / 0.5587 GB, free: 2.992 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000219/0.1283, allocations: 23.86 kB / 0.5587 GB, free: 2.969 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.0007918/0.1291, allocations: 0.7283 MB / 0.5594 GB, free: 2.234 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 9.536e-05/0.1292, allocations: 63.39 kB / 0.5595 GB, free: 2.16 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.674e-06/0.1292, allocations: 0 / 0.5595 GB, free: 2.16 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.929e-05/0.1293, allocations: 55.34 kB / 0.5595 GB, free: 2.094 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001243/0.1294, allocations: 4 kB / 0.5595 GB, free: 2.09 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002941/0.1297, allocations: 118.6 kB / 0.5596 GB, free: 1.934 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003203/0.13, allocations: 0.6729 MB / 0.5603 GB, free: 1.234 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.029e-06/0.13, allocations: 4.125 kB / 0.5603 GB, free: 1.23 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.524e-05/0.13, allocations: 7.438 kB / 0.5603 GB, free: 1.223 MB / 414.1 MB Notification: Performance of SimCode: time 7.62e-07/0.13, allocations: 0 / 0.5603 GB, free: 1.223 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02347/0.1535, allocations: 1.408 MB / 0.5617 GB, free: 15.89 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.053/8.206, allocations: 15.92 kB / 0.5617 GB, free: 15.89 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestWriteFile_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 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.038644453976303] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 8.271713343914598 8.286191327 8.157584704 Calling exit ...