Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.001473/0.001473, allocations: 185.8 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.879/1.879, allocations: 205.4 MB / 222.5 MB, free: 9.117 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001099/0.001099, allocations: 99.33 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003686/0.0003687, allocations: 8 kB / 327.1 MB, free: 100 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3225/0.3229, allocations: 47.57 MB / 374.6 MB, free: 45.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1934/0.5163, allocations: 121.2 MB / 495.9 MB, free: 7.434 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000326/0.5167, allocations: 95.95 kB / 496 MB, free: 7.34 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.604/1.121, allocations: 102.2 MB / 0.5842 GB, free: 31.96 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.675e-06/1.121, allocations: 0 / 0.5842 GB, free: 31.96 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003636/1.121, allocations: 95.94 kB / 0.5843 GB, free: 31.87 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: 1076 * Number of variables: 1076 Notification: Performance of Generate backend data structure: time 0.0182/1.139, allocations: 4.711 MB / 0.5889 GB, free: 27.07 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.015e-05/1.139, allocations: 16.02 kB / 0.5889 GB, free: 27.05 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002309/1.142, allocations: 0.6307 MB / 0.5895 GB, free: 26.41 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007127/1.149, allocations: 0.9624 MB / 0.5904 GB, free: 25.44 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01363/1.163, allocations: 3.973 MB / 0.5943 GB, free: 21.38 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003681/1.163, allocations: 486.5 kB / 0.5948 GB, free: 20.87 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001045/1.164, allocations: 411.9 kB / 0.5952 GB, free: 20.46 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01336/1.177, allocations: 5.321 MB / 0.6004 GB, free: 14.95 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001543/1.178, allocations: 11.84 kB / 0.6004 GB, free: 14.94 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006482/1.178, allocations: 176 kB / 0.6006 GB, free: 14.77 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001774/1.178, allocations: 168.2 kB / 0.6007 GB, free: 14.6 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01217/1.191, allocations: 4.327 MB / 0.6049 GB, free: 10.26 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04281/1.233, allocations: 17.92 MB / 0.6224 GB, free: 7.84 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01363/1.247, allocations: 8.262 MB / 0.6305 GB, free: 14.64 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01354/1.261, allocations: 4.693 MB / 0.6351 GB, free: 9.789 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003345/1.264, allocations: 1.316 MB / 0.6364 GB, free: 8.434 MB / 410.7 MB Notification: Performance of pre-optimization done (n=192): time 4.559e-06/1.264, allocations: 3.938 kB / 0.6364 GB, free: 8.43 MB / 410.7 MB Notification: Performance of matching and sorting (n=225): time 0.3219/1.586, allocations: 9.701 MB / 0.6459 GB, free: 70.68 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001171/1.586, allocations: 345.7 kB / 0.6462 GB, free: 70.3 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00454/1.591, allocations: 2.163 MB / 0.6483 GB, free: 70.11 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004423/1.591, allocations: 72.7 kB / 0.6484 GB, free: 70.08 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001677/1.593, allocations: 1.782 MB / 0.6501 GB, free: 69.9 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009406/1.594, allocations: 0.7498 MB / 0.6508 GB, free: 69.52 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002914/1.594, allocations: 52 kB / 0.6509 GB, free: 69.52 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001784/1.594, allocations: 416 kB / 0.6513 GB, free: 69.2 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002829/1.597, allocations: 1.146 MB / 0.6524 GB, free: 69.2 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003239/1.6, allocations: 1.891 MB / 0.6543 GB, free: 68.4 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003214/1.604, allocations: 1.426 MB / 0.6556 GB, free: 68.38 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-05/1.604, allocations: 6.25 kB / 0.6556 GB, free: 68.38 MB / 410.7 MB Notification: Performance of matching and sorting (n=336) (initialization): time 0.01039/1.614, allocations: 4.072 MB / 0.6596 GB, free: 68.07 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001522/1.616, allocations: 7.503 MB / 0.667 GB, free: 60.29 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-05/1.616, allocations: 20.97 kB / 0.667 GB, free: 60.29 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004267/1.62, allocations: 1.071 MB / 0.668 GB, free: 60.23 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003536/1.624, allocations: 491 kB / 0.6685 GB, free: 60.23 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02127/1.645, allocations: 15.06 MB / 0.6832 GB, free: 52.14 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003942/1.649, allocations: 174.2 kB / 0.6834 GB, free: 52.13 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003948/1.649, allocations: 107.5 kB / 0.6835 GB, free: 52.13 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.563e-05/1.649, allocations: 3.625 kB / 0.6835 GB, free: 52.13 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01013/1.659, allocations: 3.952 MB / 0.6873 GB, free: 51.91 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.516e-05/1.66, allocations: 18.09 kB / 0.6873 GB, free: 51.91 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003645/1.663, allocations: 1.039 MB / 0.6884 GB, free: 51.85 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003586/1.667, allocations: 492.4 kB / 0.6888 GB, free: 51.85 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02239/1.689, allocations: 15.05 MB / 0.7035 GB, free: 42.89 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002605/1.692, allocations: 157.1 kB / 0.7037 GB, free: 42.85 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002477/1.692, allocations: 107.7 kB / 0.7038 GB, free: 42.83 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 25 ($whenCondition1,$whenCondition4,$whenCondition3,$whenCondition2,$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 (273): * Single equations (assignments): 266 * 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%) 26,(1,100.0%) 8} * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.003327/1.695, allocations: 1.36 MB / 0.7051 GB, free: 42.11 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008188/1.696, allocations: 289.4 kB / 0.7054 GB, free: 41.96 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01029/1.707, allocations: 3.542 MB / 0.7088 GB, free: 40.57 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.438e-05/1.707, allocations: 22.56 kB / 0.7089 GB, free: 40.57 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/1.707, allocations: 0 / 0.7089 GB, free: 40.57 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.861e-05/1.707, allocations: 11.06 kB / 0.7089 GB, free: 40.57 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01781/1.725, allocations: 7.504 MB / 0.7162 GB, free: 37.42 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.279e-05/1.725, allocations: 2.516 kB / 0.7162 GB, free: 37.42 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002544/1.727, allocations: 312.7 kB / 0.7165 GB, free: 37.41 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004345/1.732, allocations: 1.097 MB / 0.7176 GB, free: 37.11 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002409/1.732, allocations: 69 kB / 0.7176 GB, free: 37.07 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02109/1.753, allocations: 12.64 MB / 0.73 GB, free: 28.43 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/1.753, allocations: 3.562 kB / 0.73 GB, free: 28.43 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0122/1.765, allocations: 5.051 MB / 0.7349 GB, free: 26.15 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001877/1.767, allocations: 0.619 MB / 0.7355 GB, free: 25.73 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006461/1.768, allocations: 70.89 kB / 0.7356 GB, free: 25.69 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002671/1.77, allocations: 131.1 kB / 0.7357 GB, free: 25.66 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007328/1.771, allocations: 248.5 kB / 0.736 GB, free: 25.62 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001882/1.771, allocations: 62.53 kB / 0.736 GB, free: 25.61 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003484/1.775, allocations: 1.655 MB / 0.7376 GB, free: 24.96 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.583e-06/1.775, allocations: 0 / 0.7376 GB, free: 24.96 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006677/1.782, allocations: 1.541 MB / 0.7391 GB, free: 24.82 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 8 (smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].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[1].off,switch.closerWithArc[1].quenched,switch.closerWithArc[3].off,switch.closerWithArc[3].quenched,switch.closerWithArc[2].off,switch.closerWithArc[2].quenched) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (159): * Single equations (assignments): 151 * 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 {3 61,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01302/1.795, allocations: 6.29 MB / 0.7453 GB, free: 21.3 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01504/1.81, allocations: 6.819 MB / 0.7519 GB, free: 15.04 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.987e-06/1.81, allocations: 2 kB / 0.7519 GB, free: 15.04 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005035/1.815, allocations: 2.216 MB / 0.7541 GB, free: 13.02 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004495/1.819, allocations: 0.6179 MB / 0.7547 GB, free: 12.53 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07047/1.89, allocations: 37.56 MB / 0.7914 GB, free: 8.297 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004078/1.894, allocations: 2.886 MB / 0.7942 GB, free: 6.082 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003755/1.898, allocations: 1.61 MB / 0.7958 GB, free: 4.598 MB / 442.7 MB Notification: Performance of SimCode: time 9.22e-07/1.898, allocations: 0 / 0.7958 GB, free: 4.598 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.864/6.762, allocations: 183.7 MB / 0.9752 GB, free: 110.7 MB / 474.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_LoadDump.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_LoadDump.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_LoadDump.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_LoadDump.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_LoadDump_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_LoadDump_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_LoadDump.fmu > Modelica_3.2.3_cpp_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_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_LoadDump_res.mat does not exist to compare? outputFormat=mat