Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump.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) 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(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump,fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.001041/0.001041, allocations: 203.6 kB / 8.541 MB, free: 1.832 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.144/1.144, allocations: 225.5 MB / 234.4 MB, free: 3.336 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009264/0.0009264, allocations: 94.69 kB / 286.3 MB, free: 5.293 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09636/0.09731, allocations: 56.91 MB / 343.2 MB, free: 8.586 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0852/0.1825, allocations: 51.48 MB / 394.7 MB, free: 5.051 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.236/0.4186, allocations: 122.7 MB / 0.5053 GB, free: 3.109 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002473/0.4189, allocations: 92.5 kB / 0.5054 GB, free: 3.062 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.3802/0.7991, allocations: 109 MB / 0.6118 GB, free: 73.88 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.199e-05/0.7991, allocations: 6.344 kB / 0.6118 GB, free: 73.88 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004935/0.804, allocations: 0.9828 MB / 0.6128 GB, free: 73.62 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007962/0.812, allocations: 3.981 MB / 0.6167 GB, free: 72.93 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002103/0.8123, allocations: 343 kB / 0.617 GB, free: 72.73 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006361/0.8129, allocations: 251.3 kB / 0.6172 GB, free: 72.73 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006316/0.8192, allocations: 4.014 MB / 0.6212 GB, free: 72.7 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006947/0.8262, allocations: 4.666 MB / 0.6257 GB, free: 71.4 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.809e-05/0.8263, allocations: 7.75 kB / 0.6257 GB, free: 71.4 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003625/0.8267, allocations: 7.359 kB / 0.6257 GB, free: 71.4 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001029/0.8268, allocations: 172 kB / 0.6259 GB, free: 71.38 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02126/0.8481, allocations: 17.36 MB / 0.6429 GB, free: 61.83 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001962/0.85, allocations: 1.549 MB / 0.6444 GB, free: 61.21 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002566/0.8526, allocations: 1.897 MB / 0.6462 GB, free: 60.54 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008352/0.861, allocations: 6.342 MB / 0.6524 GB, free: 56.75 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001679/0.8627, allocations: 1.347 MB / 0.6537 GB, free: 56.15 MB / 442.7 MB Notification: Performance of pre-optimization done (n=215): time 3.687e-06/0.8627, allocations: 0 / 0.6537 GB, free: 56.15 MB / 442.7 MB Notification: Performance of matching and sorting (n=248): time 0.01489/0.8776, allocations: 7.573 MB / 0.6611 GB, free: 52.92 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.062e-05/0.8777, allocations: 337.6 kB / 0.6614 GB, free: 52.54 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002344/0.88, allocations: 1.834 MB / 0.6632 GB, free: 51.79 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001396/0.8802, allocations: 35.88 kB / 0.6633 GB, free: 51.76 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008734/0.8811, allocations: 1.501 MB / 0.6647 GB, free: 50.69 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004354/0.8815, allocations: 0.7949 MB / 0.6655 GB, free: 50.07 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001333/0.8817, allocations: 4 kB / 0.6655 GB, free: 50.06 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001147/0.8818, allocations: 421.8 kB / 0.6659 GB, free: 49.71 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001527/0.8833, allocations: 1.18 MB / 0.6671 GB, free: 49.22 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00182/0.8851, allocations: 1.94 MB / 0.669 GB, free: 47.81 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002153/0.8873, allocations: 1.524 MB / 0.6705 GB, free: 47.16 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.488e-06/0.8873, allocations: 6.688 kB / 0.6705 GB, free: 47.16 MB / 442.7 MB Notification: Performance of matching and sorting (n=362) (initialization): time 0.005992/0.8933, allocations: 4.101 MB / 0.6745 GB, free: 45.48 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001019/0.8943, allocations: 8.182 MB / 0.6825 GB, free: 36.47 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.279e-05/0.8944, allocations: 19.88 kB / 0.6825 GB, free: 36.47 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002328/0.8967, allocations: 1.03 MB / 0.6835 GB, free: 36.17 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002017/0.8987, allocations: 0.524 MB / 0.684 GB, free: 36.11 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01166/0.9104, allocations: 13.2 MB / 0.6969 GB, free: 26.05 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002231/0.9127, allocations: 115.4 kB / 0.697 GB, free: 26.04 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002177/0.9129, allocations: 116 kB / 0.6971 GB, free: 26.02 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.061e-06/0.9129, allocations: 5.188 kB / 0.6971 GB, free: 26.02 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005839/0.9187, allocations: 3.783 MB / 0.7008 GB, free: 24.51 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.178e-05/0.9188, allocations: 19.06 kB / 0.7008 GB, free: 24.51 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002284/0.9211, allocations: 1.032 MB / 0.7018 GB, free: 24.19 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001975/0.9231, allocations: 0.5059 MB / 0.7023 GB, free: 24.14 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01144/0.9345, allocations: 13.21 MB / 0.7152 GB, free: 13.11 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002151/0.9367, allocations: 116.6 kB / 0.7153 GB, free: 13.02 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002087/0.9369, allocations: 115.4 kB / 0.7154 GB, free: 12.91 MB / 442.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.0005123/0.9374, allocations: 206.9 kB / 0.7156 GB, free: 12.71 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003662/0.9378, allocations: 272.6 kB / 0.7159 GB, free: 12.44 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006195/0.944, allocations: 3.554 MB / 0.7194 GB, free: 9.449 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.558e-05/0.944, allocations: 24 kB / 0.7194 GB, free: 9.426 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.944, allocations: 0 / 0.7194 GB, free: 9.426 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.163e-05/0.9441, allocations: 10.41 kB / 0.7194 GB, free: 9.426 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01005/0.9541, allocations: 7.285 MB / 0.7265 GB, free: 3.43 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.164e-06/0.9542, allocations: 5.188 kB / 0.7265 GB, free: 3.426 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001515/0.9557, allocations: 336.4 kB / 0.7268 GB, free: 3.145 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002325/0.958, allocations: 1.032 MB / 0.7279 GB, free: 2.316 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001636/0.9582, allocations: 26.89 kB / 0.7279 GB, free: 2.297 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01202/0.9702, allocations: 10.95 MB / 0.7386 GB, free: 7.82 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-05/0.9702, allocations: 4 kB / 0.7386 GB, free: 7.816 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007895/0.9781, allocations: 5.231 MB / 0.7437 GB, free: 3.055 MB / 458.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.1316/1.11, allocations: 10.73 MB / 0.7542 GB, free: 126.5 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001415/1.111, allocations: 0.6253 MB / 0.7548 GB, free: 126.4 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004792/1.112, allocations: 34.52 kB / 0.7548 GB, free: 126.4 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001518/1.113, allocations: 89.2 kB / 0.7549 GB, free: 126.4 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002935/1.114, allocations: 158.4 kB / 0.755 GB, free: 126.4 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001577/1.114, allocations: 69.81 kB / 0.7551 GB, free: 126.4 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.001721/1.115, allocations: 1.359 MB / 0.7564 GB, free: 126.3 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005289/1.121, allocations: 1.424 MB / 0.7578 GB, free: 126.3 MB / 458.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 {3 57,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005416/1.121, allocations: 426.6 kB / 0.7582 GB, free: 126.2 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.008311/1.13, allocations: 6.551 MB / 0.7646 GB, free: 124.8 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/1.13, allocations: 3.156 kB / 0.7646 GB, free: 124.8 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002721/1.132, allocations: 2.036 MB / 0.7666 GB, free: 124.3 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002076/1.134, allocations: 474.9 kB / 0.7671 GB, free: 124.3 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01149/1.146, allocations: 6.724 MB / 0.7736 GB, free: 123 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002768/1.149, allocations: 3.113 MB / 0.7767 GB, free: 122.2 MB / 458.7 MB Notification: Performance of SimCode: time 7.32e-07/1.149, allocations: 0 / 0.7767 GB, free: 122.2 MB / 458.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_LoadDump_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_LoadDump.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump_res.mat does not exist to compare? outputFormat=mat