Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start",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 4.0.0+maint.om/package.mo): time 0.0009651/0.0009652, allocations: 182 kB / 8.135 MB, free: 2.223 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.153/1.153, allocations: 221.4 MB / 229.9 MB, free: 3.035 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009459/0.0009459, allocations: 93.88 kB / 280.8 MB, free: 1.27 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1015/0.1025, allocations: 55.82 MB / 336.6 MB, free: 9.434 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1994/0.3019, allocations: 50.4 MB / 387 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09815/0.4001, allocations: 97.38 MB / 484.4 MB, free: 5.379 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002271/0.4004, allocations: 83.89 kB / 484.5 MB, free: 5.297 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 246 * Number of variables: 246 Notification: Performance of Generate backend data structure: time 0.2211/0.6214, allocations: 26.95 MB / 0.4994 GB, free: 92.07 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.277e-05/0.6215, allocations: 7.594 kB / 0.4995 GB, free: 92.07 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000625/0.6221, allocations: 176 kB / 0.4996 GB, free: 92 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001338/0.6235, allocations: 0.777 MB / 0.5004 GB, free: 91.7 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.993e-05/0.6235, allocations: 32.06 kB / 0.5004 GB, free: 91.7 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001125/0.6236, allocations: 68.69 kB / 0.5005 GB, free: 91.7 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009588/0.6246, allocations: 0.5126 MB / 0.501 GB, free: 91.69 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001108/0.6257, allocations: 0.7361 MB / 0.5017 GB, free: 91.58 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.197e-05/0.6258, allocations: 5.875 kB / 0.5017 GB, free: 91.58 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.824e-05/0.6258, allocations: 0 / 0.5017 GB, free: 91.58 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.698e-05/0.6259, allocations: 29.72 kB / 0.5017 GB, free: 91.57 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004003/0.6299, allocations: 3.763 MB / 0.5054 GB, free: 89.87 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001982/0.6301, allocations: 135.8 kB / 0.5055 GB, free: 89.85 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001976/0.6303, allocations: 130.2 kB / 0.5057 GB, free: 89.84 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.242e-05/0.6303, allocations: 4.562 kB / 0.5057 GB, free: 89.84 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.734e-05/0.6304, allocations: 37.97 kB / 0.5057 GB, free: 89.8 MB / 378.7 MB Notification: Performance of pre-optimization done (n=33): time 1.733e-06/0.6304, allocations: 3.469 kB / 0.5057 GB, free: 89.8 MB / 378.7 MB Notification: Performance of matching and sorting (n=36): time 0.001229/0.6316, allocations: 0.8841 MB / 0.5066 GB, free: 89.33 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.616e-05/0.6316, allocations: 80.86 kB / 0.5066 GB, free: 89.24 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006125/0.6323, allocations: 0.5755 MB / 0.5072 GB, free: 89.11 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.972e-05/0.6323, allocations: 25.7 kB / 0.5072 GB, free: 89.07 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00016/0.6324, allocations: 486.6 kB / 0.5077 GB, free: 88.77 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.828e-05/0.6325, allocations: 126.3 kB / 0.5078 GB, free: 88.69 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.752e-05/0.6325, allocations: 1.125 kB / 0.5078 GB, free: 88.69 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.902e-05/0.6326, allocations: 388.8 kB / 0.5082 GB, free: 88.37 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001704/0.6328, allocations: 112 kB / 0.5083 GB, free: 88.37 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002674/0.6331, allocations: 415.7 kB / 0.5087 GB, free: 87.98 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002588/0.6334, allocations: 189 kB / 0.5089 GB, free: 87.96 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/0.6334, allocations: 3.438 kB / 0.5089 GB, free: 87.96 MB / 378.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.0007799/0.6341, allocations: 0.5592 MB / 0.5094 GB, free: 87.86 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.275e-05/0.6342, allocations: 3.188 kB / 0.5094 GB, free: 87.86 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.166e-05/0.6342, allocations: 12.12 kB / 0.5094 GB, free: 87.86 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001335/0.6343, allocations: 34.98 kB / 0.5095 GB, free: 87.85 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004969/0.6348, allocations: 167.2 kB / 0.5096 GB, free: 87.84 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006909/0.6355, allocations: 1.241 MB / 0.5108 GB, free: 86.63 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004478/0.636, allocations: 32.73 kB / 0.5109 GB, free: 86.62 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.373e-05/0.636, allocations: 29.25 kB / 0.5109 GB, free: 86.62 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (85): * Single equations (assignments): 84 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.629e-05/0.6361, allocations: 127.1 kB / 0.511 GB, free: 86.5 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.423e-05/0.6362, allocations: 78.3 kB / 0.5111 GB, free: 86.46 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004271/0.6367, allocations: 302.7 kB / 0.5114 GB, free: 86.4 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.6367, allocations: 7.344 kB / 0.5114 GB, free: 86.4 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.6367, allocations: 1.594 kB / 0.5114 GB, free: 86.4 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.651e-06/0.6367, allocations: 10.41 kB / 0.5114 GB, free: 86.39 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001193/0.6379, allocations: 1.064 MB / 0.5124 GB, free: 86.02 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.6379, allocations: 0 / 0.5124 GB, free: 86.02 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003286/0.6382, allocations: 82.27 kB / 0.5125 GB, free: 86.02 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.344e-05/0.6383, allocations: 20.95 kB / 0.5125 GB, free: 86 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.912e-05/0.6383, allocations: 8.031 kB / 0.5125 GB, free: 86 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005639/0.6389, allocations: 1.219 MB / 0.5137 GB, free: 84.76 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.6389, allocations: 3.938 kB / 0.5137 GB, free: 84.76 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005612/0.6395, allocations: 0.6437 MB / 0.5144 GB, free: 84.26 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0007489/0.6403, allocations: 1.125 MB / 0.5155 GB, free: 83.35 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001698/0.6404, allocations: 181.1 kB / 0.5156 GB, free: 83.19 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.685e-05/0.6405, allocations: 7.672 kB / 0.5156 GB, free: 83.19 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003471/0.6409, allocations: 22.95 kB / 0.5157 GB, free: 83.19 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.348e-05/0.641, allocations: 26.83 kB / 0.5157 GB, free: 83.18 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.617e-05/0.641, allocations: 7.688 kB / 0.5157 GB, free: 83.18 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0004341/0.6414, allocations: 435.2 kB / 0.5161 GB, free: 82.97 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001286/0.6427, allocations: 198.8 kB / 0.5163 GB, free: 82.95 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (dcee.inertiaRotor.phi,dcee.inertiaRotor.w,dcee.la.i,dcee.airGapDC.psi_e) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 34 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003154/0.643, allocations: 263.8 kB / 0.5166 GB, free: 82.82 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005527/0.6436, allocations: 434.9 kB / 0.517 GB, free: 82.61 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.6436, allocations: 0 / 0.517 GB, free: 82.61 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000239/0.6439, allocations: 231.7 kB / 0.5172 GB, free: 82.46 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007415/0.6446, allocations: 164.6 kB / 0.5174 GB, free: 82.41 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001968/0.6466, allocations: 1.229 MB / 0.5186 GB, free: 81.75 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005025/0.6471, allocations: 1.076 MB / 0.5196 GB, free: 81.04 MB / 378.7 MB Notification: Performance of SimCode: time 2.9e-07/0.6471, allocations: 4 kB / 0.5196 GB, free: 81.03 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start_res.mat does not exist to compare? outputFormat=mat