Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,fileNamePrefix="Modelica_4_0_0_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_4_0_0_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 4.0.0+maint.om/package.mo): time 0.0009607/0.0009606, allocations: 176.4 kB / 8.346 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.47/1.47, allocations: 221.5 MB / 230.3 MB, free: 7.586 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008808/0.0008806, allocations: 101.8 kB / 281.2 MB, free: 5.332 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.833e-05/1.829e-05, allocations: 0 / 337.2 MB, free: 9.918 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1157/0.1158, allocations: 50.42 MB / 387.6 MB, free: 7.457 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4596/0.5754, allocations: 158.3 MB / 0.5331 GB, free: 280 kB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002926/0.5758, allocations: 107.9 kB / 0.5332 GB, free: 172 kB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.744/2.32, allocations: 383.1 MB / 0.9072 GB, free: 31.41 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.665e-06/2.32, allocations: 0 / 0.9072 GB, free: 31.41 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0009875/2.321, allocations: 283 kB / 0.9075 GB, free: 31.39 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3330 * Number of variables: 3330 Notification: Performance of Generate backend data structure: time 0.04253/2.364, allocations: 11.15 MB / 0.9184 GB, free: 27.89 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.125e-05/2.364, allocations: 14.7 kB / 0.9184 GB, free: 27.89 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02864/2.393, allocations: 4.552 MB / 0.9229 GB, free: 27.22 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02769/2.42, allocations: 9.73 MB / 0.9324 GB, free: 26.03 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009101/2.421, allocations: 390.5 kB / 0.9327 GB, free: 26.03 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006155/2.427, allocations: 0.6882 MB / 0.9334 GB, free: 26.02 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03808/2.466, allocations: 14.16 MB / 0.9472 GB, free: 25.96 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05741/2.523, allocations: 16.48 MB / 0.9633 GB, free: 24.52 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007291/2.524, allocations: 24.48 kB / 0.9634 GB, free: 24.52 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005/2.529, allocations: 8.75 kB / 0.9634 GB, free: 24.52 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009747/2.53, allocations: 0.7947 MB / 0.9641 GB, free: 24.49 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1185/2.648, allocations: 59.76 MB / 1.022 GB, free: 11.32 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.4455/3.094, allocations: 30.44 MB / 1.052 GB, free: 59.39 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009194/3.103, allocations: 4.113 MB / 1.056 GB, free: 59.34 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02579/3.129, allocations: 10.13 MB / 1.066 GB, free: 58.57 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.785e-05/3.129, allocations: 78.52 kB / 1.066 GB, free: 58.53 MB / 490.7 MB Notification: Performance of pre-optimization done (n=407): time 6.993e-06/3.129, allocations: 2.594 kB / 1.066 GB, free: 58.53 MB / 490.7 MB Notification: Performance of matching and sorting (n=417): time 0.0407/3.17, allocations: 17.49 MB / 1.083 GB, free: 55.15 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.133e-05/3.17, allocations: 121.2 kB / 1.083 GB, free: 55.05 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008057/3.178, allocations: 3.892 MB / 1.087 GB, free: 54.72 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001158/3.179, allocations: 30.67 kB / 1.087 GB, free: 54.69 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003664/3.183, allocations: 5.343 MB / 1.092 GB, free: 51.87 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002166/3.185, allocations: 1.391 MB / 1.094 GB, free: 50.96 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004905/3.186, allocations: 0 / 1.094 GB, free: 50.96 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0004104/3.186, allocations: 0.562 MB / 1.094 GB, free: 50.65 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004535/3.191, allocations: 2.817 MB / 1.097 GB, free: 50.63 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006462/3.197, allocations: 5.245 MB / 1.102 GB, free: 47.64 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009796/3.207, allocations: 4.941 MB / 1.107 GB, free: 47.58 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001249/3.207, allocations: 28.64 kB / 1.107 GB, free: 47.57 MB / 490.7 MB Notification: Performance of matching and sorting (n=832) (initialization): time 0.02233/3.229, allocations: 10.04 MB / 1.117 GB, free: 47 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001128/3.23, allocations: 42.53 kB / 1.117 GB, free: 47 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002055/3.23, allocations: 82.06 kB / 1.117 GB, free: 47 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003325/3.233, allocations: 1.11 MB / 1.118 GB, free: 46.95 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006659/3.24, allocations: 1.493 MB / 1.12 GB, free: 46.95 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01415/3.254, allocations: 12.04 MB / 1.131 GB, free: 41.84 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006841/3.261, allocations: 267.8 kB / 1.132 GB, free: 41.82 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001734/3.263, allocations: 326.8 kB / 1.132 GB, free: 41.82 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 372 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (765): * Single equations (assignments): 756 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * 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: 4 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 1,(10,52.0%) 46} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001592/3.264, allocations: 327.6 kB / 1.132 GB, free: 41.66 MB / 490.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01463/3.279, allocations: 7.071 MB / 1.139 GB, free: 40.97 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002193/3.281, allocations: 0.4897 MB / 1.14 GB, free: 40.71 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01666/3.298, allocations: 7.7 MB / 1.147 GB, free: 39.52 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008659/3.307, allocations: 4.882 MB / 1.152 GB, free: 37.79 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.693e-05/3.307, allocations: 13.59 kB / 1.152 GB, free: 37.79 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001029/3.307, allocations: 25.7 kB / 1.152 GB, free: 37.79 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03424/3.341, allocations: 16.01 MB / 1.168 GB, free: 31.22 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-05/3.341, allocations: 9.438 kB / 1.168 GB, free: 31.22 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003478/3.345, allocations: 0.7188 MB / 1.168 GB, free: 31.2 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003279/3.348, allocations: 1.166 MB / 1.169 GB, free: 30.9 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006248/3.349, allocations: 43.45 kB / 1.169 GB, free: 30.89 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01584/3.364, allocations: 15.48 MB / 1.185 GB, free: 19.45 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.159e-05/3.365, allocations: 7.812 kB / 1.185 GB, free: 19.45 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01845/3.383, allocations: 11.67 MB / 1.196 GB, free: 10.11 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003505/3.387, allocations: 1.128 MB / 1.197 GB, free: 9.082 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001666/3.388, allocations: 15.75 kB / 1.197 GB, free: 9.07 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003679/3.392, allocations: 192.5 kB / 1.197 GB, free: 8.957 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007887/3.393, allocations: 302.7 kB / 1.198 GB, free: 8.773 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003014/3.393, allocations: 126 kB / 1.198 GB, free: 8.66 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.00539/3.398, allocations: 2.837 MB / 1.2 GB, free: 6.16 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.81e-07/3.398, allocations: 0 / 1.2 GB, free: 6.16 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0114/3.41, allocations: 1.804 MB / 1.202 GB, free: 4.371 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 10 (smpmQS.inertiaRotor.w,smpmQS.permanentMagnet.port_p.reference.gamma,loadInertiaMQS.phi,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) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (355): * Single equations (assignments): 345 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 1,(10,50.0%) 46,(1,100.0%) 5,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02284/3.433, allocations: 13.88 MB / 1.216 GB, free: 8.25 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01382/3.447, allocations: 7.488 MB / 1.223 GB, free: 1.574 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.281e-05/3.447, allocations: 2 kB / 1.223 GB, free: 1.574 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.344/3.791, allocations: 4.493 MB / 1.227 GB, free: 71.98 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008283/3.799, allocations: 1.057 MB / 1.228 GB, free: 71.95 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0658/3.865, allocations: 20.49 MB / 1.248 GB, free: 68.39 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01715/3.882, allocations: 7.574 MB / 1.256 GB, free: 67.38 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.008932/3.891, allocations: 1.961 MB / 1.258 GB, free: 67.19 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008528/3.9, allocations: 4.413 MB / 1.262 GB, free: 67.19 MB / 0.4948 GB Notification: Performance of SimCode: time 2.735e-06/3.9, allocations: 2.25 kB / 1.262 GB, free: 67.19 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2281/4.128, allocations: 145.6 MB / 1.404 GB, free: 12.16 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002828/4.128, allocations: 201.8 kB / 1.405 GB, free: 11.9 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.885/11.01, allocations: 4 kB / 1.405 GB, free: 11.9 MB / 0.5105 GB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains_res.mat does not exist to compare? outputFormat=mat