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.SMEE_Generator.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.SMEE_Generator,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator",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.001176/0.001176, allocations: 175.1 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.478/1.478, allocations: 221.3 MB / 235.5 MB, free: 2.957 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.001286/0.001286, allocations: 97.89 kB / 286.5 MB, free: 232 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.027e-05/3.031e-05, allocations: 0 / 344 MB, free: 4.195 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1269/0.1269, allocations: 50.42 MB / 394.4 MB, free: 1.734 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8026/0.9296, allocations: 167.6 MB / 0.5488 GB, free: 125.3 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003683/0.93, allocations: 104.9 kB / 0.5489 GB, free: 125.3 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.487/2.417, allocations: 391.5 MB / 0.9312 GB, free: 46.38 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.575e-06/2.417, allocations: 0 / 0.9312 GB, free: 46.38 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.001006/2.418, allocations: 261.3 kB / 0.9314 GB, free: 46.35 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3043 * Number of variables: 3043 Notification: Performance of Generate backend data structure: time 0.0411/2.459, allocations: 10.15 MB / 0.9413 GB, free: 43.09 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.778e-05/2.459, allocations: 13.59 kB / 0.9414 GB, free: 43.09 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009268/2.468, allocations: 1.738 MB / 0.9431 GB, free: 42.95 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02369/2.492, allocations: 3.732 MB / 0.9467 GB, free: 42.34 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0265/2.518, allocations: 8.888 MB / 0.9554 GB, free: 41.2 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009953/2.52, allocations: 0.8055 MB / 0.9562 GB, free: 41.18 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005378/2.525, allocations: 1.066 MB / 0.9572 GB, free: 41.17 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05004/2.575, allocations: 16.18 MB / 0.973 GB, free: 39.84 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006915/2.576, allocations: 18.45 kB / 0.973 GB, free: 39.83 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005726/2.581, allocations: 469.2 kB / 0.9735 GB, free: 39.83 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001078/2.583, allocations: 0.7102 MB / 0.9742 GB, free: 39.8 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03278/2.615, allocations: 13.42 MB / 0.9873 GB, free: 35.95 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1074/2.723, allocations: 55.51 MB / 1.041 GB, free: 1.051 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.4105/3.133, allocations: 21.18 MB / 1.062 GB, free: 47.09 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007081/3.141, allocations: 3.252 MB / 1.065 GB, free: 47.05 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01956/3.16, allocations: 9.628 MB / 1.075 GB, free: 45.91 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.239e-05/3.16, allocations: 70.58 kB / 1.075 GB, free: 45.87 MB / 490.7 MB Notification: Performance of pre-optimization done (n=314): time 6.643e-06/3.16, allocations: 0 / 1.075 GB, free: 45.87 MB / 490.7 MB Notification: Performance of matching and sorting (n=347): time 0.03288/3.193, allocations: 14.06 MB / 1.089 GB, free: 42.75 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003208/3.196, allocations: 2.914 MB / 1.091 GB, free: 41.16 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00842/3.205, allocations: 4.449 MB / 1.096 GB, free: 40.79 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008003/3.206, allocations: 84.11 kB / 1.096 GB, free: 40.76 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003352/3.209, allocations: 5.142 MB / 1.101 GB, free: 38.29 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001663/3.211, allocations: 1.219 MB / 1.102 GB, free: 37.54 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004194/3.211, allocations: 126.5 kB / 1.102 GB, free: 37.54 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003122/3.212, allocations: 0.553 MB / 1.103 GB, free: 37.22 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003919/3.215, allocations: 2.635 MB / 1.105 GB, free: 37.21 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005205/3.221, allocations: 5.333 MB / 1.11 GB, free: 33.86 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005943/3.227, allocations: 3.827 MB / 1.114 GB, free: 33.79 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.612e-05/3.227, allocations: 29.56 kB / 1.114 GB, free: 33.79 MB / 490.7 MB Notification: Performance of matching and sorting (n=811) (initialization): time 0.01762/3.244, allocations: 9.18 MB / 1.123 GB, free: 33.23 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001691/3.245, allocations: 44.16 kB / 1.123 GB, free: 33.23 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002398/3.245, allocations: 92.8 kB / 1.123 GB, free: 33.23 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002619/3.247, allocations: 0.9246 MB / 1.124 GB, free: 33.19 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005994/3.253, allocations: 1.467 MB / 1.126 GB, free: 33.19 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01248/3.266, allocations: 9.692 MB / 1.135 GB, free: 29.09 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009661/3.276, allocations: 496.3 kB / 1.136 GB, free: 29.06 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002277/3.278, allocations: 336.5 kB / 1.136 GB, free: 29.06 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 416 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (755): * Single equations (assignments): 745 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 4 * 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: 3 {(8,67.2%) 26,(2,100.0%) 8,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003695/3.282, allocations: 0.5162 MB / 1.136 GB, free: 28.89 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003032/3.285, allocations: 0.4959 MB / 1.137 GB, free: 28.63 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01709/3.302, allocations: 6.169 MB / 1.143 GB, free: 28.16 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009316/3.311, allocations: 5.115 MB / 1.148 GB, free: 27.2 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-05/3.311, allocations: 13.89 kB / 1.148 GB, free: 27.2 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.702e-05/3.311, allocations: 15.75 kB / 1.148 GB, free: 27.2 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04933/3.361, allocations: 21.43 MB / 1.169 GB, free: 17.93 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.051e-05/3.361, allocations: 7.938 kB / 1.169 GB, free: 17.93 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002512/3.363, allocations: 0.5826 MB / 1.169 GB, free: 17.91 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00299/3.366, allocations: 1.146 MB / 1.171 GB, free: 17.64 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004566/3.367, allocations: 88.88 kB / 1.171 GB, free: 17.59 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01468/3.382, allocations: 14.61 MB / 1.185 GB, free: 7.188 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002827/3.384, allocations: 2.813 MB / 1.188 GB, free: 5.027 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01472/3.399, allocations: 9.663 MB / 1.197 GB, free: 64 kB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00413/3.403, allocations: 1.04 MB / 1.198 GB, free: 15.41 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001948/3.405, allocations: 65.47 kB / 1.198 GB, free: 15.37 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004444/3.41, allocations: 253.3 kB / 1.198 GB, free: 15.32 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009598/3.411, allocations: 268.3 kB / 1.199 GB, free: 15.27 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003101/3.411, allocations: 105.4 kB / 1.199 GB, free: 15.25 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.008228/3.419, allocations: 3.284 MB / 1.202 GB, free: 14 MB / 0.4948 GB Notification: Performance of sort global known variables: time 6.21e-07/3.419, allocations: 0 / 1.202 GB, free: 14 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01168/3.431, allocations: 1.954 MB / 1.204 GB, free: 13.46 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 6 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],smee.stator.zeroInductor.i0,smeeQS.gamma,smeeQS.excitation.electroMagneticConverter.port_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (292): * Single equations (assignments): 283 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 8,(1,100.0%) 4,(1,100.0%) 8,(8,67.2%) 26} * Non-linear torn systems: 1 {5 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.02039/3.451, allocations: 11.76 MB / 1.215 GB, free: 2.68 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01489/3.466, allocations: 6.911 MB / 1.222 GB, free: 12.45 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.627e-05/3.466, allocations: 0 / 1.222 GB, free: 12.45 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.007912/3.474, allocations: 3.557 MB / 1.226 GB, free: 9.184 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008596/3.483, allocations: 1.068 MB / 1.227 GB, free: 8.352 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06608/3.549, allocations: 18.93 MB / 1.245 GB, free: 9.496 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01344/3.563, allocations: 6.774 MB / 1.252 GB, free: 4.445 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.007912/3.571, allocations: 1.846 MB / 1.254 GB, free: 3.238 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.3325/3.903, allocations: 4.1 MB / 1.258 GB, free: 91.37 MB / 0.5261 GB Notification: Performance of SimCode: time 1.302e-06/3.903, allocations: 1.594 kB / 1.258 GB, free: 91.37 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.234/4.137, allocations: 146.8 MB / 1.401 GB, free: 43.16 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000193/4.137, allocations: 237.1 kB / 1.401 GB, free: 42.83 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.636/11.77, allocations: 3.953 kB / 1.401 GB, free: 42.82 MB / 0.5261 GB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.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.SMEE_Generator_res.mat does not exist to compare? outputFormat=mat