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_OpenCircuit.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_OpenCircuit,fileNamePrefix="Modelica_3_2_3_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_3_2_3_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 3.2.3+maint.om/package.mo): time 0.0009271/0.0009272, allocations: 181.3 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.354/1.354, allocations: 205.4 MB / 223.1 MB, free: 9.125 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.0008729/0.0008728, allocations: 104 kB / 271.5 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002705/0.0002708, allocations: 4 kB / 328.4 MB, free: 15.41 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2452/0.2455, allocations: 47.56 MB / 375.9 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3683/0.6139, allocations: 149 MB / 0.5127 GB, free: 107.4 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002434/0.6142, allocations: 106.7 kB / 0.5128 GB, free: 107.4 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6207/1.235, allocations: 232.3 MB / 0.7396 GB, free: 50.57 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.334e-06/1.235, allocations: 0 / 0.7396 GB, free: 50.57 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004924/1.236, allocations: 168.9 kB / 0.7398 GB, free: 50.55 MB / 410.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.02406/1.26, allocations: 7.274 MB / 0.7469 GB, free: 44.75 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.483e-05/1.26, allocations: 8.031 kB / 0.7469 GB, free: 44.74 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004664/1.264, allocations: 1.155 MB / 0.748 GB, free: 43.59 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02064/1.285, allocations: 3.681 MB / 0.7516 GB, free: 39.92 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01372/1.299, allocations: 5.952 MB / 0.7574 GB, free: 33.99 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004978/1.299, allocations: 0.5214 MB / 0.7579 GB, free: 33.47 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002462/1.302, allocations: 0.6982 MB / 0.7586 GB, free: 32.79 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02391/1.326, allocations: 11.46 MB / 0.7698 GB, free: 21.13 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003126/1.326, allocations: 11.84 kB / 0.7698 GB, free: 21.12 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002051/1.328, allocations: 307.6 kB / 0.7701 GB, free: 20.83 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004595/1.329, allocations: 494.5 kB / 0.7706 GB, free: 20.34 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02034/1.349, allocations: 10.65 MB / 0.781 GB, free: 9.68 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2999/1.649, allocations: 38.31 MB / 0.8184 GB, free: 43.39 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01372/1.663, allocations: 18.47 MB / 0.8364 GB, free: 30.39 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02557/1.688, allocations: 13.71 MB / 0.8498 GB, free: 29.44 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.685e-05/1.688, allocations: 69.75 kB / 0.8499 GB, free: 29.4 MB / 426.7 MB Notification: Performance of pre-optimization done (n=404): time 6.262e-06/1.688, allocations: 0 / 0.8499 GB, free: 29.4 MB / 426.7 MB Notification: Performance of matching and sorting (n=420): time 0.04447/1.733, allocations: 22.48 MB / 0.8719 GB, free: 25.91 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00173/1.735, allocations: 1.969 MB / 0.8738 GB, free: 24.43 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004805/1.739, allocations: 2.971 MB / 0.8767 GB, free: 24.17 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001019/1.74, allocations: 84.14 kB / 0.8768 GB, free: 24.14 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001839/1.742, allocations: 3.145 MB / 0.8798 GB, free: 22.51 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001676/1.744, allocations: 1.417 MB / 0.8812 GB, free: 21.61 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004175/1.744, allocations: 106 kB / 0.8813 GB, free: 21.61 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003587/1.745, allocations: 0.5196 MB / 0.8818 GB, free: 21.3 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004204/1.749, allocations: 2.911 MB / 0.8847 GB, free: 20.26 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005133/1.754, allocations: 4.897 MB / 0.8894 GB, free: 16.52 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005709/1.76, allocations: 3.79 MB / 0.8931 GB, free: 14.89 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.141e-05/1.76, allocations: 17.25 kB / 0.8932 GB, free: 14.89 MB / 426.7 MB Notification: Performance of matching and sorting (n=720) (initialization): time 0.01704/1.777, allocations: 9.441 MB / 0.9024 GB, free: 11.18 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.45e-05/1.777, allocations: 30.97 kB / 0.9024 GB, free: 11.18 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001579/1.777, allocations: 67.06 kB / 0.9025 GB, free: 11.18 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004749/1.782, allocations: 2.48 MB / 0.9049 GB, free: 10.46 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004007/1.786, allocations: 1.063 MB / 0.9059 GB, free: 10.42 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006062/1.792, allocations: 5.417 MB / 0.9112 GB, free: 7.484 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00522/1.797, allocations: 319.7 kB / 0.9115 GB, free: 7.367 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001128/1.799, allocations: 267.6 kB / 0.9118 GB, free: 7.324 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 297 * 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 (564): * Single equations (assignments): 542 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 18 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * 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: 0 * Non-linear torn systems: 2 {6 9,11 79} Notification: Performance of prepare postOptimizeDAE: time 0.005478/1.804, allocations: 2.5 MB / 0.9142 GB, free: 6.086 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001493/1.806, allocations: 424.2 kB / 0.9146 GB, free: 5.867 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01321/1.819, allocations: 7.909 MB / 0.9224 GB, free: 2.43 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.247e-05/1.819, allocations: 103.5 kB / 0.9225 GB, free: 2.383 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.514e-05/1.819, allocations: 0 / 0.9225 GB, free: 2.383 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.463e-05/1.819, allocations: 19.97 kB / 0.9225 GB, free: 2.383 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03624/1.855, allocations: 19.57 MB / 0.9416 GB, free: 5.699 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.947e-05/1.855, allocations: 4 kB / 0.9416 GB, free: 5.695 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002423/1.858, allocations: 0.5391 MB / 0.9421 GB, free: 5.281 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004876/1.863, allocations: 2.454 MB / 0.9445 GB, free: 3.266 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007045/1.863, allocations: 97.27 kB / 0.9446 GB, free: 3.184 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009716/1.873, allocations: 7.316 MB / 0.9518 GB, free: 12.84 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001822/1.875, allocations: 1.903 MB / 0.9536 GB, free: 10.89 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01994/1.895, allocations: 12.54 MB / 0.9659 GB, free: 15.93 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003773/1.899, allocations: 1.082 MB / 0.9669 GB, free: 14.93 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001245/1.9, allocations: 71.66 kB / 0.967 GB, free: 14.87 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00307/1.903, allocations: 207.8 kB / 0.9672 GB, free: 14.72 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009293/1.904, allocations: 319.9 kB / 0.9675 GB, free: 14.52 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003597/1.904, allocations: 123.7 kB / 0.9676 GB, free: 14.41 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.004417/1.909, allocations: 2.189 MB / 0.9697 GB, free: 12.59 MB / 474.7 MB Notification: Performance of sort global known variables: time 7.11e-07/1.909, allocations: 4 kB / 0.9697 GB, free: 12.58 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.007462/1.916, allocations: 1.377 MB / 0.9711 GB, free: 11.21 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * Number of states: 1 ($STATESET1.x) * 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 (286): * Single equations (assignments): 264 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 18 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * 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: 0 * Non-linear torn systems: 3 {3 3,6 9,11 79} Notification: Performance of Backend phase and start with SimCode phase: time 0.2696/2.186, allocations: 15.61 MB / 0.9863 GB, free: 102.2 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01209/2.198, allocations: 7.344 MB / 0.9935 GB, free: 101.9 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.392e-05/2.198, allocations: 0 / 0.9935 GB, free: 101.9 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006986/2.205, allocations: 3.663 MB / 0.9971 GB, free: 101.7 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004894/2.21, allocations: 0.8818 MB / 0.9979 GB, free: 101.7 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09906/2.309, allocations: 89.04 MB / 1.085 GB, free: 41.16 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008862/2.318, allocations: 4.672 MB / 1.089 GB, free: 40.24 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.005118/2.323, allocations: 1.173 MB / 1.091 GB, free: 40.09 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004726/2.328, allocations: 2.551 MB / 1.093 GB, free: 39.15 MB / 474.7 MB Notification: Performance of SimCode: time 5.571e-06/2.328, allocations: 3.719 kB / 1.093 GB, free: 39.15 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3808/2.709, allocations: 133.6 MB / 1.224 GB, free: 100 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001529/2.709, allocations: 273 kB / 1.224 GB, free: 99.65 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.945/7.655, allocations: 11.84 kB / 1.224 GB, free: 99.64 MB / 474.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.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_OpenCircuit_res.mat does not exist to compare? outputFormat=mat