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.0009954/0.0009954, allocations: 172.2 kB / 14.1 MB, free: 1.223 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.421/1.421, allocations: 205.2 MB / 219.8 MB, free: 14.27 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.0009315/0.0009314, allocations: 86.66 kB / 268 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.848e-05/2.862e-05, allocations: 4 kB / 322.6 MB, free: 17.23 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08453/0.08458, allocations: 47.56 MB / 370.1 MB, free: 1.605 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.371/0.4556, allocations: 158.4 MB / 0.5162 GB, free: 12 kB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002932/0.456, allocations: 105.5 kB / 0.5163 GB, free: 15.95 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.389/1.845, allocations: 388.3 MB / 0.8954 GB, free: 31.79 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.263e-06/1.845, allocations: 0 / 0.8954 GB, free: 31.79 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0008956/1.846, allocations: 292.1 kB / 0.8957 GB, free: 31.76 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.03826/1.884, allocations: 11.23 MB / 0.9067 GB, free: 28.2 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.018e-05/1.884, allocations: 7.625 kB / 0.9067 GB, free: 28.2 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00838/1.893, allocations: 1.954 MB / 0.9086 GB, free: 28.05 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02889/1.921, allocations: 5.199 MB / 0.9137 GB, free: 27.37 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02269/1.944, allocations: 9.63 MB / 0.9231 GB, free: 26.16 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001044/1.945, allocations: 0.9032 MB / 0.924 GB, free: 26.13 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004573/1.95, allocations: 1.175 MB / 0.9251 GB, free: 26.12 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04681/1.997, allocations: 19.33 MB / 0.944 GB, free: 24.63 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005903/1.997, allocations: 16.17 kB / 0.944 GB, free: 24.63 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004278/2.002, allocations: 0.5079 MB / 0.9445 GB, free: 24.62 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008609/2.003, allocations: 0.7761 MB / 0.9453 GB, free: 24.6 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03623/2.039, allocations: 17.07 MB / 0.9619 GB, free: 18.34 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1166/2.155, allocations: 63.53 MB / 1.024 GB, free: 1.18 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3132/2.469, allocations: 22.38 MB / 1.046 GB, free: 48.59 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01199/2.481, allocations: 7.304 MB / 1.053 GB, free: 48.51 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03697/2.518, allocations: 22.81 MB / 1.075 GB, free: 47.45 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.387e-05/2.518, allocations: 104.7 kB / 1.075 GB, free: 47.4 MB / 474.7 MB Notification: Performance of pre-optimization done (n=747): time 9.618e-06/2.518, allocations: 0 / 1.075 GB, free: 47.4 MB / 474.7 MB Notification: Performance of matching and sorting (n=757): time 0.04305/2.561, allocations: 25.91 MB / 1.101 GB, free: 42.35 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.109e-05/2.561, allocations: 146.4 kB / 1.101 GB, free: 42.25 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005821/2.567, allocations: 3.868 MB / 1.105 GB, free: 40.76 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001231/2.568, allocations: 133 kB / 1.105 GB, free: 40.64 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002399/2.571, allocations: 4.751 MB / 1.109 GB, free: 37.08 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003235/2.574, allocations: 2.514 MB / 1.112 GB, free: 35.12 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008312/2.575, allocations: 146.5 kB / 1.112 GB, free: 35.01 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.000537/2.575, allocations: 0.6359 MB / 1.113 GB, free: 34.56 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006035/2.581, allocations: 4.719 MB / 1.117 GB, free: 32.58 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007228/2.588, allocations: 6.58 MB / 1.124 GB, free: 28.43 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007554/2.596, allocations: 5.883 MB / 1.129 GB, free: 26.02 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.399e-05/2.596, allocations: 14.5 kB / 1.129 GB, free: 26.02 MB / 474.7 MB Notification: Performance of matching and sorting (n=1043) (initialization): time 0.02178/2.618, allocations: 14.21 MB / 1.143 GB, free: 20.33 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.692e-05/2.618, allocations: 29.31 kB / 1.143 GB, free: 20.33 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.564e-05/2.618, allocations: 55.59 kB / 1.143 GB, free: 20.33 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006048/2.624, allocations: 3.361 MB / 1.147 GB, free: 19.3 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006615/2.631, allocations: 1.482 MB / 1.148 GB, free: 19.26 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01083/2.642, allocations: 13.83 MB / 1.162 GB, free: 9.219 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006915/2.649, allocations: 401.2 kB / 1.162 GB, free: 9.094 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002128/2.651, allocations: 335.5 kB / 1.162 GB, free: 9.031 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 243 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (786): * Single equations (assignments): 721 * 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.00326/2.654, allocations: 0.5147 MB / 1.163 GB, free: 8.68 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001804/2.656, allocations: 0.5835 MB / 1.163 GB, free: 8.371 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0221/2.678, allocations: 13.51 MB / 1.176 GB, free: 14.2 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01678/2.695, allocations: 10.31 MB / 1.187 GB, free: 5.043 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.516e-05/2.695, allocations: 4 kB / 1.187 GB, free: 5.039 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.457e-05/2.695, allocations: 35.73 kB / 1.187 GB, free: 5.035 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3491/3.044, allocations: 28.38 MB / 1.214 GB, free: 81.45 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.271e-05/3.044, allocations: 4.25 kB / 1.214 GB, free: 81.45 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004989/3.049, allocations: 0.9457 MB / 1.215 GB, free: 81.45 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007737/3.057, allocations: 3.445 MB / 1.219 GB, free: 81.36 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001603/3.059, allocations: 169 kB / 1.219 GB, free: 81.36 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0161/3.075, allocations: 18.21 MB / 1.237 GB, free: 71.83 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.135e-06/3.075, allocations: 6.219 kB / 1.237 GB, free: 71.83 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02874/3.104, allocations: 20.66 MB / 1.257 GB, free: 70.11 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004678/3.108, allocations: 1.731 MB / 1.258 GB, free: 70.01 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001706/3.11, allocations: 127.5 kB / 1.259 GB, free: 70.01 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004811/3.115, allocations: 313.2 kB / 1.259 GB, free: 70.01 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001302/3.116, allocations: 0.5474 MB / 1.259 GB, free: 70 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005093/3.117, allocations: 206.8 kB / 1.26 GB, free: 70 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.005443/3.122, allocations: 2.904 MB / 1.262 GB, free: 69.79 MB / 0.4948 GB Notification: Performance of sort global known variables: time 3.61e-07/3.122, allocations: 0 / 1.262 GB, free: 69.79 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01029/3.132, allocations: 2.146 MB / 1.265 GB, free: 69.79 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (505): * Single equations (assignments): 439 * 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%) 1,(1,100.0%) 8,(2,100.0%) 14,(1,100.0%) 1} * Non-linear torn systems: 6 {6 9,4 4,6 9,6 9,6 9,10 69} Notification: Performance of Backend phase and start with SimCode phase: time 0.0309/3.163, allocations: 22.99 MB / 1.287 GB, free: 66.62 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01965/3.183, allocations: 11.98 MB / 1.299 GB, free: 63.4 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.173e-05/3.183, allocations: 0 / 1.299 GB, free: 63.4 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01061/3.194, allocations: 6.564 MB / 1.305 GB, free: 60.48 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008988/3.203, allocations: 1.315 MB / 1.306 GB, free: 60.14 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05254/3.255, allocations: 24.82 MB / 1.331 GB, free: 50.37 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009232/3.265, allocations: 7.774 MB / 1.338 GB, free: 47.75 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.006562/3.271, allocations: 1.808 MB / 1.34 GB, free: 47.54 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007413/3.279, allocations: 4.444 MB / 1.344 GB, free: 43.77 MB / 0.4948 GB Notification: Performance of SimCode: time 1.292e-06/3.279, allocations: 0 / 1.344 GB, free: 43.77 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.594/3.873, allocations: 204.2 MB / 1.544 GB, free: 26.39 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001548/3.873, allocations: 242.9 kB / 1.544 GB, free: 26.07 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.739/10.61, allocations: 0 / 1.544 GB, free: 26.07 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