Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.0009867/0.0009868, allocations: 182 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.239/1.239, allocations: 205.4 MB / 223.1 MB, free: 9.129 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.0007933/0.0007933, allocations: 92.16 kB / 271.5 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002577/0.0002578, allocations: 8 kB / 328.4 MB, free: 15.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1781/0.1784, allocations: 47.56 MB / 375.9 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1186/0.297, allocations: 119.5 MB / 495.4 MB, free: 9.066 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002211/0.2973, allocations: 91.94 kB / 495.5 MB, free: 8.977 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4637/0.761, allocations: 160.5 MB / 0.6407 GB, free: 6.352 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.096e-06/0.761, allocations: 0 / 0.6407 GB, free: 6.352 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002453/0.7613, allocations: 99.88 kB / 0.6407 GB, free: 6.254 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.0106/0.7719, allocations: 4.379 MB / 0.645 GB, free: 1.797 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.085e-05/0.7719, allocations: 11.98 kB / 0.645 GB, free: 1.785 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001466/0.7734, allocations: 0.6064 MB / 0.6456 GB, free: 1.164 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004601/0.778, allocations: 0.9236 MB / 0.6465 GB, free: 240 kB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1798/0.9578, allocations: 3.832 MB / 0.6503 GB, free: 58.89 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001513/0.958, allocations: 307.5 kB / 0.6506 GB, free: 58.88 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005056/0.9585, allocations: 398.3 kB / 0.6509 GB, free: 58.88 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007034/0.9655, allocations: 5.14 MB / 0.656 GB, free: 58.37 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.237e-05/0.9656, allocations: 4.5 kB / 0.656 GB, free: 58.37 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00033/0.966, allocations: 168.2 kB / 0.6561 GB, free: 58.37 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001133/0.9661, allocations: 180.2 kB / 0.6563 GB, free: 58.36 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00623/0.9723, allocations: 4.21 MB / 0.6604 GB, free: 58.31 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0221/0.9945, allocations: 16.9 MB / 0.6769 GB, free: 54.81 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005228/0.9997, allocations: 8.417 MB / 0.6851 GB, free: 48.48 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005725/1.005, allocations: 4.236 MB / 0.6893 GB, free: 47.36 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.795e-05/1.006, allocations: 58.53 kB / 0.6893 GB, free: 47.32 MB / 410.7 MB Notification: Performance of pre-optimization done (n=167): time 3.066e-06/1.006, allocations: 0 / 0.6893 GB, free: 47.32 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.01432/1.02, allocations: 8.229 MB / 0.6974 GB, free: 45.2 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.728e-05/1.02, allocations: 75.95 kB / 0.6974 GB, free: 45.14 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002626/1.023, allocations: 1.982 MB / 0.6994 GB, free: 44.36 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002448/1.023, allocations: 60.08 kB / 0.6994 GB, free: 44.3 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009667/1.024, allocations: 1.82 MB / 0.7012 GB, free: 42.91 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005349/1.024, allocations: 0.6788 MB / 0.7019 GB, free: 42.38 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001163/1.024, allocations: 56.5 kB / 0.7019 GB, free: 42.34 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001292/1.025, allocations: 402.7 kB / 0.7023 GB, free: 42 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001498/1.026, allocations: 0.9923 MB / 0.7033 GB, free: 41.62 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001641/1.028, allocations: 1.68 MB / 0.7049 GB, free: 40.4 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00172/1.029, allocations: 1.288 MB / 0.7062 GB, free: 39.85 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.161e-05/1.03, allocations: 7 kB / 0.7062 GB, free: 39.85 MB / 410.7 MB Notification: Performance of matching and sorting (n=307) (initialization): time 0.004968/1.035, allocations: 3.401 MB / 0.7095 GB, free: 38.58 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.123e-05/1.035, allocations: 15.44 kB / 0.7095 GB, free: 38.58 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.187e-05/1.035, allocations: 23.31 kB / 0.7095 GB, free: 38.58 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001067/1.036, allocations: 470.3 kB / 0.71 GB, free: 38.45 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001988/1.038, allocations: 0.5595 MB / 0.7105 GB, free: 38.43 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005632/1.043, allocations: 4.995 MB / 0.7154 GB, free: 35.18 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002281/1.046, allocations: 121.5 kB / 0.7155 GB, free: 35.14 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003239/1.046, allocations: 102.3 kB / 0.7156 GB, free: 35.12 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.002301/1.048, allocations: 1.229 MB / 0.7168 GB, free: 34.47 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005747/1.049, allocations: 253.4 kB / 0.7171 GB, free: 34.34 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.004888/1.054, allocations: 2.993 MB / 0.72 GB, free: 32.98 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.357e-05/1.054, allocations: 24.11 kB / 0.72 GB, free: 32.98 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.172e-05/1.054, allocations: 7.531 kB / 0.72 GB, free: 32.98 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.582e-05/1.054, allocations: 11.66 kB / 0.72 GB, free: 32.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[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.01287/1.067, allocations: 6.715 MB / 0.7266 GB, free: 29.97 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.023e-05/1.067, allocations: 3.312 kB / 0.7266 GB, free: 29.97 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001632/1.068, allocations: 373.9 kB / 0.7269 GB, free: 29.96 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00104/1.069, allocations: 470.9 kB / 0.7274 GB, free: 29.83 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002023/1.07, allocations: 54.25 kB / 0.7275 GB, free: 29.8 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005895/1.076, allocations: 6.329 MB / 0.7336 GB, free: 25.19 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/1.076, allocations: 3.625 kB / 0.7336 GB, free: 25.19 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.006229/1.082, allocations: 4.46 MB / 0.738 GB, free: 23 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001382/1.083, allocations: 0.5509 MB / 0.7385 GB, free: 22.62 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006105/1.084, allocations: 44.81 kB / 0.7386 GB, free: 22.59 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001527/1.085, allocations: 97.69 kB / 0.7387 GB, free: 22.57 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002984/1.086, allocations: 150.1 kB / 0.7388 GB, free: 22.54 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001217/1.086, allocations: 52.42 kB / 0.7389 GB, free: 22.53 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00263/1.088, allocations: 1.514 MB / 0.7403 GB, free: 21.93 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.61e-07/1.089, allocations: 0 / 0.7403 GB, free: 21.93 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00316/1.092, allocations: 0.7946 MB / 0.7411 GB, free: 21.84 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.006583/1.098, allocations: 5.659 MB / 0.7466 GB, free: 18.74 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004152/1.102, allocations: 2.922 MB / 0.7495 GB, free: 17.56 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.059e-06/1.102, allocations: 3.062 kB / 0.7495 GB, free: 17.56 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002281/1.105, allocations: 1.709 MB / 0.7512 GB, free: 16.48 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002597/1.107, allocations: 0.5594 MB / 0.7517 GB, free: 16.05 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05229/1.16, allocations: 36.51 MB / 0.7874 GB, free: 14.43 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003437/1.163, allocations: 2.792 MB / 0.7901 GB, free: 12.27 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002499/1.166, allocations: 0.5824 MB / 0.7907 GB, free: 11.87 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002471/1.168, allocations: 1.481 MB / 0.7921 GB, free: 10.5 MB / 442.7 MB Notification: Performance of SimCode: time 6.01e-07/1.168, allocations: 0 / 0.7921 GB, free: 10.5 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2592/1.427, allocations: 65.69 MB / 0.8563 GB, free: 79.47 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001507/1.428, allocations: 222 kB / 0.8565 GB, free: 79.22 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.763/5.191, allocations: 0 / 0.8565 GB, free: 79.22 MB / 442.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_DOL_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_DOL.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.pipe 2>&1)