Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestInternal.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.001185/0.001185, allocations: 106.5 kB / 19.74 MB, free: 2.566 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.001289/0.001289, allocations: 219.8 kB / 22.92 MB, free: 5.535 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.274/1.274, allocations: 230.2 MB / 256.2 MB, free: 8.758 MB / 206.1 MB " [Timeout remaining time 179] 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.1948/0.1948, allocations: 46.88 MB / 359.3 MB, free: 4.988 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.TestInternal,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestInternal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestInternal,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestInternal",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.002101/0.002101, allocations: 83.84 kB / 0.494 GB, free: 9.133 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2486/0.2507, allocations: 65.98 MB / 0.5584 GB, free: 5.238 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001462/0.2522, allocations: 485.1 kB / 0.5588 GB, free: 4.762 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005854/0.2528, allocations: 269.5 kB / 0.5591 GB, free: 4.5 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.841e-05/0.2528, allocations: 0 / 0.5591 GB, free: 4.5 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.076e-05/0.2528, allocations: 0 / 0.5591 GB, free: 4.5 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.879e-06/0.2528, allocations: 0 / 0.5591 GB, free: 4.5 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/Utilities.mo:398:3-453:15:writable] Warning: Pure function 'ModelicaTest.Utilities.Internal' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.000289/0.2531, allocations: 51.81 kB / 0.5592 GB, free: 4.449 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.786e-05/0.2531, allocations: 8 kB / 0.5592 GB, free: 4.441 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.009e-05/0.2532, allocations: 0 / 0.5592 GB, free: 4.441 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.271e-05/0.2532, allocations: 0 / 0.5592 GB, free: 4.441 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.08e-05/0.2532, allocations: 3.984 kB / 0.5592 GB, free: 4.438 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.043e-06/0.2532, allocations: 0 / 0.5592 GB, free: 4.438 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000138/0.2533, allocations: 67.89 kB / 0.5592 GB, free: 4.371 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.112e-06/0.2533, allocations: 0 / 0.5592 GB, free: 4.371 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.116e-05/0.2534, allocations: 4 kB / 0.5592 GB, free: 4.367 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001323/0.2535, allocations: 59.66 kB / 0.5593 GB, free: 4.312 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.586e-06/0.2535, allocations: 0 / 0.5593 GB, free: 4.312 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.2535, allocations: 0 / 0.5593 GB, free: 4.312 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.087e-06/0.2535, allocations: 4 kB / 0.5593 GB, free: 4.309 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.0003376/0.2538, allocations: 359.1 kB / 0.5596 GB, free: 3.902 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.522e-05/0.2539, allocations: 11.97 kB / 0.5597 GB, free: 3.891 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.047e-05/0.2539, allocations: 34.75 kB / 0.5597 GB, free: 3.848 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.177e-05/0.2539, allocations: 4.922 kB / 0.5597 GB, free: 3.844 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001015/0.254, allocations: 160.4 kB / 0.5598 GB, free: 3.648 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.888e-06/0.254, allocations: 384 / 0.5598 GB, free: 3.648 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.61e-06/0.2541, allocations: 4.375 kB / 0.5598 GB, free: 3.645 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.546e-05/0.2541, allocations: 30.27 kB / 0.5599 GB, free: 3.609 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-06/0.2541, allocations: 3.938 kB / 0.5599 GB, free: 3.605 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.782e-06/0.2541, allocations: 0 / 0.5599 GB, free: 3.605 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.908e-06/0.2541, allocations: 4 kB / 0.5599 GB, free: 3.602 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.372e-05/0.2542, allocations: 0 / 0.5599 GB, free: 3.602 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001318/0.2543, allocations: 149.7 kB / 0.56 GB, free: 3.406 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.181e-05/0.2543, allocations: 26.55 kB / 0.56 GB, free: 3.371 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.318e-05/0.2543, allocations: 4.859 kB / 0.5601 GB, free: 3.363 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.251e-05/0.2544, allocations: 4 kB / 0.5601 GB, free: 3.359 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.44e-05/0.2544, allocations: 56.27 kB / 0.5601 GB, free: 3.289 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.72e-07/0.2544, allocations: 0 / 0.5601 GB, free: 3.289 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001509/0.2546, allocations: 71.33 kB / 0.5602 GB, free: 3.207 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.843e-05/0.2546, allocations: 85.05 kB / 0.5603 GB, free: 3.105 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.624e-05/0.2547, allocations: 97.81 kB / 0.5604 GB, free: 3 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.298e-05/0.2547, allocations: 25.7 kB / 0.5604 GB, free: 2.969 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.238e-05/0.2547, allocations: 80.14 kB / 0.5605 GB, free: 2.887 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.211e-05/0.2547, allocations: 4.125 kB / 0.5605 GB, free: 2.883 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.888e-05/0.2547, allocations: 13.72 kB / 0.5605 GB, free: 2.863 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001126/0.2549, allocations: 310.8 kB / 0.5608 GB, free: 2.551 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.584e-06/0.2549, allocations: 0 / 0.5608 GB, free: 2.551 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.536e-06/0.2549, allocations: 3.984 kB / 0.5608 GB, free: 2.547 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.565e-05/0.2549, allocations: 64.27 kB / 0.5608 GB, free: 2.469 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.182e-06/0.2549, allocations: 0 / 0.5608 GB, free: 2.469 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.928e-05/0.255, allocations: 67.41 kB / 0.5609 GB, free: 2.391 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.774e-05/0.255, allocations: 29.7 kB / 0.5609 GB, free: 2.355 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.255, allocations: 3.938 kB / 0.5609 GB, free: 2.352 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.388e-05/0.255, allocations: 7.984 kB / 0.5609 GB, free: 2.344 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.51e-07/0.255, allocations: 0 / 0.5609 GB, free: 2.344 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.807e-06/0.255, allocations: 3.938 kB / 0.5609 GB, free: 2.34 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.268e-05/0.2551, allocations: 0 / 0.5609 GB, free: 2.34 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.34e-06/0.2551, allocations: 0 / 0.5609 GB, free: 2.34 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 7.918e-05/0.2551, allocations: 135.5 kB / 0.5611 GB, free: 2.191 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.682e-06/0.2551, allocations: 4.031 kB / 0.5611 GB, free: 2.188 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.734e-06/0.2552, allocations: 7.062 kB / 0.5611 GB, free: 2.184 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.02e-07/0.2552, allocations: 0 / 0.5611 GB, free: 2.184 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.956e-06/0.2552, allocations: 0 / 0.5611 GB, free: 2.184 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.2552, allocations: 3.984 kB / 0.5611 GB, free: 2.18 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.622e-05/0.2553, allocations: 153.7 kB / 0.5612 GB, free: 1.98 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.01e-07/0.2553, allocations: 0 / 0.5612 GB, free: 1.98 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.11e-07/0.2553, allocations: 0 / 0.5612 GB, free: 1.98 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.22e-07/0.2553, allocations: 0 / 0.5612 GB, free: 1.98 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.314e-06/0.2553, allocations: 3.938 kB / 0.5612 GB, free: 1.977 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.61e-07/0.2553, allocations: 0 / 0.5612 GB, free: 1.977 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-07/0.2553, allocations: 4 kB / 0.5612 GB, free: 1.973 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.283e-05/0.2554, allocations: 94.77 kB / 0.5613 GB, free: 1.855 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.453e-05/0.2554, allocations: 77.11 kB / 0.5614 GB, free: 1.762 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.424e-05/0.2554, allocations: 7.938 kB / 0.5614 GB, free: 1.754 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.684e-06/0.2554, allocations: 0 / 0.5614 GB, free: 1.754 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.099e-05/0.2554, allocations: 3.938 kB / 0.5614 GB, free: 1.75 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.728e-06/0.2554, allocations: 7.984 kB / 0.5614 GB, free: 1.742 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.15e-05/0.2555, allocations: 79.31 kB / 0.5615 GB, free: 1.664 MB / 398.1 MB Notification: Performance of sort global known variables: time 5e-08/0.2555, allocations: 0 / 0.5615 GB, free: 1.664 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002064/0.2557, allocations: 23.94 kB / 0.5615 GB, free: 1.641 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.0008491/0.2565, allocations: 0.7982 MB / 0.5623 GB, free: 0.8633 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 8.745e-05/0.2566, allocations: 67.34 kB / 0.5624 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.463e-06/0.2566, allocations: 0 / 0.5624 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.177e-05/0.2567, allocations: 63.38 kB / 0.5624 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001126/0.2568, allocations: 5.875 kB / 0.5624 GB, free: 0.707 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000262/0.257, allocations: 118.6 kB / 0.5625 GB, free: 0.5508 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002752/0.2573, allocations: 0.6729 MB / 0.5632 GB, free: 15.85 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.222e-06/0.2573, allocations: 4 kB / 0.5632 GB, free: 15.85 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.093e-05/0.2573, allocations: 7.438 kB / 0.5632 GB, free: 15.84 MB / 414.1 MB Notification: Performance of SimCode: time 3.01e-07/0.2573, allocations: 0 / 0.5632 GB, free: 15.84 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02084/0.2782, allocations: 1.614 MB / 0.5648 GB, free: 14.29 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.886/7.164, allocations: 3.938 kB / 0.5648 GB, free: 14.29 MB / 414.1 MB " [Timeout remaining time 653] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestInternal.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestInternal_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestInternal_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestInternal.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestInternal.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 9.58929678799177]