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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001921/0.001921, allocations: 177.2 kB / 8.699 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.614/1.614, allocations: 205.3 MB / 214.4 MB, free: 1.742 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.0009327/0.0009327, allocations: 86.38 kB / 262.4 MB, free: 1.691 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.902e-05/1.924e-05, allocations: 4 kB / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.109/0.109, allocations: 47.58 MB / 363.2 MB, free: 6.984 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4033/0.5124, allocations: 120.7 MB / 483.9 MB, free: 7.379 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002285/0.5127, allocations: 84.52 kB / 484 MB, free: 7.336 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4334/0.9461, allocations: 101 MB / 0.5712 GB, free: 92.37 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.9461, allocations: 0 / 0.5712 GB, free: 92.37 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003322/0.9465, allocations: 107.9 kB / 0.5713 GB, free: 92.36 MB / 410.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.01169/0.9582, allocations: 4.196 MB / 0.5754 GB, free: 90.67 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.265e-05/0.9582, allocations: 11.81 kB / 0.5754 GB, free: 90.67 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00643/0.9647, allocations: 0.9534 MB / 0.5764 GB, free: 90.42 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01058/0.9753, allocations: 3.949 MB / 0.5802 GB, free: 88.72 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000343/0.9757, allocations: 348.1 kB / 0.5806 GB, free: 88.51 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001581/0.9773, allocations: 246.1 kB / 0.5808 GB, free: 88.5 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009068/0.9864, allocations: 3.933 MB / 0.5846 GB, free: 86.82 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01167/0.9981, allocations: 4.609 MB / 0.5891 GB, free: 84.72 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001044/0.9982, allocations: 7.469 kB / 0.5891 GB, free: 84.72 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000389/0.9986, allocations: 3.75 kB / 0.5892 GB, free: 84.72 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001277/0.9988, allocations: 171.1 kB / 0.5893 GB, free: 84.7 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02824/1.027, allocations: 17.18 MB / 0.6061 GB, free: 75.22 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005454/1.033, allocations: 8.014 MB / 0.6139 GB, free: 67.63 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002504/1.035, allocations: 1.732 MB / 0.6156 GB, free: 66.06 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008714/1.044, allocations: 5.279 MB / 0.6208 GB, free: 61.58 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00134/1.045, allocations: 1.136 MB / 0.6219 GB, free: 60.61 MB / 410.7 MB Notification: Performance of pre-optimization done (n=175): time 2.996e-06/1.045, allocations: 0 / 0.6219 GB, free: 60.61 MB / 410.7 MB Notification: Performance of matching and sorting (n=207): time 0.01375/1.059, allocations: 7.093 MB / 0.6288 GB, free: 53.49 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.773e-05/1.059, allocations: 346.4 kB / 0.6291 GB, free: 53.08 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002873/1.062, allocations: 1.805 MB / 0.6309 GB, free: 51.25 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002796/1.062, allocations: 41.69 kB / 0.6309 GB, free: 51.21 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001568/1.064, allocations: 1.939 MB / 0.6328 GB, free: 49.24 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005631/1.064, allocations: 0.6689 MB / 0.6335 GB, free: 48.57 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001136/1.065, allocations: 0 / 0.6335 GB, free: 48.57 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001441/1.065, allocations: 403.9 kB / 0.6339 GB, free: 48.17 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001202/1.066, allocations: 0.9812 MB / 0.6348 GB, free: 47.18 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001528/1.067, allocations: 1.729 MB / 0.6365 GB, free: 45.14 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001977/1.069, allocations: 1.407 MB / 0.6379 GB, free: 43.73 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.116e-05/1.069, allocations: 11.94 kB / 0.6379 GB, free: 43.72 MB / 410.7 MB Notification: Performance of matching and sorting (n=323) (initialization): time 0.00576/1.075, allocations: 3.739 MB / 0.6415 GB, free: 39.93 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001485/1.077, allocations: 8.376 MB / 0.6497 GB, free: 30.66 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.546e-05/1.077, allocations: 28 kB / 0.6498 GB, free: 30.63 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002434/1.079, allocations: 0.9928 MB / 0.6507 GB, free: 29.63 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002122/1.081, allocations: 483.2 kB / 0.6512 GB, free: 29.16 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.011/1.092, allocations: 13.63 MB / 0.6645 GB, free: 14.84 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002543/1.095, allocations: 127.7 kB / 0.6646 GB, free: 14.72 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003227/1.095, allocations: 108 kB / 0.6647 GB, free: 14.61 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.028e-05/1.095, allocations: 4 kB / 0.6647 GB, free: 14.61 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00512/1.1, allocations: 3.435 MB / 0.6681 GB, free: 11.13 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.149e-05/1.101, allocations: 20 kB / 0.6681 GB, free: 11.11 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002027/1.103, allocations: 0.9854 MB / 0.6691 GB, free: 10.11 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001701/1.104, allocations: 479.2 kB / 0.6695 GB, free: 9.645 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01279/1.117, allocations: 13.65 MB / 0.6828 GB, free: 11.31 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002711/1.12, allocations: 107.9 kB / 0.683 GB, free: 11.2 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003722/1.12, allocations: 108 kB / 0.6831 GB, free: 11.1 MB / 426.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: 91 * 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.0006655/1.121, allocations: 209.9 kB / 0.6833 GB, free: 10.89 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.006133/1.127, allocations: 3.008 MB / 0.6862 GB, free: 7.867 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006394/1.128, allocations: 256.9 kB / 0.6864 GB, free: 7.613 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006471/1.134, allocations: 3.139 MB / 0.6895 GB, free: 4.449 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-05/1.134, allocations: 20 kB / 0.6895 GB, free: 4.43 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.739e-06/1.134, allocations: 8 kB / 0.6895 GB, free: 4.422 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.528e-05/1.134, allocations: 15.89 kB / 0.6895 GB, free: 4.406 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2512/1.385, allocations: 6.394 MB / 0.6958 GB, free: 96.03 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.598e-06/1.386, allocations: 2.094 kB / 0.6958 GB, free: 96.03 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001344/1.387, allocations: 283.3 kB / 0.6961 GB, free: 96.03 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002722/1.39, allocations: 1.015 MB / 0.6971 GB, free: 95.99 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002126/1.39, allocations: 30.69 kB / 0.6971 GB, free: 95.99 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01253/1.402, allocations: 11.23 MB / 0.708 GB, free: 91.16 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.963e-06/1.402, allocations: 4.219 kB / 0.708 GB, free: 91.16 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008376/1.411, allocations: 4.561 MB / 0.7125 GB, free: 90.67 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001563/1.412, allocations: 0.5624 MB / 0.7131 GB, free: 90.57 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005424/1.413, allocations: 24.17 kB / 0.7131 GB, free: 90.57 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001497/1.415, allocations: 104.3 kB / 0.7132 GB, free: 90.57 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005725/1.415, allocations: 231.7 kB / 0.7134 GB, free: 90.57 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000133/1.415, allocations: 59.03 kB / 0.7135 GB, free: 90.57 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002357/1.418, allocations: 1.337 MB / 0.7148 GB, free: 90.43 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.303e-06/1.418, allocations: 3.062 kB / 0.7148 GB, free: 90.43 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005843/1.423, allocations: 1.329 MB / 0.7161 GB, free: 90.43 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 (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.007177/1.431, allocations: 5.846 MB / 0.7218 GB, free: 88.99 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00872/1.439, allocations: 6.11 MB / 0.7277 GB, free: 87.44 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.424e-06/1.439, allocations: 3.406 kB / 0.7277 GB, free: 87.44 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002972/1.442, allocations: 2.022 MB / 0.7297 GB, free: 86.56 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003082/1.446, allocations: 486.8 kB / 0.7302 GB, free: 86.44 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01633/1.462, allocations: 7.273 MB / 0.7373 GB, free: 83.87 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002702/1.465, allocations: 2.925 MB / 0.7401 GB, free: 82.74 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.004126/1.469, allocations: 0.9677 MB / 0.7411 GB, free: 82.64 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001883/1.471, allocations: 1.547 MB / 0.7426 GB, free: 81.32 MB / 426.7 MB Notification: Performance of SimCode: time 1.092e-06/1.471, allocations: 2.953 kB / 0.7426 GB, free: 81.32 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1151/1.586, allocations: 73.89 MB / 0.8148 GB, free: 31.09 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001589/1.586, allocations: 166.3 kB / 0.8149 GB, free: 30.89 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.646/6.232, allocations: 4.031 kB / 0.8149 GB, free: 30.89 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