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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001768/0.001768, allocations: 114.8 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002245/0.002245, allocations: 198 kB / 18.73 MB, free: 4.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.483/1.483, allocations: 227.4 MB / 247 MB, free: 10.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2272/0.2272, allocations: 46.12 MB / 344.4 MB, free: 11.42 MB / 286.1 MB 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.003434/0.003434, allocations: 75.88 kB / 480.9 MB, free: 4.512 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3157/0.3191, allocations: 62.45 MB / 0.5306 GB, free: 13.36 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001581/0.3208, allocations: 480.7 kB / 0.531 GB, free: 13.01 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006131/0.3214, allocations: 220.3 kB / 0.5312 GB, free: 12.86 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.972e-05/0.3215, allocations: 0 / 0.5312 GB, free: 12.86 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.335e-05/0.3215, allocations: 0 / 0.5312 GB, free: 12.86 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.179e-06/0.3215, allocations: 0 / 0.5312 GB, free: 12.86 MB / 398.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.0002713/0.3218, allocations: 46.55 kB / 0.5313 GB, free: 12.82 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.997e-05/0.3218, allocations: 0.875 kB / 0.5313 GB, free: 12.82 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.667e-05/0.3219, allocations: 1.156 kB / 0.5313 GB, free: 12.82 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.3e-05/0.3219, allocations: 1.125 kB / 0.5313 GB, free: 12.82 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.906e-05/0.3219, allocations: 1.062 kB / 0.5313 GB, free: 12.82 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.28e-06/0.3219, allocations: 4 kB / 0.5313 GB, free: 12.82 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001287/0.3221, allocations: 58.48 kB / 0.5314 GB, free: 12.79 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.606e-06/0.3221, allocations: 3.984 kB / 0.5314 GB, free: 12.79 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.636e-05/0.3221, allocations: 1.188 kB / 0.5314 GB, free: 12.79 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001186/0.3222, allocations: 44.27 kB / 0.5314 GB, free: 12.76 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.3222, allocations: 0.9688 kB / 0.5314 GB, free: 12.76 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.3222, allocations: 0 / 0.5314 GB, free: 12.76 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.308e-06/0.3222, allocations: 0 / 0.5314 GB, free: 12.76 MB / 398.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.0003451/0.3226, allocations: 353.1 kB / 0.5317 GB, free: 12.37 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.827e-05/0.3226, allocations: 13.41 kB / 0.5318 GB, free: 12.37 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.515e-05/0.3227, allocations: 30.75 kB / 0.5318 GB, free: 12.33 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.513e-05/0.3227, allocations: 2.125 kB / 0.5318 GB, free: 12.33 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001154/0.3228, allocations: 160.4 kB / 0.5319 GB, free: 12.13 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.134e-05/0.3228, allocations: 1.594 kB / 0.5319 GB, free: 12.13 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.192e-06/0.3229, allocations: 1.531 kB / 0.5319 GB, free: 12.13 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.731e-05/0.3229, allocations: 31.66 kB / 0.532 GB, free: 12.1 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.245e-06/0.323, allocations: 4.969 kB / 0.532 GB, free: 12.09 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.314e-06/0.323, allocations: 0 / 0.532 GB, free: 12.09 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.071e-06/0.323, allocations: 1.25 kB / 0.532 GB, free: 12.09 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.788e-05/0.323, allocations: 13.38 kB / 0.532 GB, free: 12.08 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001454/0.3232, allocations: 146.9 kB / 0.5321 GB, free: 11.89 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.943e-05/0.3232, allocations: 15.83 kB / 0.5321 GB, free: 11.87 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.463e-05/0.3232, allocations: 6.141 kB / 0.5322 GB, free: 11.86 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.802e-06/0.3232, allocations: 0 / 0.5322 GB, free: 11.86 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.181e-05/0.3233, allocations: 65.47 kB / 0.5322 GB, free: 11.78 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.129e-05/0.3233, allocations: 5.281 kB / 0.5322 GB, free: 11.78 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.000166/0.3235, allocations: 66.5 kB / 0.5323 GB, free: 11.71 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.963e-05/0.3235, allocations: 78.83 kB / 0.5324 GB, free: 11.61 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.7e-05/0.3237, allocations: 93.81 kB / 0.5324 GB, free: 11.51 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.209e-05/0.3237, allocations: 25.7 kB / 0.5325 GB, free: 11.48 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.452e-05/0.3237, allocations: 84.08 kB / 0.5326 GB, free: 11.39 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.616e-05/0.3237, allocations: 1.375 kB / 0.5326 GB, free: 11.39 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.391e-05/0.3238, allocations: 18.98 kB / 0.5326 GB, free: 11.37 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001485/0.3239, allocations: 320.3 kB / 0.5329 GB, free: 11.05 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.287e-05/0.324, allocations: 1.438 kB / 0.5329 GB, free: 11.05 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.242e-06/0.324, allocations: 0 / 0.5329 GB, free: 11.05 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.637e-05/0.324, allocations: 60.52 kB / 0.5329 GB, free: 10.98 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.003e-06/0.324, allocations: 3.938 kB / 0.5329 GB, free: 10.98 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.972e-05/0.3241, allocations: 65.8 kB / 0.533 GB, free: 10.91 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.741e-05/0.3242, allocations: 32.89 kB / 0.533 GB, free: 10.88 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.3242, allocations: 3.938 kB / 0.533 GB, free: 10.87 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.287e-05/0.3242, allocations: 4.094 kB / 0.533 GB, free: 10.87 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.012e-06/0.3242, allocations: 0 / 0.533 GB, free: 10.87 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.619e-06/0.3242, allocations: 0 / 0.533 GB, free: 10.87 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.886e-05/0.3242, allocations: 5.844 kB / 0.533 GB, free: 10.86 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.302e-06/0.3242, allocations: 0 / 0.533 GB, free: 10.86 MB / 398.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.0001047/0.3244, allocations: 137.5 kB / 0.5332 GB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.069e-05/0.3244, allocations: 5.922 kB / 0.5332 GB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.023e-05/0.3244, allocations: 7.062 kB / 0.5332 GB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.362e-06/0.3244, allocations: 0 / 0.5332 GB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.3244, allocations: 5.875 kB / 0.5332 GB, free: 10.7 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.365e-06/0.3244, allocations: 0 / 0.5332 GB, free: 10.7 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001215/0.3245, allocations: 147.5 kB / 0.5333 GB, free: 10.51 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.3245, allocations: 0 / 0.5333 GB, free: 10.51 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.21e-07/0.3246, allocations: 0 / 0.5333 GB, free: 10.51 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.3246, allocations: 3.984 kB / 0.5333 GB, free: 10.51 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.558e-06/0.3246, allocations: 5.938 kB / 0.5333 GB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.3246, allocations: 0 / 0.5333 GB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.3246, allocations: 3.938 kB / 0.5334 GB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001091/0.3247, allocations: 94.44 kB / 0.5334 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.12e-05/0.3248, allocations: 81.09 kB / 0.5335 GB, free: 10.3 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.587e-05/0.3248, allocations: 5.812 kB / 0.5335 GB, free: 10.29 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.909e-06/0.3248, allocations: 0 / 0.5335 GB, free: 10.29 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.044e-05/0.3248, allocations: 0 / 0.5335 GB, free: 10.29 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.076e-06/0.3248, allocations: 2 kB / 0.5335 GB, free: 10.29 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.439e-05/0.3249, allocations: 75.28 kB / 0.5336 GB, free: 10.22 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3249, allocations: 0 / 0.5336 GB, free: 10.22 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002326/0.3251, allocations: 15.66 kB / 0.5336 GB, free: 10.21 MB / 398.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.0008229/0.3259, allocations: 0.7435 MB / 0.5343 GB, free: 9.516 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.977e-05/0.3261, allocations: 56.56 kB / 0.5344 GB, free: 9.453 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.3261, allocations: 0 / 0.5344 GB, free: 9.453 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.815e-05/0.3261, allocations: 62.86 kB / 0.5345 GB, free: 9.383 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001221/0.3262, allocations: 3.531 kB / 0.5345 GB, free: 9.383 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002902/0.3265, allocations: 115 kB / 0.5346 GB, free: 9.242 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002973/0.3268, allocations: 0.674 MB / 0.5352 GB, free: 8.543 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 9.227e-06/0.3269, allocations: 5.047 kB / 0.5352 GB, free: 8.539 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.697e-05/0.3269, allocations: 11.38 kB / 0.5352 GB, free: 8.527 MB / 398.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3269, allocations: 3.938 kB / 0.5352 GB, free: 8.523 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02269/0.3496, allocations: 1.397 MB / 0.5366 GB, free: 7.695 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.145/8.494, allocations: 11.33 kB / 0.5366 GB, free: 7.691 MB / 398.1 MB (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)