Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Rectifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Rectifier,fileNamePrefix="Modelica_trunk_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_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Rectifier",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001057/0.001057, allocations: 199.7 kB / 8.538 MB, free: 1.801 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.138/1.138, allocations: 225.5 MB / 234.4 MB, free: 3.418 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00097/0.0009699, allocations: 97.11 kB / 286.3 MB, free: 5.266 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09108/0.09208, allocations: 56.92 MB / 343.3 MB, free: 8.629 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08035/0.1724, allocations: 51.47 MB / 394.7 MB, free: 5.102 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2439/0.4164, allocations: 132.8 MB / 0.5152 GB, free: 9.414 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002181/0.4167, allocations: 90 kB / 0.5153 GB, free: 9.367 MB / 394.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.3554/0.7721, allocations: 102.3 MB / 0.6152 GB, free: 76.43 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.122e-05/0.7721, allocations: 9.406 kB / 0.6152 GB, free: 76.43 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005005/0.7771, allocations: 0.9157 MB / 0.6161 GB, free: 76.19 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007641/0.7848, allocations: 3.645 MB / 0.6197 GB, free: 75.2 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001126/0.7849, allocations: 121.6 kB / 0.6198 GB, free: 75.2 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000608/0.7855, allocations: 221.9 kB / 0.62 GB, free: 75.19 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005867/0.7914, allocations: 3.554 MB / 0.6234 GB, free: 73.69 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006174/0.7976, allocations: 4.076 MB / 0.6274 GB, free: 71.85 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.302e-05/0.7977, allocations: 3.875 kB / 0.6274 GB, free: 71.85 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003048/0.798, allocations: 3.906 kB / 0.6274 GB, free: 71.84 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.833e-05/0.7981, allocations: 162.3 kB / 0.6276 GB, free: 71.83 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01899/0.8171, allocations: 15.49 MB / 0.6427 GB, free: 63.11 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001869/0.819, allocations: 1.438 MB / 0.6441 GB, free: 62.53 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00243/0.8215, allocations: 1.773 MB / 0.6459 GB, free: 61.9 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00763/0.8291, allocations: 5.909 MB / 0.6516 GB, free: 58.26 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.524e-05/0.8291, allocations: 61.39 kB / 0.6517 GB, free: 58.2 MB / 442.7 MB Notification: Performance of pre-optimization done (n=211): time 3.316e-06/0.8292, allocations: 0 / 0.6517 GB, free: 58.2 MB / 442.7 MB Notification: Performance of matching and sorting (n=214): time 0.009161/0.8383, allocations: 5.61 MB / 0.6572 GB, free: 55.49 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.269e-05/0.8384, allocations: 176.9 kB / 0.6573 GB, free: 55.3 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002162/0.8406, allocations: 1.592 MB / 0.6589 GB, free: 54.62 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001029/0.8407, allocations: 25.7 kB / 0.6589 GB, free: 54.59 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004713/0.8411, allocations: 1.325 MB / 0.6602 GB, free: 53.64 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003703/0.8415, allocations: 0.6922 MB / 0.6609 GB, free: 53.09 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001231/0.8417, allocations: 0 / 0.6609 GB, free: 53.09 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000114/0.8418, allocations: 401.7 kB / 0.6613 GB, free: 52.74 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001282/0.8431, allocations: 0.9326 MB / 0.6622 GB, free: 52.36 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001421/0.8445, allocations: 1.566 MB / 0.6637 GB, free: 51.17 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001805/0.8463, allocations: 1.233 MB / 0.6649 GB, free: 50.68 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.355e-06/0.8463, allocations: 7.719 kB / 0.6649 GB, free: 50.68 MB / 442.7 MB Notification: Performance of matching and sorting (n=320) (initialization): time 0.004361/0.8507, allocations: 3.154 MB / 0.668 GB, free: 49.4 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008919/0.8516, allocations: 7.635 MB / 0.6755 GB, free: 41.24 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.037e-05/0.8516, allocations: 19.47 kB / 0.6755 GB, free: 41.24 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009459/0.8526, allocations: 481.7 kB / 0.6759 GB, free: 41.08 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001973/0.8546, allocations: 0.5382 MB / 0.6765 GB, free: 41.02 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005241/0.8598, allocations: 7.604 MB / 0.6839 GB, free: 34.88 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001581/0.8614, allocations: 52.09 kB / 0.6839 GB, free: 34.87 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001813/0.8616, allocations: 101.9 kB / 0.684 GB, free: 34.85 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.891e-06/0.8616, allocations: 7.312 kB / 0.684 GB, free: 34.84 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004072/0.8657, allocations: 2.855 MB / 0.6868 GB, free: 33.73 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.497e-05/0.8657, allocations: 25.23 kB / 0.6869 GB, free: 33.73 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008486/0.8666, allocations: 483.8 kB / 0.6873 GB, free: 33.56 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001932/0.8685, allocations: 0.5284 MB / 0.6878 GB, free: 33.51 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005015/0.8736, allocations: 7.585 MB / 0.6952 GB, free: 27.38 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00137/0.875, allocations: 39.81 kB / 0.6953 GB, free: 27.38 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001774/0.8751, allocations: 107.6 kB / 0.6954 GB, free: 27.35 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 84 * 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 (288): * Single equations (assignments): 281 * 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.0003464/0.8755, allocations: 178 kB / 0.6955 GB, free: 27.19 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003224/0.8758, allocations: 244.5 kB / 0.6958 GB, free: 27.07 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004911/0.8807, allocations: 2.993 MB / 0.6987 GB, free: 25.79 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.486e-05/0.8808, allocations: 23.58 kB / 0.6987 GB, free: 25.78 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.809e-06/0.8808, allocations: 6.625 kB / 0.6987 GB, free: 25.78 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.217e-05/0.8808, allocations: 10.5 kB / 0.6987 GB, free: 25.78 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008875/0.8897, allocations: 6.177 MB / 0.7048 GB, free: 22.91 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.362e-06/0.8897, allocations: 0 / 0.7048 GB, free: 22.91 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001392/0.8911, allocations: 308.1 kB / 0.7051 GB, free: 22.88 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001488/0.8926, allocations: 0.6589 MB / 0.7057 GB, free: 22.65 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001391/0.8928, allocations: 24.48 kB / 0.7057 GB, free: 22.64 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009299/0.9021, allocations: 11.89 MB / 0.7173 GB, free: 11.75 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.9021, allocations: 7.906 kB / 0.7174 GB, free: 11.74 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005538/0.9076, allocations: 4.432 MB / 0.7217 GB, free: 7.598 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00669/0.9144, allocations: 6.211 MB / 0.7277 GB, free: 1.789 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009289/0.9153, allocations: 0.529 MB / 0.7283 GB, free: 1.293 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003625/0.9157, allocations: 15.52 kB / 0.7283 GB, free: 1.281 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001172/0.9168, allocations: 54.59 kB / 0.7283 GB, free: 1.238 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002138/0.9171, allocations: 121.8 kB / 0.7284 GB, free: 1.168 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001279/0.9172, allocations: 59.52 kB / 0.7285 GB, free: 1.113 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.001465/0.9187, allocations: 1.182 MB / 0.7297 GB, free: 28 kB / 442.7 MB Notification: Performance of remove unused functions: time 0.005477/0.9242, allocations: 1.299 MB / 0.7309 GB, free: 14.78 MB / 458.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 (160): * Single equations (assignments): 154 * 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%) 16} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006784/0.9248, allocations: 460 kB / 0.7314 GB, free: 14.39 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006508/0.9314, allocations: 4.962 MB / 0.7362 GB, free: 9.625 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.9314, allocations: 448 / 0.7362 GB, free: 9.625 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002664/0.9341, allocations: 1.922 MB / 0.7381 GB, free: 7.785 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002196/0.9363, allocations: 499 kB / 0.7386 GB, free: 7.379 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0111/0.9474, allocations: 5.824 MB / 0.7443 GB, free: 2.113 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1236/1.071, allocations: 2.766 MB / 0.747 GB, free: 128.5 MB / 458.7 MB Notification: Performance of SimCode: time 7.61e-07/1.071, allocations: 0 / 0.747 GB, free: 128.5 MB / 458.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Rectifier.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Rectifier.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Rectifier.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Rectifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Rectifier_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Rectifier_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Rectifier.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Rectifier.pipe 2>&1)