Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor.conf.json 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/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpDCMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpDCMotor",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001189/0.001189, allocations: 198.6 kB / 8.539 MB, free: 1.809 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.202/1.202, allocations: 225.5 MB / 234.4 MB, free: 3.328 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008955/0.0008955, allocations: 94.02 kB / 286.3 MB, free: 5.27 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1742/0.1742, allocations: 45.14 MB / 383.3 MB, free: 0.5039 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2181/0.3924, allocations: 69.37 MB / 452.7 MB, free: 76.08 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08994/0.4823, allocations: 63.24 MB / 0.5039 GB, free: 12.91 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.364/4.847, allocations: 2.804 GB / 3.308 GB, free: 117.6 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000279/4.847, allocations: 84.44 kB / 3.308 GB, free: 117.5 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 331 * Number of variables: 331 Notification: Performance of Generate backend data structure: time 1.287/6.134, allocations: 461.9 MB / 3.759 GB, free: 48.66 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.474e-05/6.134, allocations: 11.53 kB / 3.759 GB, free: 48.66 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003067/6.137, allocations: 464.2 kB / 3.759 GB, free: 48.56 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002073/6.139, allocations: 0.9783 MB / 3.76 GB, free: 47.97 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.488e-05/6.139, allocations: 45.06 kB / 3.76 GB, free: 47.97 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001487/6.139, allocations: 81.39 kB / 3.76 GB, free: 47.96 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001724/6.141, allocations: 0.9338 MB / 3.761 GB, free: 47.61 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002016/6.143, allocations: 1.224 MB / 3.762 GB, free: 46.98 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.205e-05/6.143, allocations: 3.938 kB / 3.762 GB, free: 46.97 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001057/6.143, allocations: 7.875 kB / 3.762 GB, free: 46.97 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.143e-05/6.143, allocations: 46.55 kB / 3.762 GB, free: 46.96 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3707/6.514, allocations: 97.78 MB / 3.858 GB, free: 92.3 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005872/6.515, allocations: 337.5 kB / 3.858 GB, free: 92.27 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003763/6.515, allocations: 256.5 kB / 3.858 GB, free: 92.27 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03188/6.547, allocations: 19.03 MB / 3.877 GB, free: 79.92 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.757e-05/6.547, allocations: 45.72 kB / 3.877 GB, free: 79.88 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=60): time 2.756e-06/6.547, allocations: 0 / 3.877 GB, free: 79.88 MB / 0.5417 GB Notification: Performance of matching and sorting (n=63): time 0.006719/6.554, allocations: 2.05 MB / 3.879 GB, free: 79.45 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.062e-05/6.554, allocations: 138.2 kB / 3.879 GB, free: 79.3 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001019/6.555, allocations: 0.7425 MB / 3.88 GB, free: 79.15 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 5.261e-05/6.555, allocations: 28 kB / 3.88 GB, free: 79.12 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002608/6.555, allocations: 0.6166 MB / 3.881 GB, free: 78.81 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001555/6.555, allocations: 217.6 kB / 3.881 GB, free: 78.7 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.174e-05/6.555, allocations: 0 / 3.881 GB, free: 78.7 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 8.177e-05/6.555, allocations: 345.5 kB / 3.881 GB, free: 78.39 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004176/6.556, allocations: 274.3 kB / 3.881 GB, free: 78.39 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006168/6.557, allocations: 0.7085 MB / 3.882 GB, free: 77.83 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001409/6.558, allocations: 478.9 kB / 3.882 GB, free: 77.8 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.633e-06/6.558, allocations: 7.531 kB / 3.882 GB, free: 77.8 MB / 0.5417 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.003563/6.562, allocations: 1.486 MB / 3.884 GB, free: 77.68 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.001168/6.563, allocations: 5.734 MB / 3.89 GB, free: 71.66 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.322e-05/6.563, allocations: 17.88 kB / 3.89 GB, free: 71.66 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008063/6.564, allocations: 198.9 kB / 3.89 GB, free: 71.64 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008715/6.564, allocations: 275.7 kB / 3.89 GB, free: 71.64 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001317/6.566, allocations: 0.9318 MB / 3.891 GB, free: 71.11 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001314/6.567, allocations: 122 kB / 3.891 GB, free: 71.1 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.466e-05/6.567, allocations: 69.75 kB / 3.891 GB, free: 71.1 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 9.879e-06/6.567, allocations: 5.844 kB / 3.891 GB, free: 71.1 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002997/6.57, allocations: 1.08 MB / 3.892 GB, free: 71.05 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.356e-05/6.57, allocations: 14.88 kB / 3.892 GB, free: 71.05 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008454/6.571, allocations: 191.5 kB / 3.892 GB, free: 71.04 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008421/6.572, allocations: 276.8 kB / 3.893 GB, free: 71.04 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001125/6.573, allocations: 0.8212 MB / 3.893 GB, free: 70.51 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001158/6.574, allocations: 97.12 kB / 3.893 GB, free: 70.5 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.908e-05/6.574, allocations: 61.34 kB / 3.894 GB, free: 70.5 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * Number of states: 0 () * Number of discrete variables: 6 (pump.heatTransfer.states[1].phase,Source.medium.phase,Sink.medium.phase,Valve.state_b.phase,Valve.state_a.phase,pump.monitoring.state_in.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (128): * Single equations (assignments): 127 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of prepare postOptimizeDAE: time 0.0002554/6.575, allocations: 149 kB / 3.894 GB, free: 70.39 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008053/6.575, allocations: 320.8 kB / 3.894 GB, free: 70.34 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002935/6.578, allocations: 2.047 MB / 3.896 GB, free: 70.15 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.846e-05/6.578, allocations: 20.45 kB / 3.896 GB, free: 70.14 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.351e-06/6.578, allocations: 0 / 3.896 GB, free: 70.14 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.997e-06/6.578, allocations: 6.922 kB / 3.896 GB, free: 70.14 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004141/6.583, allocations: 3.294 MB / 3.899 GB, free: 69.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.123e-06/6.583, allocations: 3.875 kB / 3.899 GB, free: 69.7 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004322/6.583, allocations: 110.8 kB / 3.899 GB, free: 69.69 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001033/6.584, allocations: 0.6654 MB / 3.9 GB, free: 69.64 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.253e-05/6.584, allocations: 14.81 kB / 3.9 GB, free: 69.64 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001396/6.586, allocations: 1.289 MB / 3.901 GB, free: 69.1 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.18e-06/6.586, allocations: 5.094 kB / 3.901 GB, free: 69.1 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002939/6.589, allocations: 2.281 MB / 3.904 GB, free: 68.5 MB / 0.5417 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003542/6.592, allocations: 3.137 MB / 3.907 GB, free: 67.53 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005642/6.593, allocations: 333.6 kB / 3.907 GB, free: 67.37 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001936/6.593, allocations: 7.438 kB / 3.907 GB, free: 67.37 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000736/6.594, allocations: 68.92 kB / 3.907 GB, free: 67.36 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.255e-05/6.594, allocations: 56.39 kB / 3.907 GB, free: 67.35 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.224e-05/6.594, allocations: 28.73 kB / 3.907 GB, free: 67.35 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.0008339/6.595, allocations: 0.6851 MB / 3.908 GB, free: 67.24 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.007971/6.603, allocations: 1.948 MB / 3.91 GB, free: 67.24 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 3 (motor.inertiaRotor.phi,motor.inertiaRotor.w,motor.la.i) * Number of discrete variables: 9 ($cse3.phase,$cse3.region,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse11.phase,$cse11.region,pump.heatTransfer.states[1].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.00775/6.61, allocations: 1.994 MB / 3.912 GB, free: 67.02 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.002816/6.613, allocations: 1.547 MB / 3.913 GB, free: 66.98 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 6.843e-06/6.613, allocations: 0 / 3.913 GB, free: 66.98 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0008514/6.614, allocations: 0.6935 MB / 3.914 GB, free: 66.98 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00205/6.616, allocations: 346.6 kB / 3.914 GB, free: 66.96 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004994/6.621, allocations: 2.201 MB / 3.916 GB, free: 66.24 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009504/6.622, allocations: 1.358 MB / 3.918 GB, free: 65.49 MB / 0.5417 GB Notification: Performance of SimCode: time 1.162e-06/6.622, allocations: 0 / 3.918 GB, free: 65.49 MB / 0.5417 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpDCMotor_fmu --startTime=0 --stopTime=8 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpDCMotor.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor.pipe 2>&1)