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.001122/0.001122, allocations: 179.7 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.311/1.311, allocations: 223.2 MB / 240.3 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009077/0.0009077, allocations: 95.11 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002419/0.0002419, allocations: 4 kB / 351.2 MB, free: 15.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2279/0.2281, allocations: 50.41 MB / 401.6 MB, free: 32.47 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3069/0.5351, allocations: 116 MB / 0.5055 GB, free: 49.38 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002399/0.5354, allocations: 94.83 kB / 0.5055 GB, free: 49.38 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1512/0.6866, allocations: 62.67 MB / 0.5668 GB, free: 34.68 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.726e-06/0.6867, allocations: 0 / 0.5668 GB, free: 34.68 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003242/0.687, allocations: 82.3 kB / 0.5668 GB, free: 34.66 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: 731 * Number of variables: 731 Notification: Performance of Generate backend data structure: time 0.009637/0.6967, allocations: 3.447 MB / 0.5702 GB, free: 32.54 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.648e-05/0.6967, allocations: 8.031 kB / 0.5702 GB, free: 32.53 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001783/0.6985, allocations: 459.9 kB / 0.5706 GB, free: 32.25 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002417/0.701, allocations: 483.5 kB / 0.5711 GB, free: 31.77 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005865/0.7068, allocations: 2.09 MB / 0.5731 GB, free: 30.15 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003351/0.7072, allocations: 387.8 kB / 0.5735 GB, free: 29.82 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001162/0.7084, allocations: 290.2 kB / 0.5738 GB, free: 29.63 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009346/0.7178, allocations: 3.663 MB / 0.5774 GB, free: 26.07 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001401/0.718, allocations: 7.906 kB / 0.5774 GB, free: 26.07 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007025/0.7187, allocations: 120 kB / 0.5775 GB, free: 25.95 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001181/0.7188, allocations: 109.5 kB / 0.5776 GB, free: 25.84 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005526/0.7243, allocations: 2.942 MB / 0.5805 GB, free: 22.89 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01789/0.7423, allocations: 11.97 MB / 0.5922 GB, free: 10.56 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002669/0.745, allocations: 2.863 MB / 0.595 GB, free: 7.48 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002586/0.7453, allocations: 142.3 kB / 0.5951 GB, free: 7.324 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001457/0.7467, allocations: 1.171 MB / 0.5962 GB, free: 6.113 MB / 378.7 MB Notification: Performance of pre-optimization done (n=156): time 3.006e-06/0.7467, allocations: 0 / 0.5962 GB, free: 6.113 MB / 378.7 MB Notification: Performance of matching and sorting (n=179): time 0.02147/0.7682, allocations: 9.9 MB / 0.6059 GB, free: 12.06 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001704/0.7684, allocations: 312.7 kB / 0.6062 GB, free: 11.69 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003152/0.7716, allocations: 1.851 MB / 0.608 GB, free: 9.809 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002411/0.7718, allocations: 65.69 kB / 0.6081 GB, free: 9.738 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001269/0.7731, allocations: 1.371 MB / 0.6094 GB, free: 8.355 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005689/0.7737, allocations: 0.597 MB / 0.61 GB, free: 7.75 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001231/0.7738, allocations: 40 kB / 0.61 GB, free: 7.711 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001855/0.774, allocations: 390 kB / 0.6104 GB, free: 7.324 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00177/0.7758, allocations: 1.054 MB / 0.6114 GB, free: 6.266 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002131/0.7779, allocations: 1.588 MB / 0.613 GB, free: 4.457 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001963/0.7799, allocations: 1.259 MB / 0.6142 GB, free: 3.199 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.707e-06/0.7799, allocations: 11.94 kB / 0.6142 GB, free: 3.188 MB / 394.7 MB Notification: Performance of matching and sorting (n=263) (initialization): time 0.006855/0.7868, allocations: 3.671 MB / 0.6178 GB, free: 15.48 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002075/0.7889, allocations: 5.409 MB / 0.6231 GB, free: 9.695 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.062e-05/0.789, allocations: 12 kB / 0.6231 GB, free: 9.684 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003355/0.7923, allocations: 1.203 MB / 0.6243 GB, free: 8.465 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001736/0.7941, allocations: 383.3 kB / 0.6246 GB, free: 8.09 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01661/0.8107, allocations: 14.86 MB / 0.6392 GB, free: 8.43 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002487/0.8133, allocations: 171.8 kB / 0.6393 GB, free: 8.262 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002229/0.8135, allocations: 79.98 kB / 0.6394 GB, free: 8.184 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.097e-05/0.8135, allocations: 4 kB / 0.6394 GB, free: 8.18 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005796/0.8193, allocations: 3.426 MB / 0.6428 GB, free: 4.73 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.927e-05/0.8194, allocations: 16 kB / 0.6428 GB, free: 4.715 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002982/0.8224, allocations: 1.196 MB / 0.6439 GB, free: 3.5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001613/0.824, allocations: 375.4 kB / 0.6443 GB, free: 3.133 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01662/0.8406, allocations: 14.82 MB / 0.6588 GB, free: 3.508 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002581/0.8432, allocations: 167.8 kB / 0.6589 GB, free: 3.344 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003009/0.8436, allocations: 80 kB / 0.659 GB, free: 3.266 MB / 442.7 MB 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (211): * Single equations (assignments): 204 * 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 {(4,100.0%) 14,(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.002025/0.8456, allocations: 0.9728 MB / 0.6599 GB, free: 2.281 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005956/0.8462, allocations: 233.2 kB / 0.6602 GB, free: 2.051 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2024/1.049, allocations: 3.511 MB / 0.6636 GB, free: 103.6 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.542e-05/1.049, allocations: 18.25 kB / 0.6636 GB, free: 103.6 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.11e-05/1.049, allocations: 0 / 0.6636 GB, free: 103.6 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.521e-05/1.049, allocations: 10.69 kB / 0.6636 GB, free: 103.6 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01153/1.06, allocations: 6.751 MB / 0.6702 GB, free: 103.1 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.089e-05/1.06, allocations: 3.281 kB / 0.6702 GB, free: 103.1 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008561/1.061, allocations: 199.8 kB / 0.6704 GB, free: 103.1 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003397/1.065, allocations: 1.434 MB / 0.6718 GB, free: 103.1 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002094/1.065, allocations: 39.5 kB / 0.6719 GB, free: 103.1 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01541/1.08, allocations: 15.24 MB / 0.6867 GB, free: 96.7 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/1.08, allocations: 3.906 kB / 0.6867 GB, free: 96.7 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007283/1.088, allocations: 4.969 MB / 0.6916 GB, free: 96.19 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001881/1.089, allocations: 0.5279 MB / 0.6921 GB, free: 96.1 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006483/1.09, allocations: 57.97 kB / 0.6922 GB, free: 96.09 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001668/1.092, allocations: 137.5 kB / 0.6923 GB, free: 96.09 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005425/1.092, allocations: 223.4 kB / 0.6925 GB, free: 96.09 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000122/1.093, allocations: 56.27 kB / 0.6926 GB, free: 96.09 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002182/1.095, allocations: 1.429 MB / 0.694 GB, free: 95.95 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.4e-07/1.095, allocations: 0 / 0.694 GB, free: 95.95 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004413/1.099, allocations: 1.266 MB / 0.6952 GB, free: 95.95 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (114): * Single equations (assignments): 105 * 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.007605/1.107, allocations: 6.204 MB / 0.7012 GB, free: 94.06 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.009709/1.117, allocations: 6.375 MB / 0.7075 GB, free: 90.93 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.062e-05/1.117, allocations: 7.688 kB / 0.7075 GB, free: 90.93 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003849/1.12, allocations: 2.432 MB / 0.7099 GB, free: 89.74 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00307/1.124, allocations: 0.5134 MB / 0.7104 GB, free: 89.59 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03886/1.162, allocations: 28.68 MB / 0.7384 GB, free: 69.18 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003157/1.166, allocations: 2.313 MB / 0.7406 GB, free: 67.38 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002568/1.168, allocations: 0.5983 MB / 0.7412 GB, free: 66.97 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001636/1.17, allocations: 1.152 MB / 0.7423 GB, free: 65.91 MB / 442.7 MB Notification: Performance of SimCode: time 1.182e-06/1.17, allocations: 0 / 0.7423 GB, free: 65.91 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1098/1.28, allocations: 71.4 MB / 0.8121 GB, free: 4.074 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001599/1.28, allocations: 233.9 kB / 0.8123 GB, free: 3.832 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.083/5.363, allocations: 3.875 kB / 0.8123 GB, free: 3.832 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