Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.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.SMR_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001188/0.001188, allocations: 195.5 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.522/1.522, allocations: 225.4 MB / 240.1 MB, free: 15.07 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001003/0.001003, allocations: 91.44 kB / 292.1 MB, free: 6 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.856e-05/3.868e-05, allocations: 4 kB / 350.6 MB, free: 2.414 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.1128, allocations: 51.49 MB / 402.1 MB, free: 14.88 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3998/0.5126, allocations: 127.2 MB / 0.5169 GB, free: 11 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002969/0.513, allocations: 93.08 kB / 0.517 GB, free: 10.95 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.606/1.119, allocations: 119.4 MB / 0.6336 GB, free: 78.86 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.034e-06/1.119, allocations: 0 / 0.6336 GB, free: 78.86 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0005904/1.12, allocations: 134.6 kB / 0.6337 GB, free: 78.84 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: 1347 * Number of variables: 1347 Notification: Performance of Generate backend data structure: time 0.01853/1.138, allocations: 4.931 MB / 0.6386 GB, free: 76.94 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.926e-05/1.138, allocations: 9.906 kB / 0.6386 GB, free: 76.94 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003673/1.142, allocations: 0.697 MB / 0.6393 GB, free: 76.66 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006541/1.149, allocations: 0.9588 MB / 0.6402 GB, free: 76.3 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01529/1.164, allocations: 4.438 MB / 0.6445 GB, free: 74.12 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004685/1.164, allocations: 394.4 kB / 0.6449 GB, free: 73.94 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00223/1.167, allocations: 0.5039 MB / 0.6454 GB, free: 73.77 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01778/1.184, allocations: 6.546 MB / 0.6518 GB, free: 70.68 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000191/1.185, allocations: 18.25 kB / 0.6518 GB, free: 70.67 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008214/1.186, allocations: 216.6 kB / 0.652 GB, free: 70.5 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002176/1.186, allocations: 228.3 kB / 0.6522 GB, free: 70.48 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0111/1.197, allocations: 5.248 MB / 0.6574 GB, free: 68.33 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03797/1.235, allocations: 21.21 MB / 0.6781 GB, free: 56.99 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007365/1.242, allocations: 8.742 MB / 0.6866 GB, free: 49.37 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003336/1.246, allocations: 2.015 MB / 0.6886 GB, free: 48.45 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01393/1.26, allocations: 6.27 MB / 0.6947 GB, free: 42.27 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.165e-05/1.26, allocations: 56.83 kB / 0.6947 GB, free: 42.21 MB / 442.7 MB Notification: Performance of pre-optimization done (n=208): time 5.23e-06/1.26, allocations: 3.938 kB / 0.6947 GB, free: 42.2 MB / 442.7 MB Notification: Performance of matching and sorting (n=232): time 0.01919/1.279, allocations: 9.315 MB / 0.7038 GB, free: 32.82 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.952e-05/1.279, allocations: 73.41 kB / 0.7039 GB, free: 32.73 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004054/1.283, allocations: 2.505 MB / 0.7064 GB, free: 30.22 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003538/1.284, allocations: 69.7 kB / 0.7064 GB, free: 30.15 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001186/1.285, allocations: 2.356 MB / 0.7087 GB, free: 27.78 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000609/1.285, allocations: 0.7972 MB / 0.7095 GB, free: 26.99 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001459/1.286, allocations: 60 kB / 0.7096 GB, free: 26.93 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001394/1.286, allocations: 428.1 kB / 0.71 GB, free: 26.5 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001651/1.287, allocations: 1.248 MB / 0.7112 GB, free: 25.25 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001944/1.289, allocations: 2.12 MB / 0.7133 GB, free: 22.74 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002011/1.291, allocations: 1.634 MB / 0.7149 GB, free: 21.08 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-05/1.291, allocations: 8 kB / 0.7149 GB, free: 21.07 MB / 442.7 MB Notification: Performance of matching and sorting (n=379) (initialization): time 0.006641/1.298, allocations: 4.48 MB / 0.7192 GB, free: 16.5 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.19e-05/1.298, allocations: 16 kB / 0.7193 GB, free: 16.49 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.48e-05/1.298, allocations: 28 kB / 0.7193 GB, free: 16.46 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001551/1.3, allocations: 0.7263 MB / 0.72 GB, free: 15.72 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002422/1.302, allocations: 0.6864 MB / 0.7207 GB, free: 15.03 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007786/1.31, allocations: 9.396 MB / 0.7298 GB, free: 5.109 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003337/1.313, allocations: 187.8 kB / 0.73 GB, free: 4.926 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004834/1.314, allocations: 131.9 kB / 0.7301 GB, free: 4.797 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 125 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (343): * Single equations (assignments): 337 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(6,75.0%) 22,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005518/1.314, allocations: 280 kB / 0.7304 GB, free: 4.516 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00073/1.315, allocations: 331.9 kB / 0.7307 GB, free: 4.188 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006641/1.322, allocations: 4.005 MB / 0.7346 GB, free: 112 kB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.639e-05/1.322, allocations: 24 kB / 0.7347 GB, free: 88 kB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.658e-05/1.322, allocations: 12 kB / 0.7347 GB, free: 76 kB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.27e-05/1.322, allocations: 15.91 kB / 0.7347 GB, free: 60 kB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01756/1.339, allocations: 8.629 MB / 0.7431 GB, free: 7.316 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.48e-05/1.339, allocations: 7.984 kB / 0.7431 GB, free: 7.309 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001695/1.341, allocations: 383.8 kB / 0.7435 GB, free: 6.934 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002622/1.344, allocations: 0.9346 MB / 0.7444 GB, free: 5.977 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000234/1.344, allocations: 59.98 kB / 0.7445 GB, free: 5.918 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3567/1.701, allocations: 15.47 MB / 0.7596 GB, free: 81.09 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.629e-06/1.701, allocations: 2.656 kB / 0.7596 GB, free: 81.09 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009548/1.71, allocations: 5.907 MB / 0.7653 GB, free: 80.16 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002131/1.713, allocations: 0.6733 MB / 0.766 GB, free: 80.07 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009281/1.714, allocations: 53.88 kB / 0.766 GB, free: 80.07 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001972/1.716, allocations: 153.1 kB / 0.7662 GB, free: 80.07 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005431/1.716, allocations: 177.1 kB / 0.7664 GB, free: 80.06 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001682/1.716, allocations: 75.7 kB / 0.7664 GB, free: 80.06 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.003472/1.72, allocations: 1.897 MB / 0.7683 GB, free: 79.9 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.3e-07/1.72, allocations: 0 / 0.7683 GB, free: 79.9 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004861/1.725, allocations: 1.028 MB / 0.7693 GB, free: 79.9 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 13 (vfController.x,smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smrE.inertiaRotor.w,smrE.idq_sr[1],smrE.idq_sr[2],smrE.idq_dr[1],smrE.idq_dr[2],loadInertiaM.phi,loadInertiaE.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (178): * Single equations (assignments): 171 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(6,72.2%) 22,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009308/1.734, allocations: 7.636 MB / 0.7767 GB, free: 77.75 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005938/1.74, allocations: 3.943 MB / 0.7806 GB, free: 77.05 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.015e-06/1.74, allocations: 4 kB / 0.7806 GB, free: 77.05 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005368/1.745, allocations: 2.668 MB / 0.7832 GB, free: 76.22 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005589/1.751, allocations: 0.7867 MB / 0.784 GB, free: 76.2 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02481/1.776, allocations: 9.217 MB / 0.793 GB, free: 74.11 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005269/1.781, allocations: 3.415 MB / 0.7963 GB, free: 73.18 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.004045/1.785, allocations: 0.7531 MB / 0.797 GB, free: 73.1 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003202/1.788, allocations: 1.946 MB / 0.7989 GB, free: 71.49 MB / 458.7 MB Notification: Performance of SimCode: time 1.863e-06/1.788, allocations: 0 / 0.7989 GB, free: 71.49 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1501/1.939, allocations: 86.36 MB / 0.8833 GB, free: 27.09 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002253/1.939, allocations: 234.1 kB / 0.8835 GB, free: 26.86 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.807/6.746, allocations: 7.219 kB / 0.8835 GB, free: 26.85 MB / 458.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter_res.mat does not exist to compare? outputFormat=mat