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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001008/0.001008, allocations: 176.4 kB / 8.348 MB, free: 0.7266 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.425/1.425, allocations: 221.5 MB / 230.3 MB, free: 7.57 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.00101/0.00101, allocations: 79.64 kB / 281.2 MB, free: 5.328 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.573e-05/1.576e-05, allocations: 4 kB / 337.2 MB, free: 9.902 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1159/0.1159, allocations: 50.42 MB / 387.6 MB, free: 7.445 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4491/0.5651, allocations: 121.8 MB / 0.4974 GB, free: 4.902 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003215/0.5655, allocations: 91.94 kB / 0.4975 GB, free: 4.812 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5127/1.078, allocations: 101.3 MB / 0.5964 GB, free: 96.91 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.473e-06/1.078, allocations: 7.875 kB / 0.5964 GB, free: 96.9 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003559/1.079, allocations: 100 kB / 0.5965 GB, free: 96.89 MB / 426.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.01273/1.091, allocations: 4.202 MB / 0.6006 GB, free: 94.82 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.651e-05/1.091, allocations: 12.94 kB / 0.6006 GB, free: 94.82 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006155/1.098, allocations: 0.9508 MB / 0.6015 GB, free: 94.5 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01298/1.111, allocations: 3.947 MB / 0.6054 GB, free: 92.56 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000367/1.111, allocations: 347.4 kB / 0.6057 GB, free: 92.36 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001539/1.113, allocations: 253.5 kB / 0.606 GB, free: 92.35 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008927/1.121, allocations: 3.935 MB / 0.6098 GB, free: 90.66 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009594/1.131, allocations: 4.614 MB / 0.6143 GB, free: 88.56 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.508e-05/1.131, allocations: 3.438 kB / 0.6143 GB, free: 88.56 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000374/1.132, allocations: 3.938 kB / 0.6143 GB, free: 88.56 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001283/1.132, allocations: 167.3 kB / 0.6145 GB, free: 88.54 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02927/1.161, allocations: 17.17 MB / 0.6313 GB, free: 74.32 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006409/1.167, allocations: 8.008 MB / 0.6391 GB, free: 65.37 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002687/1.17, allocations: 1.731 MB / 0.6408 GB, free: 63.64 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01003/1.18, allocations: 5.303 MB / 0.6459 GB, free: 58.23 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001647/1.182, allocations: 1.14 MB / 0.6471 GB, free: 57.05 MB / 426.7 MB Notification: Performance of pre-optimization done (n=176): time 9.699e-06/1.182, allocations: 0 / 0.6471 GB, free: 57.05 MB / 426.7 MB Notification: Performance of matching and sorting (n=208): time 0.01574/1.198, allocations: 7.108 MB / 0.654 GB, free: 49.9 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.56e-05/1.198, allocations: 342.4 kB / 0.6543 GB, free: 49.49 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004012/1.202, allocations: 1.793 MB / 0.6561 GB, free: 47.68 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002391/1.202, allocations: 37.69 kB / 0.6561 GB, free: 47.63 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001783/1.204, allocations: 1.943 MB / 0.658 GB, free: 45.66 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006281/1.205, allocations: 0.6698 MB / 0.6587 GB, free: 44.99 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000161/1.205, allocations: 4 kB / 0.6587 GB, free: 44.98 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001608/1.205, allocations: 403.1 kB / 0.6591 GB, free: 44.59 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001425/1.206, allocations: 0.9851 MB / 0.66 GB, free: 43.6 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001862/1.208, allocations: 1.732 MB / 0.6617 GB, free: 41.55 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002416/1.211, allocations: 1.411 MB / 0.6631 GB, free: 40.14 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.358e-05/1.211, allocations: 4 kB / 0.6631 GB, free: 40.14 MB / 426.7 MB Notification: Performance of matching and sorting (n=323) (initialization): time 0.006602/1.217, allocations: 3.743 MB / 0.6667 GB, free: 36.35 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00194/1.219, allocations: 8.284 MB / 0.6748 GB, free: 27.17 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.385e-05/1.219, allocations: 23.98 kB / 0.6749 GB, free: 27.15 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002261/1.222, allocations: 0.9995 MB / 0.6758 GB, free: 26.13 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001627/1.223, allocations: 467.3 kB / 0.6763 GB, free: 25.67 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01132/1.235, allocations: 13.64 MB / 0.6896 GB, free: 11.36 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002716/1.237, allocations: 115.9 kB / 0.6897 GB, free: 11.24 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004172/1.238, allocations: 108 kB / 0.6898 GB, free: 11.14 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.116e-05/1.238, allocations: 4 kB / 0.6898 GB, free: 11.13 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005805/1.244, allocations: 3.447 MB / 0.6932 GB, free: 7.641 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.423e-05/1.244, allocations: 20 kB / 0.6932 GB, free: 7.621 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002023/1.246, allocations: 0.9906 MB / 0.6942 GB, free: 6.609 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001651/1.247, allocations: 467.4 kB / 0.6946 GB, free: 6.152 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0133/1.261, allocations: 13.64 MB / 0.7079 GB, free: 7.832 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002799/1.264, allocations: 111.9 kB / 0.708 GB, free: 7.723 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005821/1.264, allocations: 108 kB / 0.7081 GB, free: 7.617 MB / 442.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: switch.v[3]:VARIABLE(unit = "V" ) "Voltage drops of the two polyphase plugs" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: switch.v[1]:VARIABLE(unit = "V" ) "Voltage drops of the two polyphase plugs" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: switch.v[2]:VARIABLE(unit = "V" ) "Voltage drops of the two polyphase plugs" 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 (265): * Single equations (assignments): 258 * 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%) 22,(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.0009844/1.265, allocations: 195.5 kB / 0.7083 GB, free: 7.422 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.006726/1.272, allocations: 3.016 MB / 0.7113 GB, free: 4.383 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007841/1.273, allocations: 260.9 kB / 0.7115 GB, free: 4.125 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006774/1.279, allocations: 3.155 MB / 0.7146 GB, free: 0.9414 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.012e-05/1.28, allocations: 20 kB / 0.7146 GB, free: 0.9219 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.498e-06/1.28, allocations: 0 / 0.7146 GB, free: 0.9219 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.276e-05/1.28, allocations: 7.969 kB / 0.7146 GB, free: 0.9141 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3256/1.605, allocations: 6.419 MB / 0.7209 GB, free: 99.08 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.149e-05/1.605, allocations: 1.375 kB / 0.7209 GB, free: 99.08 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001356/1.607, allocations: 273.8 kB / 0.7212 GB, free: 99.08 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002725/1.609, allocations: 1.02 MB / 0.7222 GB, free: 99.04 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002348/1.61, allocations: 30 kB / 0.7222 GB, free: 99.04 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01574/1.625, allocations: 11.23 MB / 0.7332 GB, free: 94.21 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.081e-05/1.625, allocations: 2.562 kB / 0.7332 GB, free: 94.21 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009247/1.635, allocations: 4.55 MB / 0.7376 GB, free: 93.75 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002047/1.637, allocations: 0.56 MB / 0.7381 GB, free: 93.66 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001074/1.638, allocations: 31.59 kB / 0.7382 GB, free: 93.66 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002208/1.64, allocations: 89.39 kB / 0.7383 GB, free: 93.66 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006586/1.641, allocations: 239.4 kB / 0.7385 GB, free: 93.65 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000135/1.641, allocations: 60.67 kB / 0.7385 GB, free: 93.65 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002506/1.643, allocations: 1.335 MB / 0.7399 GB, free: 93.5 MB / 442.7 MB Notification: Performance of sort global known variables: time 7.42e-07/1.643, allocations: 0 / 0.7399 GB, free: 93.5 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.006603/1.65, allocations: 1.328 MB / 0.7411 GB, free: 93.5 MB / 442.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 (147): * Single equations (assignments): 139 * 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 55,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.007566/1.658, allocations: 5.774 MB / 0.7468 GB, free: 92.16 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00913/1.667, allocations: 6.126 MB / 0.7528 GB, free: 90.37 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.242e-05/1.667, allocations: 4.812 kB / 0.7528 GB, free: 90.37 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003441/1.67, allocations: 2.007 MB / 0.7547 GB, free: 89.32 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00417/1.675, allocations: 485.5 kB / 0.7552 GB, free: 89.21 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02082/1.695, allocations: 7.256 MB / 0.7623 GB, free: 86.62 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00376/1.699, allocations: 2.921 MB / 0.7651 GB, free: 85.46 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003787/1.703, allocations: 0.9736 MB / 0.7661 GB, free: 85.36 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001779/1.705, allocations: 1.548 MB / 0.7676 GB, free: 84.04 MB / 442.7 MB Notification: Performance of SimCode: time 1.032e-06/1.705, allocations: 4 kB / 0.7676 GB, free: 84.03 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1128/1.818, allocations: 73.92 MB / 0.8398 GB, free: 31.75 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001723/1.818, allocations: 205.1 kB / 0.84 GB, free: 31.54 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.46/6.278, allocations: 2.531 kB / 0.84 GB, free: 31.54 MB / 442.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