Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.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.FundamentalWave.Examples.BasicMachines.SMEE_DOL,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_DOL",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.002088/0.002087, allocations: 186.3 kB / 16.41 MB, free: 5.727 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.944/1.944, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.00117/0.001169, allocations: 95.28 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003924/0.0003925, allocations: 15.98 kB / 327.1 MB, free: 80 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3285/0.329, allocations: 47.56 MB / 374.6 MB, free: 45.28 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.194/0.523, allocations: 119.5 MB / 494.1 MB, free: 9.047 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003193/0.5234, allocations: 91.95 kB / 494.2 MB, free: 8.957 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8272/1.351, allocations: 160.5 MB / 0.6394 GB, free: 6.262 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.575e-06/1.351, allocations: 0 / 0.6394 GB, free: 6.262 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004574/1.351, allocations: 99.88 kB / 0.6395 GB, free: 6.164 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: 1051 * Number of variables: 1051 Notification: Performance of Generate backend data structure: time 0.0202/1.371, allocations: 4.372 MB / 0.6438 GB, free: 1.715 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.533e-05/1.371, allocations: 8.031 kB / 0.6438 GB, free: 1.707 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003024/1.374, allocations: 0.6182 MB / 0.6444 GB, free: 1.074 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008209/1.383, allocations: 0.9236 MB / 0.6453 GB, free: 148 kB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3065/1.689, allocations: 3.831 MB / 0.649 GB, free: 58.54 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003935/1.69, allocations: 303 kB / 0.6493 GB, free: 58.53 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001588/1.691, allocations: 406.3 kB / 0.6497 GB, free: 58.53 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01681/1.708, allocations: 5.138 MB / 0.6547 GB, free: 58.02 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000216/1.708, allocations: 6.125 kB / 0.6547 GB, free: 58.02 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001188/1.71, allocations: 172.9 kB / 0.6549 GB, free: 58.02 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002139/1.71, allocations: 169.8 kB / 0.6551 GB, free: 58.01 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0145/1.724, allocations: 4.214 MB / 0.6592 GB, free: 57.96 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04419/1.769, allocations: 16.9 MB / 0.6757 GB, free: 54.46 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01078/1.779, allocations: 8.415 MB / 0.6839 GB, free: 48.12 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01121/1.791, allocations: 4.232 MB / 0.688 GB, free: 47 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.641e-05/1.791, allocations: 60.78 kB / 0.6881 GB, free: 46.96 MB / 410.7 MB Notification: Performance of pre-optimization done (n=167): time 5.2e-06/1.791, allocations: 0 / 0.6881 GB, free: 46.96 MB / 410.7 MB Warning: The linear system: 1 : 3.0 * smee.stator.zeroInductor.i0 = smee.is[1] + smee.is[2] + smee.is[3] 2 : smee.is[1] + smee.is[2] + smee.is[3] = 0.0 [ -1.0 , -1.0 ; 1.0 , 1.0 ] * [ smee.is[1] ; smee.is[2] ] = [ smee.is[3] + (-3.0) * smee.stator.zeroInductor.i0 ; -smee.is[3] ] might be structurally or numerically singular for variable smee.is[2] since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of matching and sorting (n=200): time 0.0269/1.818, allocations: 8.226 MB / 0.6961 GB, free: 44.91 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.511e-05/1.818, allocations: 74.91 kB / 0.6962 GB, free: 44.85 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004418/1.822, allocations: 1.983 MB / 0.6981 GB, free: 44.06 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003983/1.823, allocations: 59.39 kB / 0.6982 GB, free: 44.01 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001197/1.824, allocations: 1.723 MB / 0.6999 GB, free: 42.62 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008168/1.825, allocations: 0.6849 MB / 0.7005 GB, free: 42.09 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002387/1.825, allocations: 46.81 kB / 0.7006 GB, free: 42.06 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001675/1.825, allocations: 412.7 kB / 0.701 GB, free: 41.7 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00269/1.828, allocations: 0.995 MB / 0.7019 GB, free: 41.32 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003165/1.831, allocations: 1.673 MB / 0.7036 GB, free: 40.11 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003479/1.835, allocations: 1.294 MB / 0.7048 GB, free: 39.55 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.682e-05/1.835, allocations: 7.531 kB / 0.7048 GB, free: 39.55 MB / 410.7 MB Notification: Performance of matching and sorting (n=307) (initialization): time 0.00871/1.843, allocations: 3.244 MB / 0.708 GB, free: 38.37 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.991e-05/1.843, allocations: 14.78 kB / 0.708 GB, free: 38.37 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.413e-05/1.844, allocations: 23.12 kB / 0.7081 GB, free: 38.37 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001803/1.845, allocations: 466.8 kB / 0.7085 GB, free: 38.23 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004066/1.849, allocations: 0.5582 MB / 0.709 GB, free: 38.21 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009604/1.859, allocations: 5.003 MB / 0.7139 GB, free: 34.97 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003333/1.862, allocations: 127.7 kB / 0.714 GB, free: 34.92 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004883/1.863, allocations: 102.1 kB / 0.7141 GB, free: 34.91 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 95 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (270): * Single equations (assignments): 268 * 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: 1 * 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,81.2%) 33} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003534/1.867, allocations: 1.226 MB / 0.7153 GB, free: 34.26 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007874/1.867, allocations: 251.7 kB / 0.7156 GB, free: 34.13 MB / 410.7 MB Warning: The linear system: 1 : 3.0 * smee.stator.zeroInductor.i0 = smee.is[1] + smee.is[2] + smee.is[3] 2 : smee.is[1] + smee.is[2] + smee.is[3] = 0.0 [ -1.0 , -1.0 ; 1.0 , 1.0 ] * [ smee.is[2] ; smee.is[1] ] = [ smee.is[3] + (-3.0) * smee.stator.zeroInductor.i0 ; -smee.is[3] ] might be structurally or numerically singular for variable smee.is[1] since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008523/1.876, allocations: 2.999 MB / 0.7185 GB, free: 32.77 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.189e-05/1.876, allocations: 21.84 kB / 0.7185 GB, free: 32.77 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.106e-05/1.876, allocations: 3.219 kB / 0.7185 GB, free: 32.77 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.597e-05/1.876, allocations: 16.56 kB / 0.7186 GB, free: 32.77 MB / 410.7 MB Warning: The linear system: 1 : 3.0 * smee.stator.zeroInductor.i0 = smee.is[1] + smee.is[2] + smee.is[3] 2 : smee.is[1] + smee.is[2] + smee.is[3] = 0.0 [ -1.0 , -1.0 ; 1.0 , 1.0 ] * [ smee.is[1] ; smee.is[2] ] = [ smee.is[3] + (-3.0) * smee.stator.zeroInductor.i0 ; -smee.is[3] ] might be structurally or numerically singular for variable smee.is[2] since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01806/1.894, allocations: 6.701 MB / 0.7251 GB, free: 29.76 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.524e-05/1.894, allocations: 3.938 kB / 0.7251 GB, free: 29.76 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003174/1.897, allocations: 373.9 kB / 0.7255 GB, free: 29.75 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001881/1.899, allocations: 472.7 kB / 0.7259 GB, free: 29.61 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003719/1.9, allocations: 46.11 kB / 0.7259 GB, free: 29.59 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01033/1.91, allocations: 6.335 MB / 0.7321 GB, free: 24.98 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.969e-06/1.91, allocations: 6.781 kB / 0.7321 GB, free: 24.98 MB / 410.7 MB Warning: The linear system: 1 : 3.0 * smee.stator.zeroInductor.i0 = smee.is[1] + smee.is[2] + smee.is[3] 2 : smee.is[1] + smee.is[2] + smee.is[3] = 0.0 [ -1.0 , -1.0 ; 1.0 , 1.0 ] * [ smee.is[2] ; smee.is[1] ] = [ smee.is[3] + (-3.0) * smee.stator.zeroInductor.i0 ; -smee.is[3] ] might be structurally or numerically singular for variable smee.is[1] since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01118/1.921, allocations: 4.456 MB / 0.7365 GB, free: 22.79 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001934/1.923, allocations: 0.5458 MB / 0.737 GB, free: 22.41 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007613/1.924, allocations: 41.47 kB / 0.7371 GB, free: 22.38 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002322/1.926, allocations: 105.5 kB / 0.7372 GB, free: 22.35 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004533/1.927, allocations: 144.2 kB / 0.7373 GB, free: 22.33 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001685/1.927, allocations: 56.48 kB / 0.7374 GB, free: 22.32 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003307/1.93, allocations: 1.512 MB / 0.7388 GB, free: 21.72 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.91e-07/1.93, allocations: 0 / 0.7388 GB, free: 21.72 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004094/1.934, allocations: 0.7981 MB / 0.7396 GB, free: 21.63 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (smee.is[3],smee.inertiaRotor.w,smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.stator.zeroInductor.i0,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,mechanicalSensor.flange_a.phi) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (164): * Single equations (assignments): 162 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,61.1%) 31,(1,100.0%) 1} * Non-linear torn systems: 0 Warning: The linear system: 1 : 3.0 * smee.stator.zeroInductor.i0 = smee.is[1] + smee.is[2] + smee.is[3] 2 : smee.is[1] + smee.is[2] + smee.is[3] = 0.0 [ -1.0 , -1.0 ; 1.0 , 1.0 ] * [ smee.is[2] ; smee.is[1] ] = [ smee.is[3] + (-3.0) * smee.stator.zeroInductor.i0 ; -smee.is[3] ] might be structurally or numerically singular for variable smee.is[1] since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of Backend phase and start with SimCode phase: time 0.01184/1.946, allocations: 5.673 MB / 0.7452 GB, free: 18.52 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.007235/1.954, allocations: 2.927 MB / 0.748 GB, free: 17.35 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.753e-06/1.954, allocations: 0 / 0.748 GB, free: 17.35 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00433/1.958, allocations: 1.703 MB / 0.7497 GB, free: 16.54 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00415/1.962, allocations: 0.5576 MB / 0.7502 GB, free: 16.13 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07167/2.034, allocations: 36.38 MB / 0.7858 GB, free: 14.47 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004401/2.038, allocations: 2.732 MB / 0.7884 GB, free: 12.36 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003866/2.042, allocations: 1.502 MB / 0.7899 GB, free: 10.97 MB / 442.7 MB Notification: Performance of SimCode: time 1.052e-06/2.042, allocations: 0 / 0.7899 GB, free: 10.97 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.963/6.005, allocations: 105.4 MB / 0.8928 GB, free: 60.39 MB / 442.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_DOL_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_DOL.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.pipe 2>&1)