Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.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.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_LoadDump,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_LoadDump",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_LoadDump,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_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.001449/0.001449, allocations: 179.2 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.145/2.145, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001178/0.001178, allocations: 95.11 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.234e-05/2.244e-05, allocations: 4 kB / 314.9 MB, free: 9.043 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3329/0.3329, allocations: 47.56 MB / 362.4 MB, free: 45.69 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1861/0.5191, allocations: 114.9 MB / 477.4 MB, free: 3.188 MB / 363.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003312/0.5195, allocations: 83.95 kB / 477.5 MB, free: 3.105 MB / 363.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.5368/1.056, allocations: 61.7 MB / 0.5265 GB, free: 102 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.665e-06/1.056, allocations: 3.062 kB / 0.5265 GB, free: 102 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0003123/1.057, allocations: 73.3 kB / 0.5266 GB, free: 102 MB / 395.1 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.01048/1.067, allocations: 3.026 MB / 0.5296 GB, free: 100.5 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.079e-05/1.067, allocations: 7.812 kB / 0.5296 GB, free: 100.5 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002944/1.07, allocations: 480.2 kB / 0.53 GB, free: 100.3 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006712/1.077, allocations: 2.07 MB / 0.532 GB, free: 99.19 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002864/1.077, allocations: 295.2 kB / 0.5323 GB, free: 98.99 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007729/1.078, allocations: 167.6 kB / 0.5325 GB, free: 98.98 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007198/1.085, allocations: 2.663 MB / 0.5351 GB, free: 97.92 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008287/1.094, allocations: 3.186 MB / 0.5382 GB, free: 96.49 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001201/1.094, allocations: 15.06 kB / 0.5382 GB, free: 96.48 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004469/1.094, allocations: 6.766 kB / 0.5382 GB, free: 96.48 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000149/1.094, allocations: 115.1 kB / 0.5383 GB, free: 96.47 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03019/1.125, allocations: 11.42 MB / 0.5495 GB, free: 90.44 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004385/1.129, allocations: 2.713 MB / 0.5521 GB, free: 88.57 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002467/1.132, allocations: 1.061 MB / 0.5532 GB, free: 88.17 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004439/1.132, allocations: 141 kB / 0.5533 GB, free: 88.07 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002374/1.135, allocations: 1.073 MB / 0.5543 GB, free: 87.19 MB / 395.1 MB Notification: Performance of pre-optimization done (n=156): time 5.31e-06/1.135, allocations: 0 / 0.5543 GB, free: 87.19 MB / 395.1 MB Notification: Performance of matching and sorting (n=180): time 0.0201/1.155, allocations: 6.413 MB / 0.5606 GB, free: 80.73 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001194/1.155, allocations: 308.7 kB / 0.5609 GB, free: 80.36 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003528/1.158, allocations: 1.566 MB / 0.5624 GB, free: 78.75 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004814/1.159, allocations: 29.7 kB / 0.5625 GB, free: 78.72 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001286/1.16, allocations: 1.321 MB / 0.5637 GB, free: 77.39 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009183/1.161, allocations: 0.5774 MB / 0.5643 GB, free: 76.8 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001843/1.161, allocations: 0 / 0.5643 GB, free: 76.8 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001537/1.162, allocations: 394.9 kB / 0.5647 GB, free: 76.41 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00209/1.164, allocations: 0.9607 MB / 0.5656 GB, free: 75.45 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002583/1.166, allocations: 1.48 MB / 0.5671 GB, free: 73.75 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002664/1.169, allocations: 1.18 MB / 0.5682 GB, free: 72.58 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-05/1.169, allocations: 0 / 0.5682 GB, free: 72.58 MB / 395.1 MB Notification: Performance of matching and sorting (n=264) (initialization): time 0.00836/1.177, allocations: 3.22 MB / 0.5714 GB, free: 69.32 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001094/1.179, allocations: 5.143 MB / 0.5764 GB, free: 63.78 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.649e-05/1.179, allocations: 12 kB / 0.5764 GB, free: 63.77 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004841/1.183, allocations: 1.171 MB / 0.5775 GB, free: 62.58 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002893/1.186, allocations: 379.4 kB / 0.5779 GB, free: 62.21 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02047/1.207, allocations: 14 MB / 0.5916 GB, free: 47.52 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003722/1.211, allocations: 135.8 kB / 0.5917 GB, free: 47.39 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006295/1.211, allocations: 76 kB / 0.5918 GB, free: 47.31 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.383e-05/1.211, allocations: 11.94 kB / 0.5918 GB, free: 47.3 MB / 395.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008927/1.22, allocations: 3.086 MB / 0.5948 GB, free: 44.19 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.71e-05/1.22, allocations: 24.02 kB / 0.5948 GB, free: 44.17 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004141/1.225, allocations: 1.153 MB / 0.596 GB, free: 43 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002805/1.227, allocations: 375.3 kB / 0.5963 GB, free: 42.63 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02067/1.248, allocations: 14.12 MB / 0.6101 GB, free: 27.83 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002388/1.251, allocations: 115.9 kB / 0.6102 GB, free: 27.71 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003996/1.251, allocations: 84.05 kB / 0.6103 GB, free: 27.63 MB / 395.1 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.0007027/1.252, allocations: 185.7 kB / 0.6105 GB, free: 27.45 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.009592/1.261, allocations: 3.092 MB / 0.6135 GB, free: 24.33 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001112/1.263, allocations: 221.4 kB / 0.6137 GB, free: 24.11 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01028/1.273, allocations: 3.239 MB / 0.6169 GB, free: 20.84 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.429e-05/1.273, allocations: 20 kB / 0.6169 GB, free: 20.82 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.189e-05/1.273, allocations: 0 / 0.6169 GB, free: 20.82 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.83e-05/1.273, allocations: 11.91 kB / 0.6169 GB, free: 20.81 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01873/1.292, allocations: 6.151 MB / 0.6229 GB, free: 14.59 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.823e-05/1.292, allocations: 11.98 kB / 0.6229 GB, free: 14.58 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001848/1.294, allocations: 203.7 kB / 0.6231 GB, free: 14.38 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006036/1.3, allocations: 1.378 MB / 0.6245 GB, free: 12.99 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004523/1.3, allocations: 23.97 kB / 0.6245 GB, free: 12.96 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02517/1.326, allocations: 14.19 MB / 0.6383 GB, free: 14.2 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-05/1.326, allocations: 4 kB / 0.6383 GB, free: 14.2 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01374/1.339, allocations: 4.693 MB / 0.6429 GB, free: 9.352 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002328/1.342, allocations: 0.51 MB / 0.6434 GB, free: 8.82 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009535/1.343, allocations: 19.98 kB / 0.6434 GB, free: 8.801 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003292/1.346, allocations: 119.8 kB / 0.6436 GB, free: 8.684 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001117/1.347, allocations: 226 kB / 0.6438 GB, free: 8.465 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002717/1.348, allocations: 55.97 kB / 0.6438 GB, free: 8.41 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.003455/1.351, allocations: 1.164 MB / 0.645 GB, free: 7.223 MB / 411.1 MB Notification: Performance of sort global known variables: time 1.143e-06/1.351, allocations: 0 / 0.645 GB, free: 7.223 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.008084/1.359, allocations: 1.098 MB / 0.646 GB, free: 6.125 MB / 411.1 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.3052/1.664, allocations: 6.118 MB / 0.652 GB, free: 105.4 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.01627/1.681, allocations: 5.947 MB / 0.6578 GB, free: 103.8 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 1.24e-05/1.681, allocations: 1.062 kB / 0.6578 GB, free: 103.8 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00656/1.687, allocations: 2.225 MB / 0.66 GB, free: 103.3 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004216/1.692, allocations: 417 kB / 0.6604 GB, free: 103.3 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02164/1.713, allocations: 5.73 MB / 0.666 GB, free: 102.1 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004097/1.718, allocations: 2.296 MB / 0.6682 GB, free: 101.4 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002897/1.72, allocations: 1.152 MB / 0.6693 GB, free: 101.3 MB / 411.1 MB Notification: Performance of SimCode: time 1.613e-06/1.72, allocations: 0 / 0.6693 GB, free: 101.3 MB / 411.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.46/6.18, allocations: 131.6 MB / 0.7978 GB, free: 12.53 MB / 427.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_LoadDump.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_LoadDump.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_LoadDump.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_LoadDump.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_LoadDump_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_LoadDump_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_LoadDump.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_LoadDump.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_LoadDump_res.mat does not exist to compare? outputFormat=mat