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_CurrentSource.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_CurrentSource,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",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.001245/0.001245, allocations: 171.8 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.391/1.391, allocations: 205.2 MB / 219.8 MB, free: 14.2 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.0008163/0.0008164, allocations: 82.72 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.628e-05/2.632e-05, allocations: 4 kB / 322.6 MB, free: 17.22 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08025/0.08029, allocations: 47.57 MB / 370.1 MB, free: 1.586 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3561/0.4364, allocations: 163.1 MB / 0.5207 GB, free: 11.36 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002581/0.4367, allocations: 106.4 kB / 0.5208 GB, free: 11.3 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.37/1.807, allocations: 395.7 MB / 0.9073 GB, free: 40.51 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.453e-06/1.807, allocations: 0 / 0.9073 GB, free: 40.51 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0009369/1.808, allocations: 301.3 kB / 0.9076 GB, free: 40.48 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: 3597 * Number of variables: 3597 Notification: Performance of Generate backend data structure: time 0.04118/1.849, allocations: 11.32 MB / 0.9186 GB, free: 36.78 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.663e-05/1.849, allocations: 10.94 kB / 0.9186 GB, free: 36.78 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007592/1.857, allocations: 1.82 MB / 0.9204 GB, free: 36.66 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0349/1.892, allocations: 6.414 MB / 0.9267 GB, free: 35.93 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02577/1.917, allocations: 9.676 MB / 0.9361 GB, free: 34.7 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001331/1.919, allocations: 0.946 MB / 0.9371 GB, free: 34.67 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007226/1.926, allocations: 1.23 MB / 0.9383 GB, free: 34.66 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05358/1.98, allocations: 20.67 MB / 0.9584 GB, free: 27.33 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006047/1.98, allocations: 32.72 kB / 0.9585 GB, free: 27.32 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004626/1.985, allocations: 0.53 MB / 0.959 GB, free: 26.92 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009075/1.986, allocations: 0.8518 MB / 0.9598 GB, free: 26.75 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03744/2.023, allocations: 18.65 MB / 0.978 GB, free: 12.15 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4723/2.496, allocations: 66.25 MB / 1.043 GB, free: 29.88 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0385/2.534, allocations: 46.06 MB / 1.088 GB, free: 26.52 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01508/2.549, allocations: 7.78 MB / 1.095 GB, free: 26.42 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05062/2.6, allocations: 23.81 MB / 1.119 GB, free: 25.38 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001503/2.6, allocations: 114.4 kB / 1.119 GB, free: 25.34 MB / 490.7 MB Notification: Performance of pre-optimization done (n=772): time 1.922e-05/2.6, allocations: 0 / 1.119 GB, free: 25.34 MB / 490.7 MB Notification: Performance of matching and sorting (n=814): time 0.06178/2.662, allocations: 26.98 MB / 1.145 GB, free: 14.66 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001279/2.662, allocations: 123.3 kB / 1.145 GB, free: 14.59 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009708/2.672, allocations: 3.773 MB / 1.149 GB, free: 13.14 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002077/2.674, allocations: 138.2 kB / 1.149 GB, free: 13.02 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003872/2.678, allocations: 5.086 MB / 1.154 GB, free: 9.203 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00466/2.683, allocations: 2.712 MB / 1.157 GB, free: 7.102 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008041/2.684, allocations: 163.8 kB / 1.157 GB, free: 6.973 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0008396/2.684, allocations: 0.6742 MB / 1.157 GB, free: 6.504 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01135/2.696, allocations: 5.078 MB / 1.162 GB, free: 4.414 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01695/2.713, allocations: 7.556 MB / 1.17 GB, free: 15.32 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01133/2.724, allocations: 6.447 MB / 1.176 GB, free: 12.75 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001214/2.724, allocations: 22.66 kB / 1.176 GB, free: 12.75 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1169) (initialization): time 0.03757/2.762, allocations: 15.69 MB / 1.191 GB, free: 3.324 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001532/2.762, allocations: 43.66 kB / 1.191 GB, free: 3.285 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002262/2.762, allocations: 72 kB / 1.191 GB, free: 3.215 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.3321/3.095, allocations: 4.1 MB / 1.195 GB, free: 97.7 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008329/3.103, allocations: 1.679 MB / 1.197 GB, free: 97.7 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01306/3.116, allocations: 12.19 MB / 1.209 GB, free: 93.13 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007408/3.123, allocations: 461.9 kB / 1.209 GB, free: 93.12 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001996/3.126, allocations: 400 kB / 1.21 GB, free: 93.12 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 343 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (871): * Single equations (assignments): 815 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 6 * 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: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of prepare postOptimizeDAE: time 0.001716/3.127, allocations: 0.5827 MB / 1.21 GB, free: 93.02 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002113/3.129, allocations: 0.6055 MB / 1.211 GB, free: 93.02 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02541/3.155, allocations: 14.43 MB / 1.225 GB, free: 92.64 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001849/3.155, allocations: 199.4 kB / 1.225 GB, free: 92.64 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.434e-05/3.155, allocations: 0 / 1.225 GB, free: 92.64 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001008/3.155, allocations: 40 kB / 1.225 GB, free: 92.63 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04968/3.205, allocations: 28.92 MB / 1.254 GB, free: 90.38 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.44e-05/3.205, allocations: 3.906 kB / 1.254 GB, free: 90.38 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005261/3.21, allocations: 1.054 MB / 1.255 GB, free: 90.35 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007189/3.217, allocations: 3.982 MB / 1.258 GB, free: 89.12 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001524/3.219, allocations: 176.2 kB / 1.259 GB, free: 89.02 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01085/3.23, allocations: 12.01 MB / 1.27 GB, free: 81.23 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.615e-06/3.23, allocations: 14.02 kB / 1.27 GB, free: 81.23 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03492/3.265, allocations: 21.86 MB / 1.292 GB, free: 71.38 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005322/3.27, allocations: 1.776 MB / 1.293 GB, free: 70.38 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00258/3.273, allocations: 124.1 kB / 1.294 GB, free: 70.29 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005401/3.278, allocations: 331.2 kB / 1.294 GB, free: 70.2 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002116/3.28, allocations: 0.5795 MB / 1.294 GB, free: 70.08 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001383/3.282, allocations: 221.9 kB / 1.295 GB, free: 70.02 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.006404/3.288, allocations: 2.812 MB / 1.297 GB, free: 68.95 MB / 0.4948 GB Notification: Performance of sort global known variables: time 4.9e-07/3.288, allocations: 0 / 1.297 GB, free: 68.95 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01306/3.301, allocations: 2.211 MB / 1.3 GB, free: 68.71 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (552): * Single equations (assignments): 496 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 6 * 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: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.03568/3.337, allocations: 23.94 MB / 1.323 GB, free: 51.24 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02046/3.357, allocations: 13.02 MB / 1.336 GB, free: 39.62 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.717e-06/3.358, allocations: 0 / 1.336 GB, free: 39.62 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01075/3.368, allocations: 6.723 MB / 1.342 GB, free: 33.58 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007345/3.376, allocations: 1.272 MB / 1.344 GB, free: 32.61 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06682/3.442, allocations: 25.85 MB / 1.369 GB, free: 10.18 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.316/3.759, allocations: 8.321 MB / 1.377 GB, free: 92.57 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.009575/3.768, allocations: 2.003 MB / 1.379 GB, free: 92.5 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00945/3.778, allocations: 4.731 MB / 1.383 GB, free: 92.5 MB / 0.4948 GB Notification: Performance of SimCode: time 1.082e-06/3.778, allocations: 0 / 1.383 GB, free: 92.5 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5353/4.313, allocations: 212.9 MB / 1.591 GB, free: 74.81 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001738/4.313, allocations: 251.2 kB / 1.592 GB, free: 74.47 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.402/11.72, allocations: 3.906 kB / 1.592 GB, free: 74.47 MB / 0.4948 GB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.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_CurrentSource_res.mat does not exist to compare? outputFormat=mat