Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_LoadDump",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_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.001408/0.001408, allocations: 198.9 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.218/1.218, allocations: 227.2 MB / 245 MB, free: 5.941 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009299/0.0009299, allocations: 97.23 kB / 297.3 MB, free: 5.973 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002289/0.0002289, allocations: 8 kB / 358 MB, free: 9.215 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2012/0.2015, allocations: 51.49 MB / 409.5 MB, free: 26.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3471/0.5486, allocations: 123.5 MB / 0.5205 GB, free: 47.34 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002293/0.5489, allocations: 101.4 kB / 0.5206 GB, free: 47.34 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2215/0.7704, allocations: 106.1 MB / 0.6242 GB, free: 7.504 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.7704, allocations: 0 / 0.6242 GB, free: 7.504 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000278/0.7707, allocations: 103.9 kB / 0.6243 GB, free: 7.402 MB / 410.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.012/0.7827, allocations: 4.751 MB / 0.629 GB, free: 2.562 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.71e-05/0.7828, allocations: 11.97 kB / 0.629 GB, free: 2.551 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002291/0.7851, allocations: 0.6306 MB / 0.6296 GB, free: 1.906 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005375/0.7905, allocations: 0.9662 MB / 0.6305 GB, free: 0.9336 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01117/0.8017, allocations: 4 MB / 0.6344 GB, free: 12.85 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003987/0.8021, allocations: 490.5 kB / 0.6349 GB, free: 12.33 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001091/0.8032, allocations: 411.9 kB / 0.6353 GB, free: 11.93 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008987/0.8122, allocations: 5.302 MB / 0.6405 GB, free: 6.438 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.987e-05/0.8123, allocations: 7.984 kB / 0.6405 GB, free: 6.43 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003921/0.8127, allocations: 172 kB / 0.6407 GB, free: 6.262 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001387/0.8129, allocations: 168.2 kB / 0.6408 GB, free: 6.094 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007306/0.8202, allocations: 4.335 MB / 0.645 GB, free: 1.742 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02672/0.8469, allocations: 17.99 MB / 0.6626 GB, free: 15.23 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007548/0.8545, allocations: 8.536 MB / 0.671 GB, free: 5.707 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00918/0.8637, allocations: 5.239 MB / 0.6761 GB, free: 188 kB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.2067/1.07, allocations: 1.301 MB / 0.6773 GB, free: 82.45 MB / 458.7 MB Notification: Performance of pre-optimization done (n=190): time 4.819e-06/1.071, allocations: 0 / 0.6773 GB, free: 82.45 MB / 458.7 MB Notification: Performance of matching and sorting (n=223): time 0.01911/1.09, allocations: 9.207 MB / 0.6863 GB, free: 81.18 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000104/1.09, allocations: 345.8 kB / 0.6867 GB, free: 80.8 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003325/1.093, allocations: 2.169 MB / 0.6888 GB, free: 80.59 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002828/1.093, allocations: 75.5 kB / 0.6889 GB, free: 80.55 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001421/1.095, allocations: 1.928 MB / 0.6907 GB, free: 79.95 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005586/1.095, allocations: 0.7334 MB / 0.6914 GB, free: 79.57 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001356/1.096, allocations: 59.09 kB / 0.6915 GB, free: 79.57 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001209/1.096, allocations: 404.2 kB / 0.6919 GB, free: 79.27 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001553/1.097, allocations: 1.14 MB / 0.693 GB, free: 79.26 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001784/1.099, allocations: 1.873 MB / 0.6948 GB, free: 78.47 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001738/1.101, allocations: 1.418 MB / 0.6962 GB, free: 78.45 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.337e-06/1.101, allocations: 5.594 kB / 0.6962 GB, free: 78.45 MB / 458.7 MB Notification: Performance of matching and sorting (n=334) (initialization): time 0.006664/1.107, allocations: 4.208 MB / 0.7003 GB, free: 78.05 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001339/1.109, allocations: 8.019 MB / 0.7082 GB, free: 69.58 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.491e-05/1.109, allocations: 20.81 kB / 0.7082 GB, free: 69.58 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00246/1.111, allocations: 1.054 MB / 0.7092 GB, free: 69.52 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001963/1.113, allocations: 487.9 kB / 0.7097 GB, free: 69.52 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01222/1.126, allocations: 14.82 MB / 0.7242 GB, free: 61.42 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002902/1.129, allocations: 173.8 kB / 0.7243 GB, free: 61.42 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001955/1.129, allocations: 109.7 kB / 0.7244 GB, free: 61.42 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.957e-06/1.129, allocations: 3.844 kB / 0.7244 GB, free: 61.42 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005721/1.134, allocations: 3.914 MB / 0.7282 GB, free: 61.19 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.348e-05/1.135, allocations: 18.56 kB / 0.7283 GB, free: 61.19 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002283/1.137, allocations: 1.042 MB / 0.7293 GB, free: 61.13 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001968/1.139, allocations: 482.3 kB / 0.7297 GB, free: 61.13 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01224/1.151, allocations: 14.8 MB / 0.7442 GB, free: 52.54 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002773/1.154, allocations: 166.2 kB / 0.7443 GB, free: 52.5 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002196/1.154, allocations: 107.1 kB / 0.7445 GB, free: 52.48 MB / 458.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%) 24,(1,100.0%) 8} * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.002553/1.157, allocations: 1.345 MB / 0.7458 GB, free: 51.76 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006823/1.157, allocations: 287.5 kB / 0.746 GB, free: 51.61 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005792/1.163, allocations: 3.504 MB / 0.7495 GB, free: 50.25 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.32e-05/1.163, allocations: 25 kB / 0.7495 GB, free: 50.25 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/1.163, allocations: 0 / 0.7495 GB, free: 50.25 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.738e-05/1.163, allocations: 15.2 kB / 0.7495 GB, free: 50.24 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01128/1.175, allocations: 7.446 MB / 0.7568 GB, free: 47.11 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.997e-06/1.175, allocations: 0 / 0.7568 GB, free: 47.11 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001289/1.176, allocations: 310.8 kB / 0.7571 GB, free: 47.1 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002366/1.178, allocations: 1.08 MB / 0.7581 GB, free: 46.81 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001579/1.178, allocations: 63.34 kB / 0.7582 GB, free: 46.78 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0121/1.191, allocations: 12.44 MB / 0.7703 GB, free: 38.23 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/1.191, allocations: 7.078 kB / 0.7703 GB, free: 38.23 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007643/1.198, allocations: 5.001 MB / 0.7752 GB, free: 35.96 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002153/1.2, allocations: 0.6064 MB / 0.7758 GB, free: 35.55 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009161/1.201, allocations: 64.41 kB / 0.7759 GB, free: 35.52 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00168/1.203, allocations: 127.8 kB / 0.776 GB, free: 35.48 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004864/1.204, allocations: 253.8 kB / 0.7762 GB, free: 35.44 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001236/1.204, allocations: 61.05 kB / 0.7763 GB, free: 35.43 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002456/1.206, allocations: 1.666 MB / 0.7779 GB, free: 34.78 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.41e-07/1.206, allocations: 0 / 0.7779 GB, free: 34.78 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004786/1.211, allocations: 1.552 MB / 0.7794 GB, free: 34.64 MB / 458.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 59,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.00733/1.218, allocations: 6.263 MB / 0.7855 GB, free: 31.43 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.009071/1.227, allocations: 6.751 MB / 0.7921 GB, free: 27.05 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.584e-06/1.227, allocations: 0 / 0.7921 GB, free: 27.05 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0031/1.231, allocations: 2.231 MB / 0.7943 GB, free: 25.02 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003332/1.234, allocations: 0.6401 MB / 0.7949 GB, free: 24.52 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04215/1.276, allocations: 37.52 MB / 0.8316 GB, free: 4.035 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00264/1.279, allocations: 2.93 MB / 0.8344 GB, free: 1.793 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.002651/1.281, allocations: 0.7066 MB / 0.8351 GB, free: 1.316 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002071/1.284, allocations: 1.599 MB / 0.8367 GB, free: 15.86 MB / 490.7 MB Notification: Performance of SimCode: time 5.91e-07/1.284, allocations: 0 / 0.8367 GB, free: 15.86 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2974/1.581, allocations: 84.02 MB / 0.9188 GB, free: 98.55 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001499/1.581, allocations: 259.5 kB / 0.919 GB, free: 98.2 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.293/5.874, allocations: 4 kB / 0.919 GB, free: 98.2 MB / 490.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_LoadDump_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_LoadDump.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump_res.mat does not exist to compare? outputFormat=mat