Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.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.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_LoadDump",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_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.0009133/0.0009133, allocations: 176.2 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.382/1.382, allocations: 221.5 MB / 230.3 MB, free: 7.586 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.0007796/0.0007796, allocations: 94.36 kB / 281.2 MB, free: 5.336 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.511e-05/1.515e-05, allocations: 0 / 337.1 MB, free: 9.934 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09817/0.0982, allocations: 50.43 MB / 387.6 MB, free: 7.465 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3414/0.4397, allocations: 115.3 MB / 0.491 GB, free: 11.36 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002572/0.44, allocations: 85.8 kB / 0.4911 GB, free: 11.27 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3853/0.8253, allocations: 61.98 MB / 0.5517 GB, free: 99.22 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.765e-06/0.8254, allocations: 0 / 0.5517 GB, free: 99.22 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002665/0.8256, allocations: 80.03 kB / 0.5517 GB, free: 99.21 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: 731 * Number of variables: 731 Notification: Performance of Generate backend data structure: time 0.008315/0.834, allocations: 3.021 MB / 0.5547 GB, free: 98.11 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.633e-05/0.834, allocations: 10.64 kB / 0.5547 GB, free: 98.11 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002464/0.8365, allocations: 488.2 kB / 0.5552 GB, free: 97.93 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004785/0.8413, allocations: 2.069 MB / 0.5572 GB, free: 97.45 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002048/0.8415, allocations: 293.8 kB / 0.5575 GB, free: 97.25 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00057/0.8421, allocations: 172.3 kB / 0.5576 GB, free: 97.25 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005331/0.8474, allocations: 2.659 MB / 0.5602 GB, free: 97.23 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006055/0.8535, allocations: 3.174 MB / 0.5633 GB, free: 96.81 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.744e-05/0.8537, allocations: 8.672 kB / 0.5633 GB, free: 96.81 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002432/0.8539, allocations: 5.281 kB / 0.5633 GB, free: 96.81 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001326/0.8541, allocations: 113.8 kB / 0.5634 GB, free: 96.8 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02015/0.8742, allocations: 11.42 MB / 0.5746 GB, free: 93.84 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002367/0.8766, allocations: 2.715 MB / 0.5772 GB, free: 92.68 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001225/0.8779, allocations: 1.06 MB / 0.5783 GB, free: 92.67 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002696/0.8782, allocations: 139.7 kB / 0.5784 GB, free: 92.57 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001264/0.8794, allocations: 1.079 MB / 0.5795 GB, free: 92.44 MB / 426.7 MB Notification: Performance of pre-optimization done (n=156): time 3.306e-06/0.8795, allocations: 0.8438 kB / 0.5795 GB, free: 92.44 MB / 426.7 MB Notification: Performance of matching and sorting (n=180): time 0.01133/0.8908, allocations: 6.411 MB / 0.5857 GB, free: 90.1 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.996e-05/0.8909, allocations: 316.4 kB / 0.586 GB, free: 89.75 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002088/0.893, allocations: 1.551 MB / 0.5875 GB, free: 89.09 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001511/0.8932, allocations: 33.28 kB / 0.5876 GB, free: 89.06 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008778/0.894, allocations: 1.381 MB / 0.5889 GB, free: 88.01 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003394/0.8944, allocations: 0.5777 MB / 0.5895 GB, free: 87.56 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001055/0.8945, allocations: 0 / 0.5895 GB, free: 87.56 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.427e-05/0.8946, allocations: 386.7 kB / 0.5899 GB, free: 87.23 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001094/0.8957, allocations: 0.9635 MB / 0.5908 GB, free: 86.85 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001358/0.8971, allocations: 1.487 MB / 0.5922 GB, free: 85.85 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001313/0.8984, allocations: 1.169 MB / 0.5934 GB, free: 85.41 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.734e-06/0.8984, allocations: 3.875 kB / 0.5934 GB, free: 85.41 MB / 426.7 MB Notification: Performance of matching and sorting (n=264) (initialization): time 0.004706/0.9031, allocations: 3.351 MB / 0.5967 GB, free: 84.22 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008373/0.904, allocations: 5.348 MB / 0.6019 GB, free: 78.5 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.218e-05/0.904, allocations: 13.5 kB / 0.6019 GB, free: 78.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002607/0.9066, allocations: 1.166 MB / 0.603 GB, free: 78.18 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001411/0.9081, allocations: 383.1 kB / 0.6034 GB, free: 78.17 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01143/0.9195, allocations: 14.01 MB / 0.6171 GB, free: 67.94 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002247/0.9218, allocations: 131 kB / 0.6172 GB, free: 67.93 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002184/0.922, allocations: 82.09 kB / 0.6173 GB, free: 67.91 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.897e-06/0.922, allocations: 4.469 kB / 0.6173 GB, free: 67.91 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004195/0.9262, allocations: 3.096 MB / 0.6203 GB, free: 66.81 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.236e-05/0.9263, allocations: 15.16 kB / 0.6203 GB, free: 66.81 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002416/0.9287, allocations: 1.162 MB / 0.6215 GB, free: 66.48 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001309/0.93, allocations: 379.4 kB / 0.6218 GB, free: 66.44 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01126/0.9413, allocations: 14.01 MB / 0.6355 GB, free: 56.17 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002315/0.9437, allocations: 125 kB / 0.6356 GB, free: 56.16 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002298/0.9439, allocations: 78.19 kB / 0.6357 GB, free: 56.14 MB / 426.7 MB 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[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[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: 59 * 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 (212): * Single equations (assignments): 205 * 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%) 16,(3,100.0%) 24,(2,100.0%) 4} * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0005007/0.9444, allocations: 188.1 kB / 0.6359 GB, free: 55.99 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005084/0.9495, allocations: 3.073 MB / 0.6389 GB, free: 54.88 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00054/0.9501, allocations: 216.2 kB / 0.6391 GB, free: 54.66 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005145/0.9552, allocations: 3.219 MB / 0.6422 GB, free: 52.02 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.193e-05/0.9552, allocations: 19.95 kB / 0.6423 GB, free: 52 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.9553, allocations: 0 / 0.6423 GB, free: 52 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.655e-05/0.9553, allocations: 9.234 kB / 0.6423 GB, free: 52 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009064/0.9644, allocations: 6.149 MB / 0.6483 GB, free: 47.02 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.394e-06/0.9644, allocations: 0 / 0.6483 GB, free: 47.02 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008208/0.9652, allocations: 202.1 kB / 0.6485 GB, free: 46.86 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002952/0.9682, allocations: 1.39 MB / 0.6498 GB, free: 45.77 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001178/0.9683, allocations: 22.56 kB / 0.6498 GB, free: 45.75 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0129/0.9812, allocations: 14.2 MB / 0.6637 GB, free: 32.47 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.041e-06/0.9813, allocations: 4 kB / 0.6637 GB, free: 32.46 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006059/0.9873, allocations: 4.695 MB / 0.6683 GB, free: 28.22 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001187/0.9886, allocations: 0.5027 MB / 0.6688 GB, free: 27.75 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003879/0.989, allocations: 31.36 kB / 0.6688 GB, free: 27.73 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001325/0.9903, allocations: 107.3 kB / 0.6689 GB, free: 27.66 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000444/0.9907, allocations: 227.8 kB / 0.6691 GB, free: 27.53 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001092/0.9909, allocations: 51.05 kB / 0.6692 GB, free: 27.48 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001437/0.9923, allocations: 1.167 MB / 0.6703 GB, free: 26.41 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.9923, allocations: 3.938 kB / 0.6703 GB, free: 26.41 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003475/0.9958, allocations: 1.109 MB / 0.6714 GB, free: 25.3 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 8 (smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[1],smee.idq_rr[2],smee.idq_dr[1],speed.phi,speed.w,voltageController.I.y) * 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 (116): * Single equations (assignments): 107 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 4} * Non-linear torn systems: 4 {7 52,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.00619/1.002, allocations: 6.108 MB / 0.6774 GB, free: 19.75 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.007645/1.01, allocations: 5.966 MB / 0.6832 GB, free: 14.2 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.002e-06/1.01, allocations: 0 / 0.6832 GB, free: 14.2 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003232/1.013, allocations: 2.322 MB / 0.6855 GB, free: 12.11 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002463/1.015, allocations: 411.8 kB / 0.6859 GB, free: 11.79 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0104/1.026, allocations: 5.758 MB / 0.6915 GB, free: 6.82 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001584/1.027, allocations: 2.323 MB / 0.6938 GB, free: 4.59 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002641/1.03, allocations: 0.8444 MB / 0.6946 GB, free: 3.762 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001123/1.031, allocations: 1.116 MB / 0.6957 GB, free: 2.648 MB / 426.7 MB Notification: Performance of SimCode: time 1.272e-06/1.031, allocations: 4 kB / 0.6957 GB, free: 2.645 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3272/1.358, allocations: 64.12 MB / 0.7583 GB, free: 94.61 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001975/1.359, allocations: 164.3 kB / 0.7584 GB, free: 94.43 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.181/5.54, allocations: 0 / 0.7584 GB, free: 94.43 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_LoadDump_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_LoadDump.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump_res.mat does not exist to compare? outputFormat=mat