Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump.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.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_LoadDump",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_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 4.0.0+maint.om/package.mo): time 0.001015/0.001015, allocations: 183.4 kB / 8.138 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.161/1.161, allocations: 221.4 MB / 229.9 MB, free: 3.371 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.0009655/0.0009656, allocations: 100.8 kB / 280.8 MB, free: 1.285 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09199/0.09299, allocations: 55.83 MB / 336.6 MB, free: 9.441 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1743/0.2673, allocations: 50.4 MB / 387 MB, free: 38.11 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2395/0.5069, allocations: 121.7 MB / 0.4968 GB, free: 103.8 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001921/0.5071, allocations: 96.28 kB / 0.4969 GB, free: 103.8 MB / 378.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.2319/0.739, allocations: 105.5 MB / 0.5999 GB, free: 9.008 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.865e-05/0.7391, allocations: 12 kB / 0.5999 GB, free: 8.996 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005549/0.7446, allocations: 0.9817 MB / 0.6009 GB, free: 8.008 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009182/0.7538, allocations: 3.953 MB / 0.6047 GB, free: 3.973 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00027/0.7541, allocations: 342.5 kB / 0.6051 GB, free: 3.598 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009127/0.7551, allocations: 243.9 kB / 0.6053 GB, free: 3.359 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007789/0.7629, allocations: 4.015 MB / 0.6092 GB, free: 15.33 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008953/0.7718, allocations: 4.658 MB / 0.6138 GB, free: 10.49 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.758e-05/0.772, allocations: 11.84 kB / 0.6138 GB, free: 10.48 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000357/0.7723, allocations: 7.984 kB / 0.6138 GB, free: 10.47 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00015/0.7725, allocations: 168.2 kB / 0.6139 GB, free: 10.3 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02798/0.8005, allocations: 17.28 MB / 0.6308 GB, free: 8.547 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002257/0.8028, allocations: 1.549 MB / 0.6323 GB, free: 6.988 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002807/0.8056, allocations: 1.87 MB / 0.6342 GB, free: 5.121 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009906/0.8155, allocations: 5.74 MB / 0.6398 GB, free: 15.2 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001941/0.8175, allocations: 1.363 MB / 0.6411 GB, free: 13.8 MB / 426.7 MB Notification: Performance of pre-optimization done (n=215): time 4.008e-06/0.8175, allocations: 0 / 0.6411 GB, free: 13.8 MB / 426.7 MB Notification: Performance of matching and sorting (n=248): time 0.01658/0.8341, allocations: 7.556 MB / 0.6485 GB, free: 6.191 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001483/0.8343, allocations: 346.4 kB / 0.6488 GB, free: 5.777 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002891/0.8372, allocations: 1.809 MB / 0.6506 GB, free: 3.945 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001852/0.8374, allocations: 37.69 kB / 0.6506 GB, free: 3.902 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001242/0.8386, allocations: 1.51 MB / 0.6521 GB, free: 2.363 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006593/0.8393, allocations: 0.793 MB / 0.6528 GB, free: 1.559 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001392/0.8394, allocations: 0 / 0.6528 GB, free: 1.559 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001978/0.8396, allocations: 415.8 kB / 0.6532 GB, free: 1.148 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1151/0.9547, allocations: 1.179 MB / 0.6544 GB, free: 101.4 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002127/0.9569, allocations: 1.936 MB / 0.6563 GB, free: 100.6 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002271/0.9592, allocations: 1.527 MB / 0.6578 GB, free: 100.5 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.018e-05/0.9592, allocations: 7.625 kB / 0.6578 GB, free: 100.5 MB / 426.7 MB Notification: Performance of matching and sorting (n=362) (initialization): time 0.006327/0.9655, allocations: 4.092 MB / 0.6618 GB, free: 100.3 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001264/0.9668, allocations: 8.173 MB / 0.6698 GB, free: 91.57 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.784e-05/0.9669, allocations: 19.03 kB / 0.6698 GB, free: 91.57 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002494/0.9694, allocations: 1.032 MB / 0.6708 GB, free: 91.51 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002141/0.9715, allocations: 0.5213 MB / 0.6713 GB, free: 91.51 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0115/0.983, allocations: 13.2 MB / 0.6842 GB, free: 84.23 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002464/0.9855, allocations: 122 kB / 0.6843 GB, free: 84.23 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003207/0.9858, allocations: 112.7 kB / 0.6844 GB, free: 84.23 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.953e-06/0.9859, allocations: 3.625 kB / 0.6844 GB, free: 84.23 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006215/0.9921, allocations: 3.787 MB / 0.6881 GB, free: 83.99 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.317e-05/0.9921, allocations: 19.75 kB / 0.6881 GB, free: 83.99 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002307/0.9945, allocations: 1.022 MB / 0.6891 GB, free: 83.94 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002051/0.9965, allocations: 0.5165 MB / 0.6896 GB, free: 83.94 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01147/1.008, allocations: 13.2 MB / 0.7025 GB, free: 76.64 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002313/1.01, allocations: 101.7 kB / 0.7026 GB, free: 76.64 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000324/1.011, allocations: 116.7 kB / 0.7027 GB, free: 76.64 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: 89 * 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.0006082/1.011, allocations: 206.5 kB / 0.7029 GB, free: 76.54 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005362/1.012, allocations: 274.7 kB / 0.7032 GB, free: 76.41 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006611/1.018, allocations: 3.551 MB / 0.7067 GB, free: 76.24 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.704e-05/1.018, allocations: 25.34 kB / 0.7067 GB, free: 76.24 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.033e-06/1.019, allocations: 2.516 kB / 0.7067 GB, free: 76.24 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.854e-05/1.019, allocations: 18.3 kB / 0.7067 GB, free: 76.24 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01166/1.03, allocations: 7.278 MB / 0.7138 GB, free: 75.6 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.298e-06/1.03, allocations: 6.594 kB / 0.7138 GB, free: 75.6 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001644/1.032, allocations: 336 kB / 0.7141 GB, free: 75.6 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002521/1.034, allocations: 1.049 MB / 0.7152 GB, free: 75.56 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001947/1.035, allocations: 32.03 kB / 0.7152 GB, free: 75.56 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0112/1.046, allocations: 10.94 MB / 0.7259 GB, free: 70.55 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.659e-06/1.046, allocations: 3.25 kB / 0.7259 GB, free: 70.55 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007494/1.053, allocations: 5.231 MB / 0.731 GB, free: 69.94 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01399/1.067, allocations: 10.73 MB / 0.7415 GB, free: 65.57 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001387/1.069, allocations: 0.6213 MB / 0.7421 GB, free: 65.16 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007206/1.07, allocations: 30.28 kB / 0.7421 GB, free: 65.16 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001851/1.071, allocations: 90.12 kB / 0.7422 GB, free: 65.16 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003392/1.072, allocations: 160.8 kB / 0.7423 GB, free: 65.13 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001792/1.072, allocations: 63.25 kB / 0.7424 GB, free: 65.12 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.002468/1.074, allocations: 1.351 MB / 0.7437 GB, free: 64.55 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006623/1.081, allocations: 1.412 MB / 0.7451 GB, free: 64.47 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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.0006423/1.082, allocations: 413.6 kB / 0.7455 GB, free: 64.36 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.008935/1.091, allocations: 6.544 MB / 0.7519 GB, free: 61.13 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.177e-06/1.091, allocations: 2.719 kB / 0.7519 GB, free: 61.13 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002866/1.094, allocations: 2.052 MB / 0.7539 GB, free: 60.12 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002419/1.096, allocations: 468.3 kB / 0.7543 GB, free: 60.01 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01385/1.11, allocations: 6.702 MB / 0.7609 GB, free: 57.44 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003599/1.113, allocations: 3.109 MB / 0.7639 GB, free: 56.27 MB / 426.7 MB Notification: Performance of SimCode: time 9.22e-07/1.113, allocations: 4 kB / 0.7639 GB, free: 56.26 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_LoadDump_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_LoadDump.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump_res.mat does not exist to compare? outputFormat=mat