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_Rectifier.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_Rectifier,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Rectifier,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Rectifier",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.001542/0.001542, allocations: 185.8 kB / 16.41 MB, free: 5.723 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.914/1.914, allocations: 205.4 MB / 222.5 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.001105/0.001104, allocations: 100.7 kB / 270.9 MB, free: 8.379 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003841/0.0003842, allocations: 12 kB / 327.1 MB, free: 104 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3144/0.3148, allocations: 47.56 MB / 374.6 MB, free: 45.34 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4716/0.7864, allocations: 131.4 MB / 0.4942 GB, free: 57.88 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002794/0.7867, allocations: 87.41 kB / 0.4943 GB, free: 57.88 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3138/1.101, allocations: 96.05 MB / 0.5881 GB, free: 17.54 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.806e-06/1.101, allocations: 3.938 kB / 0.5881 GB, free: 17.54 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000322/1.101, allocations: 91.88 kB / 0.5882 GB, free: 17.45 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 958 * Number of variables: 958 Notification: Performance of Generate backend data structure: time 0.01546/1.116, allocations: 4.194 MB / 0.5923 GB, free: 13.18 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.638e-05/1.117, allocations: 12.03 kB / 0.5923 GB, free: 13.17 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001627/1.118, allocations: 0.5103 MB / 0.5928 GB, free: 12.65 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006729/1.125, allocations: 0.9121 MB / 0.5937 GB, free: 11.73 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0121/1.137, allocations: 3.638 MB / 0.5972 GB, free: 8.039 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002095/1.137, allocations: 275.4 kB / 0.5975 GB, free: 7.77 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008737/1.138, allocations: 371.9 kB / 0.5979 GB, free: 7.406 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01134/1.15, allocations: 4.648 MB / 0.6024 GB, free: 2.621 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001392/1.15, allocations: 3.906 kB / 0.6024 GB, free: 2.617 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005395/1.15, allocations: 164 kB / 0.6026 GB, free: 2.457 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001656/1.15, allocations: 155.2 kB / 0.6027 GB, free: 2.305 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01094/1.161, allocations: 3.819 MB / 0.6064 GB, free: 14.48 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04035/1.202, allocations: 15.96 MB / 0.622 GB, free: 14.11 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01257/1.214, allocations: 7.915 MB / 0.6298 GB, free: 5.324 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01206/1.226, allocations: 4.367 MB / 0.634 GB, free: 0.8008 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.49e-05/1.227, allocations: 56.56 kB / 0.6341 GB, free: 0.7383 MB / 410.7 MB Notification: Performance of pre-optimization done (n=190): time 4.468e-06/1.227, allocations: 0 / 0.6341 GB, free: 0.7383 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=223): time 0.03075/1.257, allocations: 9.138 MB / 0.643 GB, free: 7.395 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001183/1.257, allocations: 180.2 kB / 0.6432 GB, free: 7.18 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0046/1.262, allocations: 1.933 MB / 0.6451 GB, free: 5.227 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003927/1.263, allocations: 65.7 kB / 0.6451 GB, free: 5.156 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001549/1.264, allocations: 1.568 MB / 0.6466 GB, free: 3.57 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001031/1.265, allocations: 0.7509 MB / 0.6474 GB, free: 2.809 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002595/1.265, allocations: 52 kB / 0.6474 GB, free: 2.758 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002614/1.266, allocations: 408 kB / 0.6478 GB, free: 2.352 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002877/1.269, allocations: 1.016 MB / 0.6488 GB, free: 1.332 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2865/1.555, allocations: 1.65 MB / 0.6504 GB, free: 77.83 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003357/1.558, allocations: 1.289 MB / 0.6517 GB, free: 77.81 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.452e-05/1.558, allocations: 7.75 kB / 0.6517 GB, free: 77.81 MB / 426.7 MB Notification: Performance of matching and sorting (n=326) (initialization): time 0.008512/1.567, allocations: 3.539 MB / 0.6551 GB, free: 77.68 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001321/1.568, allocations: 7.058 MB / 0.662 GB, free: 70.34 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.914e-05/1.568, allocations: 22.38 kB / 0.6621 GB, free: 70.34 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003095/1.572, allocations: 0.7942 MB / 0.6628 GB, free: 70.29 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003618/1.575, allocations: 0.494 MB / 0.6633 GB, free: 70.29 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0166/1.592, allocations: 11.33 MB / 0.6744 GB, free: 64.98 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003065/1.595, allocations: 108.2 kB / 0.6745 GB, free: 64.98 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002457/1.595, allocations: 103.9 kB / 0.6746 GB, free: 64.98 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.198e-05/1.595, allocations: 7.516 kB / 0.6746 GB, free: 64.98 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008181/1.603, allocations: 3.418 MB / 0.6779 GB, free: 64.87 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.065e-05/1.603, allocations: 18 kB / 0.6779 GB, free: 64.87 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002694/1.606, allocations: 0.7885 MB / 0.6787 GB, free: 64.82 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0034/1.61, allocations: 0.4899 MB / 0.6792 GB, free: 64.82 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01685/1.626, allocations: 11.38 MB / 0.6903 GB, free: 59.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001939/1.628, allocations: 97.41 kB / 0.6904 GB, free: 59.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002289/1.629, allocations: 101.4 kB / 0.6905 GB, free: 59.5 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 81 * Number of states: 0 () * Number of discrete variables: 7 (idealDiode1.idealDiode[1].off,idealDiode1.idealDiode[2].off,idealDiode1.idealDiode[3].off,idealDiode2.idealDiode[1].off,idealDiode2.idealDiode[2].off,idealDiode2.idealDiode[3].off,voltageController.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (263): * Single equations (assignments): 256 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * 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 {(5,80.0%) 32} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of prepare postOptimizeDAE: time 0.003046/1.632, allocations: 1.179 MB / 0.6916 GB, free: 59.31 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007991/1.633, allocations: 267.4 kB / 0.6919 GB, free: 59.31 MB / 426.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.008555/1.641, allocations: 3.31 MB / 0.6951 GB, free: 58.94 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.946e-05/1.641, allocations: 21.81 kB / 0.6952 GB, free: 58.94 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.427e-05/1.641, allocations: 6.25 kB / 0.6952 GB, free: 58.94 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.054e-05/1.641, allocations: 10.69 kB / 0.6952 GB, free: 58.94 MB / 426.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 removeSimpleEquations (simulation): time 0.01632/1.658, allocations: 6.947 MB / 0.702 GB, free: 58.22 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-05/1.658, allocations: 0 / 0.702 GB, free: 58.22 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002674/1.66, allocations: 333 kB / 0.7023 GB, free: 58.22 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002844/1.663, allocations: 0.8008 MB / 0.7031 GB, free: 58.18 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001952/1.663, allocations: 60.89 kB / 0.7031 GB, free: 58.18 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01729/1.681, allocations: 12.71 MB / 0.7155 GB, free: 48.86 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/1.681, allocations: 3.656 kB / 0.7155 GB, free: 48.86 MB / 426.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.01061/1.691, allocations: 4.875 MB / 0.7203 GB, free: 46.45 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001674/1.693, allocations: 0.5714 MB / 0.7208 GB, free: 46.06 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005364/1.694, allocations: 46.84 kB / 0.7209 GB, free: 46.03 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002099/1.696, allocations: 98.55 kB / 0.721 GB, free: 46 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004881/1.696, allocations: 169.5 kB / 0.7211 GB, free: 45.97 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000169/1.696, allocations: 54.91 kB / 0.7212 GB, free: 45.96 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002984/1.699, allocations: 1.478 MB / 0.7226 GB, free: 45.37 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.41e-07/1.699, allocations: 6.203 kB / 0.7226 GB, free: 45.37 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006207/1.706, allocations: 1.444 MB / 0.7241 GB, free: 45.23 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 12 (smee.is[3],smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.stator.zeroInductor.i0,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,speed.phi,speed.w,voltageController.I.y,capacitor1.v,capacitor2.v,filter.x[1],filter.x[2]) * Number of discrete variables: 6 (idealDiode1.idealDiode[1].off,idealDiode1.idealDiode[2].off,idealDiode1.idealDiode[3].off,idealDiode2.idealDiode[1].off,idealDiode2.idealDiode[2].off,idealDiode2.idealDiode[3].off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (162): * Single equations (assignments): 157 * 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: 5 * 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: 3 {2 7,2 7,2 7} 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.01162/1.717, allocations: 6.206 MB / 0.7301 GB, free: 41.84 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01251/1.73, allocations: 5.983 MB / 0.736 GB, free: 38.88 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.544e-06/1.73, allocations: 0 / 0.736 GB, free: 38.88 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004641/1.734, allocations: 2.215 MB / 0.7381 GB, free: 37.64 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004274/1.739, allocations: 0.6453 MB / 0.7388 GB, free: 37.45 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02371/1.763, allocations: 22.77 MB / 0.761 GB, free: 18.85 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002764/1.765, allocations: 2.606 MB / 0.7635 GB, free: 17.77 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002785/1.768, allocations: 1.434 MB / 0.7649 GB, free: 16.6 MB / 426.7 MB Notification: Performance of SimCode: time 1.293e-06/1.768, allocations: 2.188 kB / 0.7649 GB, free: 16.6 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.318/6.086, allocations: 154.6 MB / 0.9159 GB, free: 42.26 MB / 442.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Rectifier.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Rectifier.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Rectifier.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Rectifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Rectifier_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Rectifier_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Rectifier.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Rectifier.pipe 2>&1)