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.001005/0.001005, 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.395/1.395, allocations: 205.4 MB / 223.1 MB, free: 9.031 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.0008364/0.0008364, allocations: 96.09 kB / 271.5 MB, free: 8.352 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002545/0.0002544, allocations: 4 kB / 328.4 MB, free: 15.39 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.21/0.2103, allocations: 47.56 MB / 375.9 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3493/0.5596, allocations: 163.2 MB / 0.5265 GB, free: 65.12 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003136/0.56, allocations: 109.1 kB / 0.5266 GB, free: 65.1 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.12/1.68, allocations: 396 MB / 0.9133 GB, free: 36.81 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.014e-06/1.68, allocations: 0 / 0.9133 GB, free: 36.81 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0006025/1.681, allocations: 293.7 kB / 0.9136 GB, free: 36.79 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.03217/1.713, allocations: 12.03 MB / 0.9254 GB, free: 32.7 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.119e-05/1.713, allocations: 6.969 kB / 0.9254 GB, free: 32.7 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006092/1.719, allocations: 1.844 MB / 0.9272 GB, free: 32.57 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03334/1.753, allocations: 6.462 MB / 0.9335 GB, free: 31.82 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02308/1.776, allocations: 9.69 MB / 0.9429 GB, free: 26.92 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001027/1.777, allocations: 0.952 MB / 0.9439 GB, free: 25.98 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004474/1.781, allocations: 1.235 MB / 0.9451 GB, free: 24.77 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0455/1.827, allocations: 20.9 MB / 0.9655 GB, free: 6.398 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005329/1.827, allocations: 23.75 kB / 0.9655 GB, free: 6.375 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0041/1.831, allocations: 0.541 MB / 0.966 GB, free: 5.855 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001096/1.833, allocations: 0.85 MB / 0.9669 GB, free: 5.004 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04033/1.873, allocations: 18.96 MB / 0.9854 GB, free: 2.035 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3404/2.213, allocations: 65.87 MB / 1.05 GB, free: 38.45 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03653/2.25, allocations: 46.18 MB / 1.095 GB, free: 14.35 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03856/2.289, allocations: 23.96 MB / 1.118 GB, free: 2.875 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.506e-05/2.289, allocations: 100.3 kB / 1.118 GB, free: 2.789 MB / 474.7 MB Notification: Performance of pre-optimization done (n=783): time 9.378e-06/2.289, allocations: 0 / 1.118 GB, free: 2.789 MB / 474.7 MB Notification: Performance of matching and sorting (n=825): time 0.1269/2.416, allocations: 47.14 MB / 1.164 GB, free: 13.74 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001669/2.416, allocations: 127.1 kB / 1.164 GB, free: 13.6 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00966/2.425, allocations: 3.807 MB / 1.168 GB, free: 10.38 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.002331/2.428, allocations: 133.7 kB / 1.168 GB, free: 10.24 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.005179/2.433, allocations: 5.074 MB / 1.173 GB, free: 5.746 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.005133/2.438, allocations: 2.74 MB / 1.176 GB, free: 3.273 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009867/2.439, allocations: 164 kB / 1.176 GB, free: 3.113 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.001008/2.44, allocations: 0.6744 MB / 1.177 GB, free: 2.539 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01946/2.46, allocations: 5.923 MB / 1.183 GB, free: 0 / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2651/2.725, allocations: 7.644 MB / 1.19 GB, free: 98.5 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009289/2.734, allocations: 6.533 MB / 1.196 GB, free: 98.4 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.448e-05/2.734, allocations: 27.91 kB / 1.196 GB, free: 98.4 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1176) (initialization): time 0.03296/2.767, allocations: 15.93 MB / 1.212 GB, free: 98.1 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 8.455e-05/2.767, allocations: 38.34 kB / 1.212 GB, free: 98.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001618/2.768, allocations: 72.41 kB / 1.212 GB, free: 98.1 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006788/2.774, allocations: 4.132 MB / 1.216 GB, free: 97.98 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007039/2.781, allocations: 1.687 MB / 1.218 GB, free: 97.98 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01108/2.793, allocations: 12.21 MB / 1.23 GB, free: 93.39 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006397/2.799, allocations: 465.8 kB / 1.23 GB, free: 93.39 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001021/2.8, allocations: 397.3 kB / 1.231 GB, free: 93.39 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 339 * 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 (878): * Single equations (assignments): 822 * 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.008477/2.808, allocations: 4.453 MB / 1.235 GB, free: 93.27 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001785/2.81, allocations: 0.6121 MB / 1.235 GB, free: 93.27 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02558/2.836, allocations: 14.6 MB / 1.25 GB, free: 90.27 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002144/2.836, allocations: 197.2 kB / 1.25 GB, free: 90.18 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.766e-05/2.836, allocations: 3.094 kB / 1.25 GB, free: 90.18 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001159/2.836, allocations: 37.27 kB / 1.25 GB, free: 90.18 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06223/2.899, allocations: 29.34 MB / 1.279 GB, free: 77.55 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.514e-05/2.899, allocations: 9.766 kB / 1.279 GB, free: 77.55 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005827/2.905, allocations: 1.079 MB / 1.28 GB, free: 77.52 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008168/2.913, allocations: 4.014 MB / 1.284 GB, free: 76.24 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002054/2.915, allocations: 171.5 kB / 1.284 GB, free: 76.14 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01303/2.928, allocations: 12.07 MB / 1.296 GB, free: 67.62 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.402e-06/2.928, allocations: 7.094 kB / 1.296 GB, free: 67.62 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03818/2.966, allocations: 22.17 MB / 1.317 GB, free: 47.85 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005585/2.972, allocations: 1.792 MB / 1.319 GB, free: 46.23 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00261/2.974, allocations: 120 kB / 1.319 GB, free: 46.12 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004947/2.979, allocations: 333.9 kB / 1.319 GB, free: 45.88 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00188/2.981, allocations: 0.5839 MB / 1.32 GB, free: 45.51 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001264/2.983, allocations: 223.2 kB / 1.32 GB, free: 45.31 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.005554/2.988, allocations: 2.848 MB / 1.323 GB, free: 42.95 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2.4e-07/2.988, allocations: 0 / 1.323 GB, free: 42.95 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01183/3, allocations: 2.217 MB / 1.325 GB, free: 40.74 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (563): * Single equations (assignments): 507 * 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.03655/3.037, allocations: 24.16 MB / 1.349 GB, free: 19.1 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.2754/3.312, allocations: 13.55 MB / 1.362 GB, free: 97.5 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.032e-05/3.312, allocations: 3.5 kB / 1.362 GB, free: 97.5 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01245/3.324, allocations: 6.857 MB / 1.369 GB, free: 96.93 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007068/3.332, allocations: 1.273 MB / 1.37 GB, free: 96.91 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1489/3.481, allocations: 129 MB / 1.496 GB, free: 18.28 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01343/3.494, allocations: 8.082 MB / 1.504 GB, free: 17.11 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.008887/3.503, allocations: 2.006 MB / 1.506 GB, free: 16.89 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00963/3.513, allocations: 4.729 MB / 1.51 GB, free: 12.88 MB / 0.4948 GB Notification: Performance of SimCode: time 1.543e-06/3.513, allocations: 0 / 1.51 GB, free: 12.88 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5457/4.058, allocations: 217.3 MB / 1.723 GB, free: 11.77 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003107/4.059, allocations: 282 kB / 1.723 GB, free: 11.41 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.766/10.83, allocations: 0 / 1.723 GB, free: 11.41 MB / 0.5105 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