Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.readRealParameterModel.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.001307/0.001307, allocations: 109 kB / 21.23 MB, free: 0.6641 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.001434/0.001434, allocations: 213.9 kB / 24.54 MB, free: 4.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.487/1.487, allocations: 230.6 MB / 258.3 MB, free: 8.031 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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(Modelica.Utilities.Examples.readRealParameterModel,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Utilities_Examples_readRealParameterModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.readRealParameterModel,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Utilities_Examples_readRealParameterModel",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex 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. Warning: Requested package ModelicaServices 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.001984/0.001984, allocations: 60.56 kB / 378.5 MB, free: 3.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2792/0.2811, allocations: 53.37 MB / 431.9 MB, free: 6.891 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002878/0.284, allocations: 1.216 MB / 433.1 MB, free: 5.668 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003676/0.2877, allocations: 2.203 MB / 435.3 MB, free: 3.457 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.623e-05/0.2877, allocations: 0 / 435.3 MB, free: 3.457 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.575e-05/0.2877, allocations: 0 / 435.3 MB, free: 3.457 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/Utilities/Examples.mo:279:3-378:24:writable] Warning: Pure function 'Modelica.Utilities.Examples.readRealParameter' contains a call to impure function 'Modelica.Utilities.Streams.readLine'. Notification: Performance of NFTyping.typeBindings: time 0.00152/0.2893, allocations: 474.5 kB / 435.8 MB, free: 2.992 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.75e-05/0.2893, allocations: 0 / 435.8 MB, free: 2.992 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 6.294e-05/0.2894, allocations: 11.92 kB / 435.8 MB, free: 2.98 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.787e-05/0.2894, allocations: 7.984 kB / 435.8 MB, free: 2.973 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.257e-05/0.2894, allocations: 0 / 435.8 MB, free: 2.973 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002593/0.2897, allocations: 15.94 kB / 435.8 MB, free: 2.957 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.027e-05/0.2897, allocations: 0 / 435.8 MB, free: 2.957 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008761/0.2906, allocations: 0.5151 MB / 436.3 MB, free: 2.441 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.628e-05/0.2906, allocations: 7.984 kB / 436.3 MB, free: 2.434 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.439e-05/0.2906, allocations: 0 / 436.3 MB, free: 2.434 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005945/0.2912, allocations: 387.9 kB / 436.7 MB, free: 2.059 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.2912, allocations: 0 / 436.7 MB, free: 2.059 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.572e-06/0.2912, allocations: 0 / 436.7 MB, free: 2.059 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.521e-06/0.2912, allocations: 0 / 436.7 MB, free: 2.059 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0005142/0.2917, allocations: 353.4 kB / 437.1 MB, free: 1.684 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.118e-05/0.2918, allocations: 8.031 kB / 437.1 MB, free: 1.676 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.032e-05/0.2919, allocations: 106 kB / 437.2 MB, free: 1.562 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.123e-05/0.2919, allocations: 84.17 kB / 437.2 MB, free: 1.48 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001733/0.2921, allocations: 189.8 kB / 437.4 MB, free: 1.27 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.366e-05/0.2922, allocations: 150.9 kB / 437.6 MB, free: 1.121 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.845e-05/0.2922, allocations: 154.5 kB / 437.7 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.619e-05/0.2923, allocations: 112.9 kB / 437.8 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.74e-05/0.2924, allocations: 75.28 kB / 437.9 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.8e-05/0.2924, allocations: 150.6 kB / 438.1 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.35e-05/0.2925, allocations: 150.6 kB / 438.2 MB, free: 492 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.927e-05/0.2926, allocations: 154.6 kB / 438.4 MB, free: 336 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003511/0.2929, allocations: 421 kB / 438.8 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00011/0.293, allocations: 181 kB / 438.9 MB, free: 15.69 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.17e-05/0.2931, allocations: 84.14 kB / 439 MB, free: 15.6 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.621e-05/0.2931, allocations: 75.28 kB / 439.1 MB, free: 15.53 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00019/0.2933, allocations: 47.36 kB / 439.1 MB, free: 15.47 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 2.304e-06/0.2933, allocations: 0 / 439.1 MB, free: 15.47 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001447/0.2935, allocations: 37.62 kB / 439.2 MB, free: 15.43 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.548e-05/0.2935, allocations: 51.41 kB / 439.2 MB, free: 15.36 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.569e-05/0.2936, allocations: 101.9 kB / 439.3 MB, free: 15.25 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.381e-05/0.2936, allocations: 25.7 kB / 439.4 MB, free: 15.22 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.914e-05/0.2937, allocations: 88.12 kB / 439.4 MB, free: 15.13 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.952e-05/0.2937, allocations: 4.078 kB / 439.4 MB, free: 15.13 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.929e-05/0.2937, allocations: 17.72 kB / 439.5 MB, free: 15.11 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001445/0.2939, allocations: 310.8 kB / 439.8 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.638e-06/0.2939, allocations: 0 / 439.8 MB, free: 14.79 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.153e-06/0.2939, allocations: 4 kB / 439.8 MB, free: 14.79 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.244e-05/0.2939, allocations: 4.859 kB / 439.8 MB, free: 14.78 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.327e-06/0.2939, allocations: 3.938 kB / 439.8 MB, free: 14.78 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.792e-05/0.294, allocations: 45.81 kB / 439.8 MB, free: 14.73 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.618e-05/0.294, allocations: 8.094 kB / 439.8 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-06/0.294, allocations: 0 / 439.8 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.675e-05/0.294, allocations: 3.984 kB / 439.8 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.375e-05/0.294, allocations: 0 / 439.8 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.661e-06/0.294, allocations: 0 / 439.8 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.74e-05/0.2941, allocations: 4 kB / 439.8 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.869e-06/0.2941, allocations: 0 / 439.8 MB, free: 14.71 MB / 350.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 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * 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.6e-05/0.2942, allocations: 113.7 kB / 440 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.767e-06/0.2942, allocations: 0 / 440 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.062e-05/0.2942, allocations: 19.09 kB / 440 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.2942, allocations: 0 / 440 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.2942, allocations: 0 / 440 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.2942, allocations: 0 / 440 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000145/0.2944, allocations: 124.7 kB / 440.1 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.2944, allocations: 3.984 kB / 440.1 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.597e-06/0.2944, allocations: 3.938 kB / 440.1 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.282e-06/0.2944, allocations: 0 / 440.1 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.33e-06/0.2944, allocations: 0 / 440.1 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.92e-07/0.2944, allocations: 0 / 440.1 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.2944, allocations: 0 / 440.1 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.513e-05/0.2944, allocations: 69.02 kB / 440.2 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.394e-06/0.2945, allocations: 7.922 kB / 440.2 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.444e-05/0.2945, allocations: 4 kB / 440.2 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.254e-05/0.2945, allocations: 0 / 440.2 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.345e-05/0.2945, allocations: 0 / 440.2 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.613e-06/0.2945, allocations: 0 / 440.2 MB, free: 14.3 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.843e-05/0.2946, allocations: 83.28 kB / 440.3 MB, free: 14.22 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2946, allocations: 4.031 kB / 440.3 MB, free: 14.21 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004363/0.295, allocations: 147.5 kB / 440.4 MB, free: 14.07 MB / 350.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 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * 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.001366/0.2964, allocations: 0.9848 MB / 441.4 MB, free: 13.12 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.027e-05/0.2964, allocations: 4 kB / 441.4 MB, free: 13.12 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.2964, allocations: 0 / 441.4 MB, free: 13.12 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.518e-06/0.2965, allocations: 8 kB / 441.4 MB, free: 13.11 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001298/0.2966, allocations: 0 / 441.4 MB, free: 13.11 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001225/0.2978, allocations: 1.169 MB / 442.6 MB, free: 11.86 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002994/0.2981, allocations: 0.6768 MB / 443.3 MB, free: 11.16 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.729e-05/0.2981, allocations: 11.98 kB / 443.3 MB, free: 11.15 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.21e-05/0.2982, allocations: 11.44 kB / 443.3 MB, free: 11.14 MB / 350.1 MB Notification: Performance of SimCode: time 2.91e-07/0.2982, allocations: 0 / 443.3 MB, free: 11.14 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02881/0.327, allocations: 4.34 MB / 447.6 MB, free: 6.883 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.171/8.498, allocations: 17.64 kB / 447.6 MB, free: 6.875 MB / 350.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.readRealParameterModel.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.readRealParameterModel.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.readRealParameterModel.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.readRealParameterModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.readRealParameterModel_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Utilities_Examples_readRealParameterModel_fmu --startTime=0 --stopTime=1.01 --stepSize=0.000201919 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Utilities_Examples_readRealParameterModel.fmu > Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.822747094091028] Failed to read output from testmodel.py, exit status != 0: ['time', 'J', 'phi_rel0', 'w_rel0'] 8.572625393047929 8.599982033 8.30385843 Calling exit ...