Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Rectifier.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.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Rectifier,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Rectifier,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Rectifier",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.001671/0.001671, allocations: 175.9 kB / 8.347 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.569/1.569, allocations: 221.5 MB / 230.3 MB, free: 7.547 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.0008606/0.0008605, allocations: 104.8 kB / 281.2 MB, free: 5.273 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.806e-05/1.809e-05, allocations: 0 / 337.2 MB, free: 9.918 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1159/0.1159, allocations: 50.42 MB / 387.6 MB, free: 7.457 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4483/0.5643, allocations: 131.8 MB / 0.5072 GB, free: 10.87 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003206/0.5646, allocations: 96.78 kB / 0.5073 GB, free: 10.77 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5115/1.076, allocations: 94.94 MB / 0.6 GB, free: 94.82 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.944e-06/1.076, allocations: 0 / 0.6 GB, free: 94.82 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003389/1.077, allocations: 98.47 kB / 0.6001 GB, free: 94.8 MB / 426.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.01162/1.088, allocations: 3.748 MB / 0.6038 GB, free: 92.95 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.532e-05/1.088, allocations: 13.81 kB / 0.6038 GB, free: 92.94 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005871/1.094, allocations: 0.8976 MB / 0.6047 GB, free: 92.65 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009036/1.103, allocations: 3.608 MB / 0.6082 GB, free: 90.88 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001643/1.103, allocations: 120 kB / 0.6083 GB, free: 90.88 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001004/1.104, allocations: 220.6 kB / 0.6085 GB, free: 90.87 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007055/1.112, allocations: 3.498 MB / 0.6119 GB, free: 89.36 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00789/1.119, allocations: 4.039 MB / 0.6159 GB, free: 87.52 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.854e-05/1.12, allocations: 0 / 0.6159 GB, free: 87.52 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003149/1.12, allocations: 10.44 kB / 0.6159 GB, free: 87.52 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001296/1.12, allocations: 151.3 kB / 0.616 GB, free: 87.5 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02533/1.145, allocations: 15.31 MB / 0.631 GB, free: 75.1 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006007/1.151, allocations: 7.671 MB / 0.6385 GB, free: 66.56 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002171/1.154, allocations: 1.646 MB / 0.6401 GB, free: 64.93 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008584/1.162, allocations: 4.915 MB / 0.6449 GB, free: 59.89 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.78e-05/1.162, allocations: 60.5 kB / 0.6449 GB, free: 59.83 MB / 426.7 MB Notification: Performance of pre-optimization done (n=174): time 4.549e-06/1.162, allocations: 0 / 0.6449 GB, free: 59.83 MB / 426.7 MB Notification: Performance of matching and sorting (n=177): time 0.009898/1.172, allocations: 5.233 MB / 0.6501 GB, free: 54.5 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.19e-05/1.172, allocations: 176.2 kB / 0.6502 GB, free: 54.29 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003804/1.176, allocations: 1.575 MB / 0.6518 GB, free: 52.68 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001632/1.176, allocations: 25.7 kB / 0.6518 GB, free: 52.65 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001075/1.177, allocations: 1.7 MB / 0.6534 GB, free: 50.93 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004734/1.178, allocations: 0.5773 MB / 0.654 GB, free: 50.34 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001561/1.178, allocations: 0 / 0.654 GB, free: 50.34 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001587/1.178, allocations: 398.3 kB / 0.6544 GB, free: 49.95 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001104/1.179, allocations: 0.7619 MB / 0.6551 GB, free: 49.18 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001336/1.181, allocations: 1.39 MB / 0.6565 GB, free: 47.51 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002008/1.183, allocations: 1.157 MB / 0.6576 GB, free: 46.35 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.333e-05/1.183, allocations: 8 kB / 0.6576 GB, free: 46.34 MB / 426.7 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.004786/1.188, allocations: 2.875 MB / 0.6604 GB, free: 43.42 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001633/1.189, allocations: 7.722 MB / 0.668 GB, free: 35.11 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.803e-05/1.189, allocations: 23.98 kB / 0.668 GB, free: 35.09 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009761/1.19, allocations: 455.9 kB / 0.6684 GB, free: 34.62 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001679/1.192, allocations: 483.2 kB / 0.6689 GB, free: 34.15 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005795/1.198, allocations: 7.794 MB / 0.6765 GB, free: 25.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002141/1.2, allocations: 51.86 kB / 0.6766 GB, free: 25.85 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003734/1.2, allocations: 91.98 kB / 0.6766 GB, free: 25.76 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.349e-05/1.2, allocations: 5.406 kB / 0.6766 GB, free: 25.76 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004977/1.205, allocations: 2.614 MB / 0.6792 GB, free: 23.11 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.095e-05/1.205, allocations: 20 kB / 0.6792 GB, free: 23.09 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008941/1.206, allocations: 460.3 kB / 0.6797 GB, free: 22.62 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001656/1.208, allocations: 475.3 kB / 0.6801 GB, free: 22.16 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005728/1.214, allocations: 7.752 MB / 0.6877 GB, free: 13.95 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002232/1.216, allocations: 55.86 kB / 0.6877 GB, free: 13.89 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004338/1.217, allocations: 88 kB / 0.6878 GB, free: 13.8 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 85 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (252): * Single equations (assignments): 245 * 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 {(1,100.0%) 5} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0007763/1.217, allocations: 178.5 kB / 0.688 GB, free: 13.62 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.006084/1.223, allocations: 2.556 MB / 0.6905 GB, free: 11 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008968/1.224, allocations: 241.1 kB / 0.6907 GB, free: 10.77 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005165/1.23, allocations: 2.68 MB / 0.6933 GB, free: 8.023 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.342e-05/1.23, allocations: 16 kB / 0.6933 GB, free: 8.008 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.76e-05/1.23, allocations: 8 kB / 0.6934 GB, free: 8 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.993e-05/1.23, allocations: 7.969 kB / 0.6934 GB, free: 7.992 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01081/1.24, allocations: 5.376 MB / 0.6986 GB, free: 2.523 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.598e-06/1.24, allocations: 4 kB / 0.6986 GB, free: 2.52 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001099/1.242, allocations: 247.9 kB / 0.6989 GB, free: 2.277 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001388/1.243, allocations: 0.6255 MB / 0.6995 GB, free: 1.633 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001495/1.243, allocations: 24.11 kB / 0.6995 GB, free: 1.609 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01196/1.255, allocations: 12.09 MB / 0.7113 GB, free: 4.836 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.387e-05/1.255, allocations: 11.89 kB / 0.7113 GB, free: 4.824 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007225/1.262, allocations: 3.867 MB / 0.7151 GB, free: 0.8086 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001671/1.264, allocations: 482.7 kB / 0.7155 GB, free: 324 kB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008169/1.265, allocations: 12 kB / 0.7156 GB, free: 312 kB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001715/1.267, allocations: 63.88 kB / 0.7156 GB, free: 248 kB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004384/1.267, allocations: 137.7 kB / 0.7157 GB, free: 108 kB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001488/1.267, allocations: 44 kB / 0.7158 GB, free: 64 kB / 442.7 MB Notification: Performance of sorting global known variables: time 0.3028/1.57, allocations: 1.16 MB / 0.7169 GB, free: 98.19 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.91e-07/1.57, allocations: 0.9375 kB / 0.7169 GB, free: 98.19 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.008684/1.579, allocations: 1.168 MB / 0.7181 GB, free: 98.19 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 12 (smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.excitation.electroMagneticConverter.Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (124): * Single equations (assignments): 118 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 5,(1,100.0%) 8,(2,100.0%) 15} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.007933/1.587, allocations: 5.202 MB / 0.7231 GB, free: 96.61 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00695/1.594, allocations: 4.474 MB / 0.7275 GB, free: 95.45 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.656e-06/1.594, allocations: 0.875 kB / 0.7275 GB, free: 95.45 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002865/1.597, allocations: 1.814 MB / 0.7293 GB, free: 94.81 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003444/1.6, allocations: 0.4892 MB / 0.7298 GB, free: 94.8 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01537/1.616, allocations: 6.29 MB / 0.7359 GB, free: 93.4 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002971/1.619, allocations: 2.586 MB / 0.7384 GB, free: 92.59 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003481/1.622, allocations: 0.7635 MB / 0.7392 GB, free: 92.5 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001914/1.624, allocations: 1.346 MB / 0.7405 GB, free: 92.49 MB / 442.7 MB Notification: Performance of SimCode: time 1.373e-06/1.624, allocations: 0 / 0.7405 GB, free: 92.49 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1609/1.785, allocations: 63.25 MB / 0.8023 GB, free: 65.23 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002583/1.785, allocations: 189.2 kB / 0.8024 GB, free: 65.04 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.126/5.911, allocations: 4 kB / 0.8024 GB, free: 65.04 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Rectifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Rectifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Rectifier.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Rectifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Rectifier_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Rectifier_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Rectifier.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Rectifier.pipe 2>&1)