Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.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.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_LoadDump",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001571/0.001571, allocations: 196.4 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.45/1.45, allocations: 225.6 MB / 234.8 MB, free: 3.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001148/0.001149, allocations: 97.78 kB / 286.7 MB, free: 5.305 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.128e-05/2.158e-05, allocations: 4 kB / 343.8 MB, free: 8.141 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09813/0.09817, allocations: 51.47 MB / 395.3 MB, free: 4.629 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3517/0.4499, allocations: 116.1 MB / 0.4994 GB, free: 9.363 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003083/0.4503, allocations: 90.66 kB / 0.4994 GB, free: 9.32 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1697/0.62, allocations: 62.08 MB / 0.5601 GB, free: 15.78 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.62, allocations: 4 kB / 0.5601 GB, free: 15.78 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003392/0.6204, allocations: 79.92 kB / 0.5602 GB, free: 15.7 MB / 442.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.008747/0.6292, allocations: 3.034 MB / 0.5631 GB, free: 12.6 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.738e-05/0.6292, allocations: 8.031 kB / 0.5631 GB, free: 12.59 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002525/0.6317, allocations: 495.4 kB / 0.5636 GB, free: 12.1 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00569/0.6375, allocations: 2.063 MB / 0.5656 GB, free: 9.988 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003674/0.6379, allocations: 291.9 kB / 0.5659 GB, free: 9.664 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009467/0.6388, allocations: 171.9 kB / 0.5661 GB, free: 9.496 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006415/0.6453, allocations: 2.659 MB / 0.5687 GB, free: 6.832 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007153/0.6525, allocations: 3.183 MB / 0.5718 GB, free: 3.5 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.042e-05/0.6526, allocations: 7.844 kB / 0.5718 GB, free: 3.492 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002451/0.6528, allocations: 8 kB / 0.5718 GB, free: 3.484 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001345/0.653, allocations: 117.5 kB / 0.5719 GB, free: 3.367 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2615/0.9145, allocations: 11.41 MB / 0.583 GB, free: 80.46 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002379/0.9169, allocations: 2.712 MB / 0.5857 GB, free: 79.3 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00118/0.9181, allocations: 1.06 MB / 0.5867 GB, free: 79.29 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002864/0.9184, allocations: 136.4 kB / 0.5868 GB, free: 79.19 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001361/0.9198, allocations: 1.078 MB / 0.5879 GB, free: 79.06 MB / 442.7 MB Notification: Performance of pre-optimization done (n=156): time 3.095e-06/0.9198, allocations: 3.5 kB / 0.5879 GB, free: 79.06 MB / 442.7 MB Notification: Performance of matching and sorting (n=180): time 0.01195/0.9317, allocations: 6.424 MB / 0.5942 GB, free: 78.15 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001672/0.932, allocations: 314.1 kB / 0.5945 GB, free: 77.8 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002738/0.9347, allocations: 1.552 MB / 0.596 GB, free: 77.6 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000208/0.9349, allocations: 35.7 kB / 0.596 GB, free: 77.57 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001201/0.9361, allocations: 1.385 MB / 0.5974 GB, free: 77.12 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005653/0.9367, allocations: 0.5816 MB / 0.5979 GB, free: 76.81 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.969e-05/0.9368, allocations: 0 / 0.5979 GB, free: 76.81 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001541/0.937, allocations: 396.1 kB / 0.5983 GB, free: 76.5 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001286/0.9383, allocations: 0.958 MB / 0.5993 GB, free: 76.5 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001456/0.9397, allocations: 1.485 MB / 0.6007 GB, free: 75.94 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00147/0.9412, allocations: 1.169 MB / 0.6018 GB, free: 75.92 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.046e-05/0.9412, allocations: 6.5 kB / 0.6019 GB, free: 75.92 MB / 442.7 MB Notification: Performance of matching and sorting (n=264) (initialization): time 0.005136/0.9464, allocations: 3.347 MB / 0.6051 GB, free: 75.65 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009743/0.9474, allocations: 5.347 MB / 0.6103 GB, free: 70.07 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.135e-05/0.9474, allocations: 16.03 kB / 0.6104 GB, free: 70.07 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002691/0.9501, allocations: 1.167 MB / 0.6115 GB, free: 70.01 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001389/0.9515, allocations: 379.4 kB / 0.6119 GB, free: 70.01 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01257/0.9641, allocations: 14 MB / 0.6255 GB, free: 61.45 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002464/0.9666, allocations: 132.4 kB / 0.6257 GB, free: 61.45 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002108/0.9668, allocations: 81.5 kB / 0.6257 GB, free: 61.43 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.208e-05/0.9669, allocations: 6.719 kB / 0.6257 GB, free: 61.43 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005033/0.9719, allocations: 3.094 MB / 0.6288 GB, free: 60.41 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.83e-05/0.972, allocations: 15.78 kB / 0.6288 GB, free: 60.41 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002649/0.9746, allocations: 1.154 MB / 0.6299 GB, free: 60.11 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001381/0.976, allocations: 380.5 kB / 0.6303 GB, free: 60.1 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01425/0.9903, allocations: 14.02 MB / 0.644 GB, free: 49.89 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002658/0.993, allocations: 123.5 kB / 0.6441 GB, free: 49.89 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002733/0.9933, allocations: 85.23 kB / 0.6442 GB, free: 49.87 MB / 442.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.0006578/0.9939, allocations: 179.4 kB / 0.6443 GB, free: 49.72 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.006/0.9999, allocations: 3.065 MB / 0.6473 GB, free: 48.64 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005445/1.001, allocations: 218.4 kB / 0.6475 GB, free: 48.53 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005579/1.006, allocations: 3.222 MB / 0.6507 GB, free: 47.37 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.256e-05/1.006, allocations: 20.41 kB / 0.6507 GB, free: 47.37 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.476e-06/1.006, allocations: 0 / 0.6507 GB, free: 47.37 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.433e-05/1.006, allocations: 9.234 kB / 0.6507 GB, free: 47.37 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01035/1.017, allocations: 6.152 MB / 0.6567 GB, free: 44.95 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.664e-06/1.017, allocations: 3.469 kB / 0.6567 GB, free: 44.95 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007943/1.017, allocations: 204.8 kB / 0.6569 GB, free: 44.93 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003072/1.02, allocations: 1.385 MB / 0.6583 GB, free: 44.59 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001305/1.021, allocations: 17.95 kB / 0.6583 GB, free: 44.59 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01372/1.034, allocations: 14.21 MB / 0.6722 GB, free: 35.12 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.534e-06/1.034, allocations: 3.5 kB / 0.6722 GB, free: 35.12 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006949/1.041, allocations: 4.701 MB / 0.6768 GB, free: 32.98 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001367/1.043, allocations: 0.5014 MB / 0.6772 GB, free: 32.67 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003828/1.043, allocations: 24.92 kB / 0.6773 GB, free: 32.66 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001374/1.045, allocations: 106.5 kB / 0.6774 GB, free: 32.66 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005476/1.045, allocations: 227.6 kB / 0.6776 GB, free: 32.62 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001154/1.045, allocations: 53.3 kB / 0.6776 GB, free: 32.61 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001687/1.047, allocations: 1.166 MB / 0.6788 GB, free: 32.09 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.6e-07/1.047, allocations: 3.938 kB / 0.6788 GB, free: 32.09 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004604/1.052, allocations: 1.107 MB / 0.6799 GB, free: 32.08 MB / 442.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.007162/1.059, allocations: 6.123 MB / 0.6858 GB, free: 28.79 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.009086/1.068, allocations: 5.953 MB / 0.6917 GB, free: 25.68 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.836e-06/1.068, allocations: 4.312 kB / 0.6917 GB, free: 25.68 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00367/1.072, allocations: 2.318 MB / 0.6939 GB, free: 24.5 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002822/1.074, allocations: 415.7 kB / 0.6943 GB, free: 24.39 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01161/1.086, allocations: 5.758 MB / 0.6999 GB, free: 22.14 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001913/1.088, allocations: 2.319 MB / 0.7022 GB, free: 20.71 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002722/1.091, allocations: 0.8533 MB / 0.703 GB, free: 20.16 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001063/1.092, allocations: 1.118 MB / 0.7041 GB, free: 19.13 MB / 442.7 MB Notification: Performance of SimCode: time 1.032e-06/1.092, allocations: 0 / 0.7041 GB, free: 19.13 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3633/1.455, allocations: 64.2 MB / 0.7668 GB, free: 85.64 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003079/1.456, allocations: 167.1 kB / 0.767 GB, free: 85.45 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.062/5.518, allocations: 1.688 kB / 0.767 GB, free: 85.45 MB / 458.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_LoadDump_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_LoadDump.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump_res.mat does not exist to compare? outputFormat=mat