Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.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.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains",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.001033/0.001033, allocations: 181.2 kB / 17.01 MB, free: 5.125 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.35/1.35, allocations: 205.4 MB / 223.1 MB, free: 9.121 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.0009063/0.0009062, allocations: 92.09 kB / 271.5 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000243/0.0002435, allocations: 8 kB / 328.4 MB, free: 15.41 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2655/0.2658, allocations: 47.56 MB / 375.9 MB, free: 45.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.351/0.6169, allocations: 158.5 MB / 0.5219 GB, free: 66.5 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002699/0.6172, allocations: 104.5 kB / 0.522 GB, free: 66.48 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.157/1.774, allocations: 388.6 MB / 0.9015 GB, free: 40.48 MB / 442.7 MB Notification: Performance of FrontEnd: time 4.018e-06/1.774, allocations: 0 / 0.9015 GB, free: 40.48 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.00149/1.776, allocations: 284 kB / 0.9018 GB, free: 40.45 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: 3387 * Number of variables: 3387 Notification: Performance of Generate backend data structure: time 0.04959/1.825, allocations: 11.95 MB / 0.9134 GB, free: 36.49 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.784e-05/1.825, allocations: 14.5 kB / 0.9135 GB, free: 36.49 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01192/1.837, allocations: 1.971 MB / 0.9154 GB, free: 36.34 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0288/1.866, allocations: 5.229 MB / 0.9205 GB, free: 35.66 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02522/1.891, allocations: 9.667 MB / 0.9299 GB, free: 33.37 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001068/1.893, allocations: 0.8969 MB / 0.9308 GB, free: 32.97 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004984/1.898, allocations: 1.172 MB / 0.9319 GB, free: 32.59 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04991/1.948, allocations: 19.59 MB / 0.9511 GB, free: 18.75 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006666/1.948, allocations: 19.09 kB / 0.9511 GB, free: 18.73 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004333/1.953, allocations: 0.5031 MB / 0.9516 GB, free: 18.24 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008322/1.953, allocations: 0.7681 MB / 0.9523 GB, free: 17.54 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03775/1.991, allocations: 17.41 MB / 0.9693 GB, free: 2.363 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3884/2.38, allocations: 63.38 MB / 1.031 GB, free: 35.73 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02251/2.402, allocations: 22.43 MB / 1.053 GB, free: 40.23 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04516/2.447, allocations: 22.91 MB / 1.076 GB, free: 35.22 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001019/2.448, allocations: 104 kB / 1.076 GB, free: 35.13 MB / 474.7 MB Notification: Performance of pre-optimization done (n=755): time 1.473e-05/2.448, allocations: 1.469 kB / 1.076 GB, free: 35.13 MB / 474.7 MB Notification: Performance of matching and sorting (n=765): time 0.08132/2.529, allocations: 41.63 MB / 1.116 GB, free: 12.95 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001029/2.529, allocations: 147.5 kB / 1.116 GB, free: 12.85 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008583/2.538, allocations: 3.909 MB / 1.12 GB, free: 11.39 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001604/2.539, allocations: 136 kB / 1.12 GB, free: 11.27 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003437/2.543, allocations: 4.744 MB / 1.125 GB, free: 7.715 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004354/2.547, allocations: 2.549 MB / 1.127 GB, free: 5.734 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002017/2.549, allocations: 145.2 kB / 1.128 GB, free: 5.621 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001132/2.55, allocations: 0.6369 MB / 1.128 GB, free: 5.168 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01112/2.562, allocations: 4.837 MB / 1.133 GB, free: 3.18 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01439/2.576, allocations: 6.695 MB / 1.139 GB, free: 14.98 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0148/2.591, allocations: 5.986 MB / 1.145 GB, free: 12.23 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.753e-05/2.591, allocations: 17.06 kB / 1.145 GB, free: 12.23 MB / 490.7 MB Notification: Performance of matching and sorting (n=1049) (initialization): time 0.0406/2.632, allocations: 14.51 MB / 1.16 GB, free: 0.9453 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001081/2.632, allocations: 26.3 kB / 1.16 GB, free: 0.9219 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001662/2.632, allocations: 56 kB / 1.16 GB, free: 0.8672 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009922/2.642, allocations: 3.465 MB / 1.163 GB, free: 14.3 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006551/2.648, allocations: 1.497 MB / 1.164 GB, free: 13.13 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2567/2.905, allocations: 13.92 MB / 1.178 GB, free: 99.68 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006237/2.911, allocations: 402.6 kB / 1.178 GB, free: 99.68 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001536/2.913, allocations: 338.7 kB / 1.179 GB, free: 99.68 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 241 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (792): * Single equations (assignments): 727 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 55 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 9 * 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 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 6 {6 9,6 9,6 9,6 9,4 4,10 69} Notification: Performance of prepare postOptimizeDAE: time 0.008421/2.921, allocations: 4.268 MB / 1.183 GB, free: 99.57 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00152/2.923, allocations: 0.5887 MB / 1.183 GB, free: 99.57 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02268/2.946, allocations: 13.75 MB / 1.197 GB, free: 99 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02471/2.97, allocations: 10.42 MB / 1.207 GB, free: 98.72 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.2e-05/2.97, allocations: 8.156 kB / 1.207 GB, free: 98.72 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001517/2.971, allocations: 34.36 kB / 1.207 GB, free: 98.72 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04913/3.02, allocations: 28.2 MB / 1.235 GB, free: 93.29 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.663e-05/3.02, allocations: 5.25 kB / 1.235 GB, free: 93.29 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003999/3.024, allocations: 0.9627 MB / 1.236 GB, free: 93.26 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007375/3.031, allocations: 3.467 MB / 1.239 GB, free: 92.2 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002035/3.033, allocations: 168.7 kB / 1.239 GB, free: 92.1 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01582/3.049, allocations: 18.36 MB / 1.257 GB, free: 78.46 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.957e-06/3.049, allocations: 4.062 kB / 1.257 GB, free: 78.46 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03441/3.084, allocations: 21.01 MB / 1.278 GB, free: 68.56 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005405/3.089, allocations: 1.739 MB / 1.279 GB, free: 67.78 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002352/3.091, allocations: 121.4 kB / 1.279 GB, free: 67.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004759/3.096, allocations: 319.7 kB / 1.28 GB, free: 67.61 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001675/3.098, allocations: 0.5518 MB / 1.28 GB, free: 67.49 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001123/3.099, allocations: 207 kB / 1.28 GB, free: 67.45 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.006527/3.106, allocations: 2.946 MB / 1.283 GB, free: 66.34 MB / 0.4948 GB Notification: Performance of sort global known variables: time 4.51e-07/3.106, allocations: 0 / 1.283 GB, free: 66.34 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01089/3.117, allocations: 2.154 MB / 1.285 GB, free: 66.11 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 10 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,smpm.stator.zeroInductor.i0,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,smpmQS.inertiaRotor.w,smpmQS.permanentMagnet.port_p.reference.gamma,loadInertiaMQS.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (513): * Single equations (assignments): 447 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 55 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 5,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 14,(1,100.0%) 1} * Non-linear torn systems: 6 {4 4,6 9,6 9,6 9,6 9,10 69} Notification: Performance of Backend phase and start with SimCode phase: time 0.04327/3.16, allocations: 23.14 MB / 1.308 GB, free: 48.77 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02861/3.189, allocations: 12.25 MB / 1.32 GB, free: 38.1 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.612e-05/3.189, allocations: 2.438 kB / 1.32 GB, free: 38.1 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01544/3.204, allocations: 6.701 MB / 1.327 GB, free: 32.22 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01125/3.215, allocations: 1.311 MB / 1.328 GB, free: 31.24 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4028/3.618, allocations: 110.5 MB / 1.436 GB, free: 40.7 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00973/3.628, allocations: 7.77 MB / 1.443 GB, free: 39.76 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.0078/3.636, allocations: 1.822 MB / 1.445 GB, free: 39.57 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008211/3.644, allocations: 4.438 MB / 1.45 GB, free: 39.57 MB / 0.4948 GB Notification: Performance of SimCode: time 9.31e-07/3.644, allocations: 0 / 1.45 GB, free: 39.57 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5284/4.173, allocations: 207.9 MB / 1.653 GB, free: 67.71 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002042/4.173, allocations: 272.9 kB / 1.653 GB, free: 67.34 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.978/11.15, allocations: 4 kB / 1.653 GB, free: 67.34 MB / 0.4948 GB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains_res.mat does not exist to compare? outputFormat=mat