Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_LoadDump.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_LoadDump,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_LoadDump",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_LoadDump,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_LoadDump",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 3.2.3+maint.om/package.mo): time 0.001587/0.001587, allocations: 175.2 kB / 8.474 MB, free: 1.852 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.135/1.135, allocations: 205.2 MB / 214.1 MB, free: 5.129 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009071/0.0009071, allocations: 82.28 kB / 262.1 MB, free: 5.184 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1503/0.1512, allocations: 52.98 MB / 315.1 MB, free: 41.36 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06239/0.2136, allocations: 47.57 MB / 362.6 MB, free: 9.848 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2609/0.4746, allocations: 120.4 MB / 483 MB, free: 4.844 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002496/0.4749, allocations: 83.7 kB / 483.1 MB, free: 4.805 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1076 * Number of variables: 1076 Notification: Performance of Generate backend data structure: time 0.2696/0.7445, allocations: 105.2 MB / 0.5745 GB, free: 1.957 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.726e-05/0.7445, allocations: 8 kB / 0.5745 GB, free: 1.949 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00604/0.7506, allocations: 0.974 MB / 0.5755 GB, free: 0.9688 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.123/0.8735, allocations: 3.957 MB / 0.5793 GB, free: 120.6 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002587/0.8738, allocations: 347.9 kB / 0.5797 GB, free: 120.4 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000742/0.8746, allocations: 244.4 kB / 0.5799 GB, free: 120.4 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007184/0.8818, allocations: 4.003 MB / 0.5838 GB, free: 120.3 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00809/0.8899, allocations: 4.685 MB / 0.5884 GB, free: 119.8 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.83e-05/0.8901, allocations: 0 / 0.5884 GB, free: 119.8 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003649/0.8904, allocations: 3.469 kB / 0.5884 GB, free: 119.8 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001159/0.8906, allocations: 172.1 kB / 0.5885 GB, free: 119.8 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02502/0.9156, allocations: 17.3 MB / 0.6054 GB, free: 116.1 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001891/0.9175, allocations: 1.55 MB / 0.607 GB, free: 116.1 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002334/0.9199, allocations: 1.855 MB / 0.6088 GB, free: 116.1 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008143/0.928, allocations: 5.721 MB / 0.6144 GB, free: 115 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001646/0.9297, allocations: 1.347 MB / 0.6157 GB, free: 114.9 MB / 426.7 MB Notification: Performance of pre-optimization done (n=214): time 3.848e-06/0.9297, allocations: 0 / 0.6157 GB, free: 114.9 MB / 426.7 MB Notification: Performance of matching and sorting (n=247): time 0.01456/0.9443, allocations: 7.538 MB / 0.623 GB, free: 113.7 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.437e-05/0.9444, allocations: 348.9 kB / 0.6234 GB, free: 113.3 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002462/0.9468, allocations: 1.827 MB / 0.6251 GB, free: 113.1 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000176/0.947, allocations: 32.05 kB / 0.6252 GB, free: 113.1 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009303/0.948, allocations: 1.509 MB / 0.6266 GB, free: 112 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000503/0.9485, allocations: 0.793 MB / 0.6274 GB, free: 111.4 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000148/0.9486, allocations: 0 / 0.6274 GB, free: 111.4 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000124/0.9488, allocations: 415 kB / 0.6278 GB, free: 111 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00154/0.9503, allocations: 1.179 MB / 0.629 GB, free: 110.5 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001892/0.9522, allocations: 1.939 MB / 0.6309 GB, free: 109.2 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002274/0.9545, allocations: 1.521 MB / 0.6323 GB, free: 108.6 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.193e-05/0.9545, allocations: 10.22 kB / 0.6324 GB, free: 108.6 MB / 426.7 MB Notification: Performance of matching and sorting (n=362) (initialization): time 0.006589/0.9611, allocations: 4.08 MB / 0.6363 GB, free: 107 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001365/0.9625, allocations: 8.274 MB / 0.6444 GB, free: 97.98 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.686e-05/0.9626, allocations: 25.06 kB / 0.6444 GB, free: 97.98 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002575/0.9651, allocations: 1.039 MB / 0.6455 GB, free: 97.69 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002144/0.9673, allocations: 0.5278 MB / 0.646 GB, free: 97.68 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01162/0.9789, allocations: 13.21 MB / 0.6589 GB, free: 87.74 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002605/0.9816, allocations: 113 kB / 0.659 GB, free: 87.73 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002618/0.9819, allocations: 121.8 kB / 0.6591 GB, free: 87.71 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.054e-06/0.9819, allocations: 3.75 kB / 0.6591 GB, free: 87.71 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006006/0.9879, allocations: 3.77 MB / 0.6628 GB, free: 86.33 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.547e-05/0.9879, allocations: 19.38 kB / 0.6628 GB, free: 86.33 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002342/0.9903, allocations: 1.033 MB / 0.6638 GB, free: 86.04 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002045/0.9923, allocations: 0.5223 MB / 0.6643 GB, free: 86.02 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01207/1.004, allocations: 13.22 MB / 0.6772 GB, free: 76.07 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002696/1.007, allocations: 107.4 kB / 0.6773 GB, free: 76.06 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002527/1.007, allocations: 114.2 kB / 0.6774 GB, free: 76.04 MB / 426.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: switch.closerWithArc[3].v:VARIABLE(unit = "V" ) "Voltage drop of the two pins (= p.v - n.v)" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: switch.closerWithArc[1].v:VARIABLE(unit = "V" ) "Voltage drop of the two pins (= p.v - n.v)" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: switch.closerWithArc[2].v:VARIABLE(unit = "V" ) "Voltage drop of the two pins (= p.v - n.v)" type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 90 * Number of states: 0 () * Number of discrete variables: 25 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.loadControl.pulseStart,loadControl.pulseStart,$PRE.switch.closerWithArc[1].off,switch.closerWithArc[1].off,$PRE.switch.closerWithArc[1].quenched,switch.closerWithArc[1].quenched,$PRE.switch.closerWithArc[1].tSwitch,switch.closerWithArc[1].tSwitch,$PRE.switch.closerWithArc[2].off,switch.closerWithArc[2].off,$PRE.switch.closerWithArc[2].quenched,switch.closerWithArc[2].quenched,$PRE.switch.closerWithArc[2].tSwitch,switch.closerWithArc[2].tSwitch,$PRE.switch.closerWithArc[3].off,switch.closerWithArc[3].off,$PRE.switch.closerWithArc[3].quenched,switch.closerWithArc[3].quenched,$PRE.switch.closerWithArc[3].tSwitch,switch.closerWithArc[3].tSwitch,voltageController.I.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (303): * Single equations (assignments): 296 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 23,(3,100.0%) 21,(1,100.0%) 8} * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0006046/1.008, allocations: 202.6 kB / 0.6776 GB, free: 75.91 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004033/1.008, allocations: 273.2 kB / 0.6779 GB, free: 75.77 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006585/1.015, allocations: 3.542 MB / 0.6814 GB, free: 74.48 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.189e-05/1.015, allocations: 30.22 kB / 0.6814 GB, free: 74.47 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/1.015, allocations: 0 / 0.6814 GB, free: 74.47 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.739e-05/1.015, allocations: 10.55 kB / 0.6814 GB, free: 74.47 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01103/1.026, allocations: 7.285 MB / 0.6885 GB, free: 68.81 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.825e-06/1.026, allocations: 0 / 0.6885 GB, free: 68.81 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001631/1.028, allocations: 338.2 kB / 0.6888 GB, free: 68.54 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002521/1.03, allocations: 1.063 MB / 0.6899 GB, free: 67.69 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001663/1.031, allocations: 30.92 kB / 0.6899 GB, free: 67.67 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01079/1.041, allocations: 10.95 MB / 0.7006 GB, free: 57.23 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/1.041, allocations: 5.781 kB / 0.7006 GB, free: 57.23 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007165/1.049, allocations: 5.231 MB / 0.7057 GB, free: 52.45 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01275/1.061, allocations: 10.71 MB / 0.7162 GB, free: 42.62 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001415/1.063, allocations: 0.6234 MB / 0.7168 GB, free: 42.04 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005264/1.063, allocations: 22.95 kB / 0.7168 GB, free: 42.02 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001632/1.065, allocations: 93.19 kB / 0.7169 GB, free: 41.95 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003088/1.065, allocations: 158.2 kB / 0.717 GB, free: 41.87 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001494/1.065, allocations: 67.45 kB / 0.7171 GB, free: 41.81 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.001793/1.067, allocations: 1.356 MB / 0.7184 GB, free: 40.58 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005523/1.073, allocations: 1.411 MB / 0.7198 GB, free: 39.18 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.rotorCage.strayReluctance.Phi.re,speed.phi,speed.w,voltageController.I.y,loadInductor.inductor[2].i,loadInductor.inductor[3].i) * Number of discrete variables: 14 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,loadControl.pulseStart,switch.closerWithArc[1].off,switch.closerWithArc[1].quenched,switch.closerWithArc[1].tSwitch,switch.closerWithArc[2].off,switch.closerWithArc[2].quenched,switch.closerWithArc[2].tSwitch,switch.closerWithArc[3].off,switch.closerWithArc[3].quenched,switch.closerWithArc[3].tSwitch) * Number of discrete states: 6 (switch.closerWithArc[3].off,switch.closerWithArc[3].quenched,switch.closerWithArc[1].off,switch.closerWithArc[1].quenched,switch.closerWithArc[2].off,switch.closerWithArc[2].quenched) * Top-level inputs: 0 Notification: Strong component statistics for simulation (186): * Single equations (assignments): 178 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {4 56,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005614/1.073, allocations: 414.5 kB / 0.7202 GB, free: 38.86 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.008644/1.082, allocations: 6.525 MB / 0.7266 GB, free: 32.68 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.628e-06/1.082, allocations: 0 / 0.7266 GB, free: 32.68 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002915/1.085, allocations: 2.074 MB / 0.7286 GB, free: 30.73 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00237/1.087, allocations: 477.9 kB / 0.7291 GB, free: 30.37 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01251/1.1, allocations: 6.717 MB / 0.7356 GB, free: 24.35 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002996/1.103, allocations: 3.112 MB / 0.7387 GB, free: 21.91 MB / 426.7 MB Notification: Performance of SimCode: time 7.21e-07/1.103, allocations: 3.562 kB / 0.7387 GB, free: 21.91 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_LoadDump.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_LoadDump.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_LoadDump.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_LoadDump.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_LoadDump_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_LoadDump_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_LoadDump.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_LoadDump.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_LoadDump_res.mat does not exist to compare? outputFormat=mat