Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001015/0.001015, allocations: 181.2 kB / 17.01 MB, free: 5.121 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.321/1.321, allocations: 205.4 MB / 223.1 MB, free: 9.133 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.0008389/0.0008389, allocations: 94.25 kB / 271.5 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002613/0.0002611, allocations: 11.98 kB / 328.4 MB, free: 15.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2479/0.2481, allocations: 47.56 MB / 375.9 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1374/0.3856, allocations: 121.2 MB / 497.2 MB, free: 7.344 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002589/0.3859, allocations: 95.94 kB / 497.2 MB, free: 7.25 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3701/0.756, allocations: 102.2 MB / 0.5854 GB, free: 31.86 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.756, allocations: 0 / 0.5854 GB, free: 31.86 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003122/0.7564, allocations: 103.9 kB / 0.5855 GB, free: 31.76 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.01106/0.7674, allocations: 4.715 MB / 0.5901 GB, free: 26.96 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.744e-05/0.7675, allocations: 12.03 kB / 0.5901 GB, free: 26.95 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001415/0.7689, allocations: 0.6268 MB / 0.5907 GB, free: 26.3 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004277/0.7732, allocations: 0.974 MB / 0.5917 GB, free: 25.32 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008498/0.7817, allocations: 3.973 MB / 0.5956 GB, free: 21.27 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000279/0.782, allocations: 482.5 kB / 0.596 GB, free: 20.76 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007625/0.7828, allocations: 415.9 kB / 0.5964 GB, free: 20.35 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008948/0.7918, allocations: 5.321 MB / 0.6016 GB, free: 14.84 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.728e-05/0.7919, allocations: 7.844 kB / 0.6016 GB, free: 14.83 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003985/0.7923, allocations: 180 kB / 0.6018 GB, free: 14.66 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000124/0.7924, allocations: 164.2 kB / 0.602 GB, free: 14.49 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007079/0.7995, allocations: 4.323 MB / 0.6062 GB, free: 10.15 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02828/0.8278, allocations: 17.92 MB / 0.6237 GB, free: 7.73 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007768/0.8356, allocations: 8.258 MB / 0.6318 GB, free: 14.53 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0093/0.845, allocations: 4.693 MB / 0.6363 GB, free: 9.68 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001933/0.847, allocations: 1.319 MB / 0.6376 GB, free: 8.32 MB / 410.7 MB Notification: Performance of pre-optimization done (n=192): time 3.436e-06/0.847, allocations: 0 / 0.6376 GB, free: 8.32 MB / 410.7 MB Notification: Performance of matching and sorting (n=225): time 0.219/1.066, allocations: 9.705 MB / 0.6471 GB, free: 70.44 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001046/1.066, allocations: 336 kB / 0.6474 GB, free: 70.06 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003317/1.069, allocations: 2.169 MB / 0.6495 GB, free: 69.87 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003602/1.07, allocations: 69.22 kB / 0.6496 GB, free: 69.84 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001552/1.071, allocations: 1.91 MB / 0.6515 GB, free: 69.71 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007188/1.072, allocations: 0.7472 MB / 0.6522 GB, free: 69.34 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001424/1.072, allocations: 53.78 kB / 0.6523 GB, free: 69.34 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001245/1.072, allocations: 413.2 kB / 0.6526 GB, free: 69.03 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001617/1.074, allocations: 1.144 MB / 0.6538 GB, free: 69.02 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001884/1.076, allocations: 1.887 MB / 0.6556 GB, free: 68.23 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001733/1.078, allocations: 1.427 MB / 0.657 GB, free: 68.21 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.338e-06/1.078, allocations: 7.344 kB / 0.657 GB, free: 68.21 MB / 410.7 MB Notification: Performance of matching and sorting (n=336) (initialization): time 0.006373/1.084, allocations: 4.251 MB / 0.6612 GB, free: 67.81 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001501/1.086, allocations: 8.016 MB / 0.669 GB, free: 59.35 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.629e-05/1.086, allocations: 21.41 kB / 0.669 GB, free: 59.35 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002595/1.088, allocations: 1.067 MB / 0.67 GB, free: 59.29 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00189/1.09, allocations: 492.3 kB / 0.6705 GB, free: 59.29 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01287/1.103, allocations: 15.05 MB / 0.6852 GB, free: 51.2 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003501/1.107, allocations: 177.1 kB / 0.6854 GB, free: 51.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005636/1.107, allocations: 107.6 kB / 0.6855 GB, free: 51.2 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.597e-05/1.107, allocations: 3.344 kB / 0.6855 GB, free: 51.2 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005841/1.113, allocations: 3.954 MB / 0.6893 GB, free: 50.97 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.972e-05/1.113, allocations: 20.22 kB / 0.6894 GB, free: 50.97 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002322/1.115, allocations: 1.063 MB / 0.6904 GB, free: 50.91 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00209/1.118, allocations: 489.5 kB / 0.6909 GB, free: 50.91 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01347/1.131, allocations: 15.02 MB / 0.7055 GB, free: 41.96 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003173/1.134, allocations: 162.6 kB / 0.7057 GB, free: 41.92 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004941/1.135, allocations: 104.8 kB / 0.7058 GB, free: 41.9 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.003315/1.138, allocations: 1.35 MB / 0.7071 GB, free: 41.18 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008057/1.139, allocations: 290.6 kB / 0.7074 GB, free: 41.03 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006253/1.145, allocations: 3.549 MB / 0.7109 GB, free: 39.64 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.745e-05/1.145, allocations: 24.14 kB / 0.7109 GB, free: 39.64 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/1.145, allocations: 0 / 0.7109 GB, free: 39.64 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.228e-05/1.145, allocations: 10.5 kB / 0.7109 GB, free: 39.64 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01241/1.158, allocations: 7.511 MB / 0.7182 GB, free: 36.49 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.02e-05/1.158, allocations: 3.969 kB / 0.7182 GB, free: 36.49 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001356/1.159, allocations: 300 kB / 0.7185 GB, free: 36.48 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002497/1.162, allocations: 1.103 MB / 0.7196 GB, free: 36.18 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002393/1.162, allocations: 67.81 kB / 0.7197 GB, free: 36.14 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01215/1.174, allocations: 12.64 MB / 0.732 GB, free: 27.5 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/1.174, allocations: 0 / 0.732 GB, free: 27.5 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00764/1.182, allocations: 5.065 MB / 0.737 GB, free: 25.21 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001949/1.184, allocations: 0.6104 MB / 0.7375 GB, free: 24.8 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008608/1.185, allocations: 68.73 kB / 0.7376 GB, free: 24.75 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001953/1.187, allocations: 138 kB / 0.7377 GB, free: 24.72 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006212/1.187, allocations: 239.4 kB / 0.738 GB, free: 24.69 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001539/1.187, allocations: 69.09 kB / 0.738 GB, free: 24.67 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002833/1.19, allocations: 1.656 MB / 0.7397 GB, free: 24.03 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.4e-07/1.19, allocations: 0 / 0.7397 GB, free: 24.03 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006682/1.197, allocations: 1.545 MB / 0.7412 GB, free: 23.88 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.008336/1.205, allocations: 6.297 MB / 0.7473 GB, free: 20.19 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00966/1.215, allocations: 6.824 MB / 0.754 GB, free: 13.94 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.205e-05/1.215, allocations: 0 / 0.754 GB, free: 13.94 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003495/1.219, allocations: 2.273 MB / 0.7562 GB, free: 11.87 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003286/1.222, allocations: 0.6154 MB / 0.7568 GB, free: 11.38 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05522/1.277, allocations: 38.11 MB / 0.794 GB, free: 8.234 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003013/1.28, allocations: 2.931 MB / 0.7969 GB, free: 5.996 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002782/1.283, allocations: 0.7044 MB / 0.7976 GB, free: 5.523 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002236/1.285, allocations: 1.593 MB / 0.7991 GB, free: 4.051 MB / 442.7 MB Notification: Performance of SimCode: time 7.01e-07/1.285, allocations: 4 kB / 0.7991 GB, free: 4.047 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.309/1.594, allocations: 83.92 MB / 0.8811 GB, free: 71 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001607/1.594, allocations: 231.5 kB / 0.8813 GB, free: 70.77 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.119/5.713, allocations: 4.062 kB / 0.8813 GB, free: 70.76 MB / 442.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_LoadDump.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_LoadDump.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_LoadDump.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_LoadDump.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_LoadDump_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_LoadDump_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_LoadDump.fmu > Modelica_3.2.3_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_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_LoadDump_res.mat does not exist to compare? outputFormat=mat