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_OpenCircuit.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_OpenCircuit,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit",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.001576/0.001576, allocations: 177.1 kB / 8.35 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.479/1.479, allocations: 221.5 MB / 230.3 MB, free: 7.531 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.0008769/0.0008769, allocations: 96.36 kB / 281.2 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.836e-05/1.838e-05, allocations: 0 / 337.2 MB, free: 9.906 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09856/0.0986, allocations: 50.42 MB / 387.6 MB, free: 7.445 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4202/0.5189, allocations: 148.1 MB / 0.5231 GB, free: 10.46 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002826/0.5192, allocations: 99.94 kB / 0.5232 GB, free: 10.36 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.051/1.57, allocations: 230.6 MB / 0.7485 GB, free: 43.57 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.396e-06/1.57, allocations: 3.938 kB / 0.7485 GB, free: 43.57 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0007285/1.571, allocations: 157.2 kB / 0.7486 GB, free: 43.55 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1994 * Number of variables: 1994 Notification: Performance of Generate backend data structure: time 0.02605/1.597, allocations: 6.79 MB / 0.7552 GB, free: 41.26 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.676e-05/1.597, allocations: 15.39 kB / 0.7553 GB, free: 41.25 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02166/1.619, allocations: 3.652 MB / 0.7588 GB, free: 40.84 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01959/1.638, allocations: 6.037 MB / 0.7647 GB, free: 40.02 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005763/1.639, allocations: 233.5 kB / 0.7649 GB, free: 40.02 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004093/1.643, allocations: 416.4 kB / 0.7653 GB, free: 40.01 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02349/1.667, allocations: 8.917 MB / 0.7741 GB, free: 39.98 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03146/1.698, allocations: 9.905 MB / 0.7837 GB, free: 39.19 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000536/1.699, allocations: 16.7 kB / 0.7837 GB, free: 39.18 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003489/1.702, allocations: 7.406 kB / 0.7837 GB, free: 39.18 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006571/1.703, allocations: 0.5054 MB / 0.7842 GB, free: 39.17 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07812/1.781, allocations: 37.32 MB / 0.8207 GB, free: 19.88 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02182/1.803, allocations: 27.88 MB / 0.8479 GB, free: 8.242 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005705/1.809, allocations: 2.59 MB / 0.8504 GB, free: 5.887 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02054/1.829, allocations: 8.353 MB / 0.8586 GB, free: 15.18 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.312e-05/1.829, allocations: 60.5 kB / 0.8587 GB, free: 15.11 MB / 458.7 MB Notification: Performance of pre-optimization done (n=217): time 6.142e-06/1.829, allocations: 4 kB / 0.8587 GB, free: 15.11 MB / 458.7 MB Notification: Performance of matching and sorting (n=233): time 0.02441/1.854, allocations: 10.03 MB / 0.8685 GB, free: 6.566 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.881e-05/1.854, allocations: 73.41 kB / 0.8685 GB, free: 6.48 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008062/1.862, allocations: 2.815 MB / 0.8713 GB, free: 3.984 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005899/1.863, allocations: 25.7 kB / 0.8713 GB, free: 3.953 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003385/1.866, allocations: 3.557 MB / 0.8748 GB, free: 0.7578 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001371/1.867, allocations: 0.803 MB / 0.8756 GB, free: 28 kB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008063/1.868, allocations: 0 / 0.8756 GB, free: 28 kB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.3706/2.239, allocations: 0.5244 MB / 0.8761 GB, free: 73.79 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004748/2.244, allocations: 1.871 MB / 0.8779 GB, free: 73.77 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005689/2.249, allocations: 4.267 MB / 0.8821 GB, free: 70.69 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007465/2.257, allocations: 3.364 MB / 0.8853 GB, free: 70.67 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001811/2.257, allocations: 26.56 kB / 0.8854 GB, free: 70.67 MB / 458.7 MB Notification: Performance of matching and sorting (n=620) (initialization): time 0.01942/2.276, allocations: 7.004 MB / 0.8922 GB, free: 70.55 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001539/2.277, allocations: 40.89 kB / 0.8922 GB, free: 70.55 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002551/2.277, allocations: 85.16 kB / 0.8923 GB, free: 70.55 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00248/2.279, allocations: 0.7432 MB / 0.8931 GB, free: 70.52 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005361/2.285, allocations: 1.132 MB / 0.8942 GB, free: 70.52 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007244/2.292, allocations: 5.02 MB / 0.8991 GB, free: 69.31 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006786/2.299, allocations: 247.6 kB / 0.8993 GB, free: 69.31 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0023/2.301, allocations: 267.8 kB / 0.8996 GB, free: 69.31 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 384 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (583): * Single equations (assignments): 580 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * 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: 1 {(4,100.0%) 32} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002532/2.304, allocations: 307.4 kB / 0.8998 GB, free: 69.2 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00877/2.313, allocations: 4.274 MB / 0.904 GB, free: 69.08 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001105/2.314, allocations: 354.4 kB / 0.9044 GB, free: 69.08 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008929/2.323, allocations: 4.744 MB / 0.909 GB, free: 68.91 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-05/2.323, allocations: 24.41 kB / 0.909 GB, free: 68.91 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.521e-05/2.323, allocations: 4.219 kB / 0.909 GB, free: 68.91 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.631e-05/2.323, allocations: 17.34 kB / 0.909 GB, free: 68.91 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02598/2.349, allocations: 14.08 MB / 0.9228 GB, free: 67.96 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-05/2.349, allocations: 15.23 kB / 0.9228 GB, free: 67.95 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001943/2.351, allocations: 0.4904 MB / 0.9233 GB, free: 67.95 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00195/2.353, allocations: 0.6786 MB / 0.9239 GB, free: 67.93 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001834/2.353, allocations: 35.33 kB / 0.924 GB, free: 67.93 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007599/2.361, allocations: 6.695 MB / 0.9305 GB, free: 65.42 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001424/2.362, allocations: 1.798 MB / 0.9323 GB, free: 64.08 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01183/2.374, allocations: 8.375 MB / 0.9404 GB, free: 61.56 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002284/2.376, allocations: 0.7849 MB / 0.9412 GB, free: 61.07 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005815/2.377, allocations: 12.81 kB / 0.9412 GB, free: 61.07 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001903/2.379, allocations: 161.5 kB / 0.9414 GB, free: 61.07 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004315/2.379, allocations: 219.8 kB / 0.9416 GB, free: 61.03 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001752/2.379, allocations: 84.19 kB / 0.9417 GB, free: 61.02 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.003795/2.383, allocations: 2.01 MB / 0.9436 GB, free: 60.19 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.61e-07/2.383, allocations: 0 / 0.9436 GB, free: 60.19 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.007765/2.391, allocations: 1.18 MB / 0.9448 GB, free: 60.17 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 46 * Number of states: 1 ($STATESET1.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (238): * Single equations (assignments): 235 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * 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: 1 {(4,100.0%) 32} * Non-linear torn systems: 1 {3 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.01298/2.404, allocations: 11.91 MB / 0.9564 GB, free: 52.38 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.009382/2.413, allocations: 4.969 MB / 0.9613 GB, free: 50.21 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.492e-05/2.413, allocations: 0 / 0.9613 GB, free: 50.21 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004233/2.418, allocations: 2.401 MB / 0.9636 GB, free: 49.03 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005865/2.424, allocations: 0.7345 MB / 0.9643 GB, free: 48.83 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05252/2.476, allocations: 12.34 MB / 0.9764 GB, free: 43.84 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01437/2.491, allocations: 4.61 MB / 0.9809 GB, free: 41.46 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.01059/2.501, allocations: 1.34 MB / 0.9822 GB, free: 40.56 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008253/2.51, allocations: 2.53 MB / 0.9847 GB, free: 38.22 MB / 458.7 MB Notification: Performance of SimCode: time 3.707e-06/2.51, allocations: 0 / 0.9847 GB, free: 38.22 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5508/3.061, allocations: 95.9 MB / 1.078 GB, free: 67.94 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002235/3.061, allocations: 217.3 kB / 1.079 GB, free: 67.66 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.009/8.069, allocations: 0.9375 kB / 1.079 GB, free: 67.66 MB / 474.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.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_OpenCircuit_res.mat does not exist to compare? outputFormat=mat