Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestFiles.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.TestFiles,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestFiles",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestFiles,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestFiles",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001937/0.001937, allocations: 118.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002387/0.002387, allocations: 205.2 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.454/1.454, allocations: 227.4 MB / 247 MB, free: 10.42 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.2237/0.2237, allocations: 46.12 MB / 344.4 MB, free: 11.45 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.002587/0.002587, allocations: 79.86 kB / 480.9 MB, free: 4.539 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3487/0.3513, allocations: 62.44 MB / 0.5306 GB, free: 13.36 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001675/0.3531, allocations: 498.9 kB / 0.531 GB, free: 13 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002236/0.3553, allocations: 1.265 MB / 0.5323 GB, free: 12.02 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.774e-05/0.3554, allocations: 0 / 0.5323 GB, free: 12.02 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.814e-05/0.3554, allocations: 0 / 0.5323 GB, free: 12.02 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001876/0.3556, allocations: 14.55 kB / 0.5323 GB, free: 12.01 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/Utilities.mo:455:3-487:12:writable] Warning: Pure function 'ModelicaTest.Utilities.Files' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001149/0.3567, allocations: 237.7 kB / 0.5325 GB, free: 11.86 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.402e-05/0.3568, allocations: 6.484 kB / 0.5325 GB, free: 11.86 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.135e-05/0.3569, allocations: 6.141 kB / 0.5325 GB, free: 11.86 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.902e-05/0.3569, allocations: 5.062 kB / 0.5325 GB, free: 11.85 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.366e-05/0.357, allocations: 13.53 kB / 0.5326 GB, free: 11.84 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.564e-06/0.357, allocations: 0 / 0.5326 GB, free: 11.84 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004014/0.361, allocations: 0.6824 MB / 0.5332 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.043e-05/0.361, allocations: 3.938 kB / 0.5332 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.48e-05/0.3611, allocations: 5.359 kB / 0.5332 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000307/0.3614, allocations: 174.6 kB / 0.5334 GB, free: 11.45 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.3614, allocations: 1.375 kB / 0.5334 GB, free: 11.45 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.3614, allocations: 0 / 0.5334 GB, free: 11.45 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.162e-06/0.3614, allocations: 0 / 0.5334 GB, free: 11.45 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.0004646/0.3619, allocations: 389.2 kB / 0.5338 GB, free: 11.03 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.871e-05/0.3619, allocations: 9.625 kB / 0.5338 GB, free: 11.03 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.005e-05/0.362, allocations: 32.12 kB / 0.5338 GB, free: 10.99 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.714e-05/0.362, allocations: 4.938 kB / 0.5338 GB, free: 10.99 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001417/0.3622, allocations: 169.8 kB / 0.534 GB, free: 10.79 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.288e-05/0.3622, allocations: 1.75 kB / 0.534 GB, free: 10.79 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.644e-06/0.3622, allocations: 4.312 kB / 0.534 GB, free: 10.78 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001086/0.3623, allocations: 32.39 kB / 0.534 GB, free: 10.75 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.515e-06/0.3623, allocations: 3.938 kB / 0.534 GB, free: 10.74 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.275e-05/0.3623, allocations: 9.359 kB / 0.534 GB, free: 10.73 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.37e-06/0.3624, allocations: 0 / 0.534 GB, free: 10.73 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.83e-05/0.3624, allocations: 1.375 kB / 0.534 GB, free: 10.73 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001703/0.3626, allocations: 152.4 kB / 0.5342 GB, free: 10.54 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.635e-05/0.3626, allocations: 19.95 kB / 0.5342 GB, free: 10.51 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.79e-05/0.3626, allocations: 10.17 kB / 0.5342 GB, free: 10.5 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.257e-06/0.3627, allocations: 5.312 kB / 0.5342 GB, free: 10.5 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.9e-05/0.3627, allocations: 56.27 kB / 0.5343 GB, free: 10.43 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.072e-06/0.3627, allocations: 1.375 kB / 0.5343 GB, free: 10.43 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001753/0.3629, allocations: 67.64 kB / 0.5343 GB, free: 10.36 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.009e-05/0.363, allocations: 78.48 kB / 0.5344 GB, free: 10.26 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.227e-05/0.3631, allocations: 96.61 kB / 0.5345 GB, free: 10.16 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.816e-05/0.3631, allocations: 25.7 kB / 0.5345 GB, free: 10.13 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.556e-05/0.3631, allocations: 81.52 kB / 0.5346 GB, free: 10.05 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.695e-05/0.3632, allocations: 3.984 kB / 0.5346 GB, free: 10.04 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.785e-05/0.3632, allocations: 12.47 kB / 0.5346 GB, free: 10.03 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001542/0.3634, allocations: 320.5 kB / 0.5349 GB, free: 9.707 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.076e-05/0.3634, allocations: 3.938 kB / 0.5349 GB, free: 9.703 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.923e-06/0.3634, allocations: 1.375 kB / 0.5349 GB, free: 9.703 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.586e-05/0.3634, allocations: 60.39 kB / 0.535 GB, free: 9.633 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.3635, allocations: 0 / 0.535 GB, free: 9.633 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.316e-05/0.3636, allocations: 71.53 kB / 0.535 GB, free: 9.559 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.772e-05/0.3636, allocations: 31.2 kB / 0.5351 GB, free: 9.527 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.3636, allocations: 0 / 0.5351 GB, free: 9.527 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.532e-05/0.3636, allocations: 1.469 kB / 0.5351 GB, free: 9.527 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.112e-06/0.3636, allocations: 4 kB / 0.5351 GB, free: 9.523 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.739e-06/0.3637, allocations: 3.938 kB / 0.5351 GB, free: 9.52 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.702e-05/0.3637, allocations: 1.375 kB / 0.5351 GB, free: 9.52 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.256e-05/0.3637, allocations: 5.375 kB / 0.5351 GB, free: 9.516 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.0001005/0.3638, allocations: 144.8 kB / 0.5352 GB, free: 9.359 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.36e-05/0.3638, allocations: 5.312 kB / 0.5352 GB, free: 9.355 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.896e-06/0.3638, allocations: 4.5 kB / 0.5352 GB, free: 9.355 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.3638, allocations: 0 / 0.5352 GB, free: 9.355 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.536e-06/0.3638, allocations: 4 kB / 0.5352 GB, free: 9.352 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.3639, allocations: 1.375 kB / 0.5352 GB, free: 9.352 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001281/0.364, allocations: 151 kB / 0.5354 GB, free: 9.156 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.364, allocations: 3.938 kB / 0.5354 GB, free: 9.152 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.31e-07/0.364, allocations: 1.375 kB / 0.5354 GB, free: 9.152 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.562e-06/0.364, allocations: 0 / 0.5354 GB, free: 9.152 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.822e-06/0.364, allocations: 1.375 kB / 0.5354 GB, free: 9.152 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.286e-06/0.364, allocations: 3.984 kB / 0.5354 GB, free: 9.148 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.364, allocations: 0 / 0.5354 GB, free: 9.148 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001143/0.3642, allocations: 95.2 kB / 0.5355 GB, free: 9.043 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.683e-05/0.3642, allocations: 86.42 kB / 0.5356 GB, free: 8.941 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.341e-05/0.3642, allocations: 1.375 kB / 0.5356 GB, free: 8.941 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.385e-05/0.3642, allocations: 4 kB / 0.5356 GB, free: 8.938 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.392e-05/0.3643, allocations: 1.375 kB / 0.5356 GB, free: 8.938 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.875e-06/0.3643, allocations: 3.938 kB / 0.5356 GB, free: 8.934 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.364e-05/0.3643, allocations: 78.03 kB / 0.5357 GB, free: 8.859 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3643, allocations: 0 / 0.5357 GB, free: 8.859 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003262/0.3647, allocations: 67.92 kB / 0.5357 GB, free: 8.836 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.001201/0.3659, allocations: 0.8573 MB / 0.5366 GB, free: 8.098 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001132/0.366, allocations: 68.89 kB / 0.5366 GB, free: 8.023 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.366, allocations: 3.938 kB / 0.5366 GB, free: 8.02 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.442e-05/0.3661, allocations: 59.47 kB / 0.5367 GB, free: 7.953 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001387/0.3662, allocations: 9.297 kB / 0.5367 GB, free: 7.945 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003965/0.3666, allocations: 137.9 kB / 0.5368 GB, free: 7.793 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003284/0.367, allocations: 0.6742 MB / 0.5375 GB, free: 7.094 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 8.876e-06/0.367, allocations: 1.375 kB / 0.5375 GB, free: 7.094 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.589e-05/0.367, allocations: 8.812 kB / 0.5375 GB, free: 7.086 MB / 398.1 MB Notification: Performance of SimCode: time 5.41e-07/0.367, allocations: 0 / 0.5375 GB, free: 7.086 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02562/0.3926, allocations: 2.532 MB / 0.54 GB, free: 5.676 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.08/8.473, allocations: 5.109 kB / 0.54 GB, free: 5.672 MB / 398.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestFiles.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestFiles_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestFiles_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestFiles.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestFiles.pipe 2>&1)