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"}) [: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 4.0.0+maint.om/package.mo): time 0.001807/0.001807, allocations: 183.8 kB / 8.136 MB, free: 2.223 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.351/1.351, allocations: 221.4 MB / 229.9 MB, free: 3.078 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.0009763/0.0009762, allocations: 105.6 kB / 280.8 MB, free: 1.328 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08908/0.09009, allocations: 55.84 MB / 336.6 MB, free: 9.48 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1698/0.2599, allocations: 50.39 MB / 387 MB, free: 37.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2468/0.5067, allocations: 131.7 MB / 0.5066 GB, free: 104.3 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000232/0.5069, allocations: 99.91 kB / 0.5067 GB, free: 104.3 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.2105/0.7174, allocations: 98.74 MB / 0.6031 GB, free: 5.805 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.226e-05/0.7175, allocations: 15.94 kB / 0.6031 GB, free: 5.789 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005088/0.7226, allocations: 0.9238 MB / 0.604 GB, free: 4.859 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007813/0.7304, allocations: 3.619 MB / 0.6076 GB, free: 1.188 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001235/0.7305, allocations: 116 kB / 0.6077 GB, free: 1.074 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006915/0.7312, allocations: 227.9 kB / 0.6079 GB, free: 0.8516 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006704/0.738, allocations: 3.549 MB / 0.6114 GB, free: 13.3 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007441/0.7454, allocations: 4.075 MB / 0.6153 GB, free: 9.086 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.956e-05/0.7455, allocations: 11.84 kB / 0.6154 GB, free: 9.074 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003373/0.7459, allocations: 4 kB / 0.6154 GB, free: 9.07 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001335/0.746, allocations: 155.2 kB / 0.6155 GB, free: 8.918 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02541/0.7714, allocations: 15.42 MB / 0.6306 GB, free: 9.094 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002136/0.7736, allocations: 1.435 MB / 0.632 GB, free: 7.648 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002584/0.7762, allocations: 1.734 MB / 0.6337 GB, free: 5.922 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008848/0.7851, allocations: 5.326 MB / 0.6389 GB, free: 432 kB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.76e-05/0.7851, allocations: 60.56 kB / 0.6389 GB, free: 364 kB / 410.7 MB Notification: Performance of pre-optimization done (n=211): time 3.938e-06/0.7851, allocations: 4 kB / 0.6389 GB, free: 360 kB / 410.7 MB Notification: Performance of matching and sorting (n=214): time 0.01022/0.7954, allocations: 5.606 MB / 0.6444 GB, free: 10.64 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.945e-05/0.7954, allocations: 176.2 kB / 0.6446 GB, free: 10.43 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002202/0.7977, allocations: 1.59 MB / 0.6461 GB, free: 8.809 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00012/0.7978, allocations: 25.7 kB / 0.6461 GB, free: 8.777 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006762/0.7985, allocations: 1.311 MB / 0.6474 GB, free: 7.445 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004937/0.799, allocations: 0.6966 MB / 0.6481 GB, free: 6.738 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001133/0.7991, allocations: 0 / 0.6481 GB, free: 6.738 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000169/0.7993, allocations: 407 kB / 0.6485 GB, free: 6.336 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001438/0.8007, allocations: 0.9304 MB / 0.6494 GB, free: 5.402 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001811/0.8025, allocations: 1.56 MB / 0.6509 GB, free: 3.562 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002124/0.8047, allocations: 1.239 MB / 0.6521 GB, free: 2.324 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.546e-06/0.8047, allocations: 4 kB / 0.6521 GB, free: 2.32 MB / 426.7 MB Notification: Performance of matching and sorting (n=320) (initialization): time 0.1152/0.9199, allocations: 3.142 MB / 0.6552 GB, free: 97.88 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009701/0.9209, allocations: 7.623 MB / 0.6626 GB, free: 90.01 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.361e-05/0.921, allocations: 20.94 kB / 0.6627 GB, free: 90.01 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001021/0.922, allocations: 483.9 kB / 0.6631 GB, free: 89.97 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002273/0.9243, allocations: 0.5295 MB / 0.6636 GB, free: 89.97 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005378/0.9297, allocations: 7.599 MB / 0.6711 GB, free: 84.98 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001915/0.9316, allocations: 52.12 kB / 0.6711 GB, free: 84.98 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002114/0.9318, allocations: 102.1 kB / 0.6712 GB, free: 84.98 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.961e-06/0.9318, allocations: 3.906 kB / 0.6712 GB, free: 84.98 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0043/0.9361, allocations: 2.87 MB / 0.674 GB, free: 84.8 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.049e-05/0.9362, allocations: 26.19 kB / 0.674 GB, free: 84.8 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008966/0.9371, allocations: 477.9 kB / 0.6745 GB, free: 84.77 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002054/0.9392, allocations: 0.5223 MB / 0.675 GB, free: 84.77 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005276/0.9444, allocations: 7.608 MB / 0.6824 GB, free: 79.77 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001735/0.9462, allocations: 41.38 kB / 0.6825 GB, free: 79.77 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001719/0.9464, allocations: 102.1 kB / 0.6826 GB, free: 79.77 MB / 426.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.0004195/0.9468, allocations: 173.8 kB / 0.6827 GB, free: 79.66 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003144/0.9471, allocations: 242.5 kB / 0.683 GB, free: 79.66 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00477/0.9519, allocations: 2.99 MB / 0.6859 GB, free: 79.32 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.389e-05/0.9519, allocations: 27.2 kB / 0.6859 GB, free: 79.32 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.076e-05/0.952, allocations: 9.062 kB / 0.6859 GB, free: 79.32 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.763e-05/0.952, allocations: 10.59 kB / 0.6859 GB, free: 79.32 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008387/0.9604, allocations: 6.164 MB / 0.692 GB, free: 78.52 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.782e-06/0.9604, allocations: 3.844 kB / 0.692 GB, free: 78.52 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001445/0.9618, allocations: 303.2 kB / 0.6922 GB, free: 78.52 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001411/0.9633, allocations: 0.6627 MB / 0.6929 GB, free: 78.47 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001229/0.9634, allocations: 17.17 kB / 0.6929 GB, free: 78.47 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008892/0.9723, allocations: 11.88 MB / 0.7045 GB, free: 70.93 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.618e-06/0.9723, allocations: 9.531 kB / 0.7045 GB, free: 70.92 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005444/0.9778, allocations: 4.428 MB / 0.7088 GB, free: 70.11 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006989/0.9848, allocations: 6.209 MB / 0.7149 GB, free: 68.91 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009432/0.9857, allocations: 0.5224 MB / 0.7154 GB, free: 68.7 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003751/0.9861, allocations: 14.39 kB / 0.7154 GB, free: 68.7 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001196/0.9873, allocations: 53.33 kB / 0.7155 GB, free: 68.7 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002272/0.9876, allocations: 122.5 kB / 0.7156 GB, free: 68.69 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001213/0.9877, allocations: 52.69 kB / 0.7157 GB, free: 68.69 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.001507/0.9892, allocations: 1.182 MB / 0.7168 GB, free: 68.55 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004934/0.9942, allocations: 1.256 MB / 0.718 GB, free: 68.55 MB / 426.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.0005849/0.9947, allocations: 446 kB / 0.7185 GB, free: 68.45 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005695/1, allocations: 4.968 MB / 0.7233 GB, free: 67.33 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/1, allocations: 0 / 0.7233 GB, free: 67.33 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002325/1.003, allocations: 1.916 MB / 0.7252 GB, free: 66.71 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002127/1.005, allocations: 484.1 kB / 0.7256 GB, free: 66.7 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01009/1.015, allocations: 5.819 MB / 0.7313 GB, free: 65.4 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002726/1.018, allocations: 2.761 MB / 0.734 GB, free: 64.58 MB / 426.7 MB Notification: Performance of SimCode: time 7.01e-07/1.018, allocations: 0 / 0.734 GB, free: 64.58 MB / 426.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)