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.001886/0.001886, allocations: 105.1 kB / 21.22 MB, free: 0.6797 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.002534/0.002534, allocations: 209.9 kB / 24.54 MB, free: 4.055 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.482/1.482, allocations: 230.5 MB / 258.2 MB, free: 8.039 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.236/0.236, allocations: 46.93 MB / 361.6 MB, free: 4.297 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.002306/0.002306, allocations: 79.88 kB / 0.497 GB, free: 7.816 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3002/0.3025, allocations: 66.08 MB / 0.5615 GB, free: 4.34 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001753/0.3043, allocations: 489.1 kB / 0.562 GB, free: 3.863 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007536/0.305, allocations: 269.5 kB / 0.5622 GB, free: 3.602 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.6e-05/0.305, allocations: 0 / 0.5622 GB, free: 3.602 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.667e-05/0.3051, allocations: 0 / 0.5622 GB, free: 3.602 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.061e-06/0.3051, allocations: 0 / 0.5622 GB, free: 3.602 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.0003799/0.3054, allocations: 63.73 kB / 0.5623 GB, free: 3.539 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.75e-05/0.3055, allocations: 3.984 kB / 0.5623 GB, free: 3.535 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.217e-05/0.3055, allocations: 0 / 0.5623 GB, free: 3.535 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.51e-05/0.3056, allocations: 0 / 0.5623 GB, free: 3.535 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.009e-05/0.3056, allocations: 4 kB / 0.5623 GB, free: 3.531 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.175e-06/0.3056, allocations: 0 / 0.5623 GB, free: 3.531 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001834/0.3058, allocations: 67.95 kB / 0.5623 GB, free: 3.465 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.636e-06/0.3058, allocations: 0 / 0.5623 GB, free: 3.465 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.443e-05/0.3058, allocations: 0 / 0.5623 GB, free: 3.465 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001541/0.306, allocations: 63.66 kB / 0.5624 GB, free: 3.406 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.306, allocations: 0 / 0.5624 GB, free: 3.406 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.306, allocations: 0 / 0.5624 GB, free: 3.406 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.948e-06/0.306, allocations: 0 / 0.5624 GB, free: 3.406 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.0003942/0.3064, allocations: 282.1 kB / 0.5627 GB, free: 3.094 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.638e-05/0.3064, allocations: 12.03 kB / 0.5627 GB, free: 3.082 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.376e-05/0.3064, allocations: 30.75 kB / 0.5627 GB, free: 3.043 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.981e-05/0.3065, allocations: 4.938 kB / 0.5627 GB, free: 3.039 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.37e-05/0.3066, allocations: 102.5 kB / 0.5628 GB, free: 2.914 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.56e-05/0.3066, allocations: 4.359 kB / 0.5628 GB, free: 2.91 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.255e-05/0.3066, allocations: 4.375 kB / 0.5628 GB, free: 2.906 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001114/0.3067, allocations: 30.2 kB / 0.5629 GB, free: 2.871 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.598e-06/0.3067, allocations: 3.938 kB / 0.5629 GB, free: 2.867 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.634e-06/0.3067, allocations: 3.938 kB / 0.5629 GB, free: 2.863 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.138e-06/0.3067, allocations: 0 / 0.5629 GB, free: 2.863 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.082e-05/0.3068, allocations: 4 kB / 0.5629 GB, free: 2.859 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001458/0.3069, allocations: 120.8 kB / 0.563 GB, free: 2.699 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.081e-05/0.307, allocations: 22.59 kB / 0.563 GB, free: 2.668 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.683e-05/0.307, allocations: 4.859 kB / 0.563 GB, free: 2.66 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.207e-06/0.307, allocations: 0 / 0.563 GB, free: 2.66 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.933e-05/0.307, allocations: 60.2 kB / 0.5631 GB, free: 2.586 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.51e-07/0.307, allocations: 0 / 0.5631 GB, free: 2.586 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001905/0.3072, allocations: 71.47 kB / 0.5631 GB, free: 2.504 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.896e-05/0.3073, allocations: 85.09 kB / 0.5632 GB, free: 2.402 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.847e-05/0.3073, allocations: 97.81 kB / 0.5633 GB, free: 2.297 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.669e-05/0.3074, allocations: 25.7 kB / 0.5633 GB, free: 2.266 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.722e-05/0.3074, allocations: 80.14 kB / 0.5634 GB, free: 2.184 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.465e-05/0.3074, allocations: 0 / 0.5634 GB, free: 2.184 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.958e-05/0.3074, allocations: 9.719 kB / 0.5634 GB, free: 2.168 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001465/0.3076, allocations: 314.8 kB / 0.5637 GB, free: 1.852 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.138e-05/0.3076, allocations: 4 kB / 0.5637 GB, free: 1.848 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.55e-06/0.3076, allocations: 4 kB / 0.5637 GB, free: 1.844 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.364e-05/0.3077, allocations: 64.2 kB / 0.5638 GB, free: 1.766 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.3077, allocations: 0 / 0.5638 GB, free: 1.766 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.907e-05/0.3078, allocations: 63.39 kB / 0.5638 GB, free: 1.691 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.795e-05/0.3078, allocations: 29.7 kB / 0.5639 GB, free: 1.656 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.3078, allocations: 3.938 kB / 0.5639 GB, free: 1.652 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.389e-05/0.3078, allocations: 0 / 0.5639 GB, free: 1.652 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.547e-06/0.3078, allocations: 4 kB / 0.5639 GB, free: 1.648 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.629e-06/0.3078, allocations: 4.094 kB / 0.5639 GB, free: 1.645 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.537e-05/0.3078, allocations: 0 / 0.5639 GB, free: 1.645 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.61e-06/0.3078, allocations: 0 / 0.5639 GB, free: 1.645 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.0001016/0.308, allocations: 143.5 kB / 0.564 GB, free: 1.488 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.444e-06/0.308, allocations: 0 / 0.564 GB, free: 1.488 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.34e-05/0.308, allocations: 6.938 kB / 0.564 GB, free: 1.48 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-06/0.308, allocations: 0 / 0.564 GB, free: 1.48 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.511e-06/0.308, allocations: 4 kB / 0.564 GB, free: 1.477 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.733e-06/0.308, allocations: 0 / 0.564 GB, free: 1.477 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001064/0.3081, allocations: 120.8 kB / 0.5641 GB, free: 1.316 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.02e-07/0.3081, allocations: 4 kB / 0.5642 GB, free: 1.312 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.905e-06/0.3081, allocations: 3.938 kB / 0.5642 GB, free: 1.309 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.3081, allocations: 0 / 0.5642 GB, free: 1.309 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.185e-06/0.3081, allocations: 3.938 kB / 0.5642 GB, free: 1.305 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.3081, allocations: 0 / 0.5642 GB, free: 1.305 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.3081, allocations: 0 / 0.5642 GB, free: 1.305 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001122/0.3082, allocations: 94.77 kB / 0.5642 GB, free: 1.188 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.851e-06/0.3082, allocations: 8.016 kB / 0.5643 GB, free: 1.18 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.376e-05/0.3082, allocations: 7.938 kB / 0.5643 GB, free: 1.172 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.008e-05/0.3082, allocations: 3.938 kB / 0.5643 GB, free: 1.168 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.404e-05/0.3083, allocations: 0 / 0.5643 GB, free: 1.168 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.999e-06/0.3083, allocations: 4 kB / 0.5643 GB, free: 1.164 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.451e-05/0.3083, allocations: 75.28 kB / 0.5643 GB, free: 1.09 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3083, allocations: 0 / 0.5643 GB, free: 1.09 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002329/0.3085, allocations: 23.92 kB / 0.5644 GB, free: 1.066 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.0009678/0.3095, allocations: 0.8034 MB / 0.5652 GB, free: 288 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001004/0.3096, allocations: 63.39 kB / 0.5652 GB, free: 212 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.3096, allocations: 0 / 0.5652 GB, free: 212 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.753e-05/0.3096, allocations: 55.41 kB / 0.5653 GB, free: 144 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001406/0.3098, allocations: 4 kB / 0.5653 GB, free: 140 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003246/0.3101, allocations: 126.7 kB / 0.5654 GB, free: 15.97 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000307/0.3104, allocations: 0.6729 MB / 0.566 GB, free: 15.27 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.002e-06/0.3104, allocations: 0 / 0.566 GB, free: 15.27 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.388e-05/0.3104, allocations: 7.438 kB / 0.5661 GB, free: 15.27 MB / 414.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3104, allocations: 0 / 0.5661 GB, free: 15.27 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02499/0.3354, allocations: 1.649 MB / 0.5677 GB, free: 13.68 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.076/8.411, allocations: 64 / 0.5677 GB, free: 13.68 MB / 414.1 MB " [Timeout remaining time 652] (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: 11.229435264598578] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 8.48267366969958 8.500362843 8.191106473 Calling exit ...