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) 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.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001702/0.001702, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002198/0.002198, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.525/1.525, allocations: 227.4 MB / 246.8 MB, free: 10.52 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.2263/0.2263, allocations: 46.12 MB / 344.2 MB, free: 11.53 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.002252/0.002252, allocations: 77.47 kB / 417.8 MB, free: 19.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1085, allocations: 62.44 MB / 480.2 MB, free: 5.137 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001724/0.1102, allocations: 491.1 kB / 480.7 MB, free: 4.656 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006357/0.1109, allocations: 253.9 kB / 480.9 MB, free: 4.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.074e-05/0.1109, allocations: 0 / 480.9 MB, free: 4.41 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.059e-05/0.1109, allocations: 4 kB / 480.9 MB, free: 4.406 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.961e-06/0.1109, allocations: 0 / 480.9 MB, free: 4.406 MB / 350.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.0003171/0.1113, allocations: 55.77 kB / 481 MB, free: 4.352 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.636e-05/0.1113, allocations: 11.88 kB / 481 MB, free: 4.34 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.854e-05/0.1114, allocations: 0 / 481 MB, free: 4.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.582e-05/0.1114, allocations: 7.984 kB / 481 MB, free: 4.332 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.917e-05/0.1114, allocations: 0 / 481 MB, free: 4.332 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.073e-06/0.1114, allocations: 0 / 481 MB, free: 4.332 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001243/0.1115, allocations: 59.95 kB / 481.1 MB, free: 4.273 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.532e-06/0.1116, allocations: 0 / 481.1 MB, free: 4.273 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.118e-05/0.1116, allocations: 0 / 481.1 MB, free: 4.273 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001317/0.1117, allocations: 59.92 kB / 481.1 MB, free: 4.215 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.1117, allocations: 0 / 481.1 MB, free: 4.215 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.002e-06/0.1117, allocations: 0 / 481.1 MB, free: 4.215 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.246e-06/0.1118, allocations: 0 / 481.1 MB, free: 4.215 MB / 350.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.0003325/0.1121, allocations: 365.2 kB / 481.5 MB, free: 3.801 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.464e-05/0.1121, allocations: 8.031 kB / 481.5 MB, free: 3.793 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.835e-05/0.1122, allocations: 34.75 kB / 481.5 MB, free: 3.75 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.298e-05/0.1122, allocations: 4.922 kB / 481.5 MB, free: 3.746 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001105/0.1123, allocations: 160.4 kB / 481.7 MB, free: 3.551 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.669e-06/0.1123, allocations: 384 / 481.7 MB, free: 3.551 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.625e-06/0.1123, allocations: 384 / 481.7 MB, free: 3.551 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.628e-05/0.1124, allocations: 34.2 kB / 481.7 MB, free: 3.512 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.806e-06/0.1124, allocations: 7.938 kB / 481.7 MB, free: 3.504 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.851e-06/0.1125, allocations: 0 / 481.7 MB, free: 3.504 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.516e-06/0.1125, allocations: 0 / 481.7 MB, free: 3.504 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.491e-05/0.1125, allocations: 0 / 481.7 MB, free: 3.504 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001412/0.1126, allocations: 153.7 kB / 481.9 MB, free: 3.305 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.774e-05/0.1127, allocations: 14.58 kB / 481.9 MB, free: 3.281 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.575e-05/0.1127, allocations: 8.953 kB / 481.9 MB, free: 3.27 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.352e-06/0.1127, allocations: 0 / 481.9 MB, free: 3.27 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.836e-05/0.1128, allocations: 64.2 kB / 482 MB, free: 3.191 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.32e-07/0.1128, allocations: 0 / 482 MB, free: 3.191 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001531/0.1129, allocations: 71.33 kB / 482 MB, free: 3.109 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.566e-05/0.113, allocations: 77.11 kB / 482.1 MB, free: 3.016 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.827e-05/0.113, allocations: 89.86 kB / 482.2 MB, free: 2.918 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.614e-05/0.1131, allocations: 25.7 kB / 482.2 MB, free: 2.887 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.525e-05/0.1131, allocations: 80.14 kB / 482.3 MB, free: 2.805 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.509e-05/0.1131, allocations: 4.125 kB / 482.3 MB, free: 2.801 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.658e-05/0.1132, allocations: 13.72 kB / 482.3 MB, free: 2.781 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001456/0.1133, allocations: 310.8 kB / 482.6 MB, free: 2.469 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.266e-05/0.1133, allocations: 4 kB / 482.6 MB, free: 2.465 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.063e-06/0.1133, allocations: 7.922 kB / 482.6 MB, free: 2.457 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.547e-05/0.1134, allocations: 68.2 kB / 482.7 MB, free: 2.375 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.1134, allocations: 0 / 482.7 MB, free: 2.375 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.818e-05/0.1135, allocations: 63.34 kB / 482.7 MB, free: 2.301 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.221e-05/0.1135, allocations: 33.8 kB / 482.8 MB, free: 2.262 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.776e-06/0.1136, allocations: 7.922 kB / 482.8 MB, free: 2.254 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.117e-05/0.1136, allocations: 0 / 482.8 MB, free: 2.254 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.81e-07/0.1136, allocations: 0 / 482.8 MB, free: 2.254 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.847e-06/0.1136, allocations: 0 / 482.8 MB, free: 2.254 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.595e-05/0.1136, allocations: 4 kB / 482.8 MB, free: 2.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.003e-06/0.1136, allocations: 4 kB / 482.8 MB, free: 2.246 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 (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.0001028/0.1137, allocations: 135.5 kB / 482.9 MB, free: 2.098 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.096e-05/0.1137, allocations: 4 kB / 482.9 MB, free: 2.094 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.818e-06/0.1138, allocations: 11.06 kB / 482.9 MB, free: 2.086 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.1138, allocations: 3.984 kB / 482.9 MB, free: 2.082 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.319e-06/0.1138, allocations: 0 / 482.9 MB, free: 2.082 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-06/0.1138, allocations: 0 / 482.9 MB, free: 2.082 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001127/0.1139, allocations: 149.6 kB / 483.1 MB, free: 1.887 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.71e-07/0.1139, allocations: 0 / 483.1 MB, free: 1.887 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.757e-06/0.1139, allocations: 4 kB / 483.1 MB, free: 1.883 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.102e-06/0.1139, allocations: 0 / 483.1 MB, free: 1.883 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.959e-06/0.1139, allocations: 3.938 kB / 483.1 MB, free: 1.879 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.31e-07/0.1139, allocations: 0 / 483.1 MB, free: 1.879 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.1139, allocations: 0 / 483.1 MB, free: 1.879 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001025/0.1141, allocations: 94.83 kB / 483.2 MB, free: 1.762 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.252e-05/0.1141, allocations: 77.39 kB / 483.3 MB, free: 1.668 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.286e-05/0.1141, allocations: 3.938 kB / 483.3 MB, free: 1.664 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.455e-06/0.1141, allocations: 0 / 483.3 MB, free: 1.664 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.587e-05/0.1142, allocations: 4 kB / 483.3 MB, free: 1.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.538e-06/0.1142, allocations: 3.984 kB / 483.3 MB, free: 1.656 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.146e-05/0.1142, allocations: 75.31 kB / 483.4 MB, free: 1.582 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1142, allocations: 4 kB / 483.4 MB, free: 1.578 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002179/0.1144, allocations: 24 kB / 483.4 MB, free: 1.555 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 (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.0009712/0.1154, allocations: 0.8244 MB / 484.2 MB, free: 0.75 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000112/0.1155, allocations: 59.34 kB / 484.3 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.1156, allocations: 4.062 kB / 484.3 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.237e-05/0.1156, allocations: 59.39 kB / 484.3 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001198/0.1157, allocations: 0 / 484.3 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003169/0.116, allocations: 122.5 kB / 484.4 MB, free: 456 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003254/0.1164, allocations: 0.669 MB / 485.1 MB, free: 15.75 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.23e-06/0.1164, allocations: 0 / 485.1 MB, free: 15.75 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.478e-05/0.1164, allocations: 11.44 kB / 485.1 MB, free: 15.74 MB / 366.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1164, allocations: 0 / 485.1 MB, free: 15.74 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02377/0.1402, allocations: 1.603 MB / 486.7 MB, free: 14.2 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.89/8.03, allocations: 5.016 kB / 486.7 MB, free: 14.2 MB / 366.1 MB (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)