Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.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.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_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.0009876/0.0009877, allocations: 185.8 kB / 8.137 MB, free: 0.8594 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.109/1.109, allocations: 221.4 MB / 229.9 MB, free: 13.49 MB / 194.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009468/0.0009469, allocations: 113.2 kB / 280.8 MB, free: 10.5 MB / 226.8 MB Notification: Performance of FrontEnd - loaded program: time 0.08731/0.08829, allocations: 55.83 MB / 336.6 MB, free: 2.688 MB / 274.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07572/0.164, allocations: 50.41 MB / 387 MB, free: 232 kB / 322.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2309/0.395, allocations: 125.4 MB / 0.5004 GB, free: 4.133 MB / 386.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002197/0.3953, allocations: 90.95 kB / 0.5005 GB, free: 4.047 MB / 386.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 617 * Number of variables: 617 Notification: Performance of Generate backend data structure: time 0.2594/0.6547, allocations: 57.52 MB / 0.5567 GB, free: 95.39 MB / 418.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.067e-05/0.6547, allocations: 7.562 kB / 0.5567 GB, free: 95.39 MB / 418.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001431/0.6562, allocations: 445.6 kB / 0.5571 GB, free: 95.21 MB / 418.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002812/0.659, allocations: 1.755 MB / 0.5588 GB, free: 94.75 MB / 418.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.738e-05/0.6591, allocations: 77.19 kB / 0.5589 GB, free: 94.75 MB / 418.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003001/0.6594, allocations: 143.8 kB / 0.559 GB, free: 94.75 MB / 418.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003219/0.6626, allocations: 2.265 MB / 0.5613 GB, free: 94.73 MB / 418.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003704/0.6663, allocations: 2.653 MB / 0.5639 GB, free: 94.3 MB / 418.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.122e-05/0.6664, allocations: 11.03 kB / 0.5639 GB, free: 94.3 MB / 418.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001895/0.6666, allocations: 4.469 kB / 0.5639 GB, free: 94.3 MB / 418.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.951e-05/0.6667, allocations: 109.4 kB / 0.564 GB, free: 94.29 MB / 418.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01174/0.6784, allocations: 9.894 MB / 0.5736 GB, free: 91.25 MB / 418.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001383/0.6798, allocations: 1.107 MB / 0.5747 GB, free: 91.04 MB / 418.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00131/0.6811, allocations: 1.181 MB / 0.5759 GB, free: 90.64 MB / 418.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002513/0.6814, allocations: 139.4 kB / 0.576 GB, free: 90.54 MB / 418.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.42e-05/0.6814, allocations: 55.14 kB / 0.5761 GB, free: 90.48 MB / 418.8 MB Notification: Performance of pre-optimization done (n=152): time 3.006e-06/0.6815, allocations: 0 / 0.5761 GB, free: 90.48 MB / 418.8 MB Notification: Performance of matching and sorting (n=175): time 0.01004/0.6915, allocations: 5.84 MB / 0.5818 GB, free: 88.15 MB / 418.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.523e-05/0.6916, allocations: 177.3 kB / 0.5819 GB, free: 87.96 MB / 418.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001992/0.6936, allocations: 1.341 MB / 0.5832 GB, free: 87.41 MB / 418.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001053/0.6937, allocations: 26.77 kB / 0.5833 GB, free: 87.38 MB / 418.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003703/0.6941, allocations: 0.8961 MB / 0.5841 GB, free: 86.73 MB / 418.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003212/0.6944, allocations: 0.5624 MB / 0.5847 GB, free: 86.28 MB / 418.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.939e-05/0.6945, allocations: 0 / 0.5847 GB, free: 86.28 MB / 418.8 MB Notification: Performance of setup shared object (initialization): time 9.624e-05/0.6946, allocations: 390.6 kB / 0.5851 GB, free: 85.94 MB / 418.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001214/0.6958, allocations: 0.8795 MB / 0.5859 GB, free: 85.61 MB / 418.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001394/0.6972, allocations: 1.316 MB / 0.5872 GB, free: 84.75 MB / 418.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001448/0.6987, allocations: 1.081 MB / 0.5883 GB, free: 84.34 MB / 418.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-05/0.6987, allocations: 3.594 kB / 0.5883 GB, free: 84.34 MB / 418.8 MB Notification: Performance of matching and sorting (n=251) (initialization): time 0.004879/0.7036, allocations: 3.097 MB / 0.5913 GB, free: 83.24 MB / 418.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007059/0.7043, allocations: 4.84 MB / 0.596 GB, free: 78 MB / 418.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.396e-05/0.7043, allocations: 12.5 kB / 0.596 GB, free: 78 MB / 418.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002256/0.7066, allocations: 0.9678 MB / 0.597 GB, free: 77.71 MB / 418.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001416/0.708, allocations: 366.5 kB / 0.5973 GB, free: 77.68 MB / 418.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01082/0.7189, allocations: 11.02 MB / 0.6081 GB, free: 70.26 MB / 418.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001339/0.7202, allocations: 54.12 kB / 0.6081 GB, free: 70.25 MB / 418.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001813/0.7204, allocations: 75.16 kB / 0.6082 GB, free: 70.24 MB / 418.8 MB Notification: Performance of prepare postOptimizeDAE: time 8.276e-06/0.7204, allocations: 3.469 kB / 0.6082 GB, free: 70.24 MB / 418.8 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004192/0.7246, allocations: 2.881 MB / 0.611 GB, free: 68.42 MB / 418.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.534e-05/0.7247, allocations: 19.55 kB / 0.611 GB, free: 68.41 MB / 418.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00197/0.7266, allocations: 0.9506 MB / 0.612 GB, free: 67.63 MB / 418.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001255/0.7279, allocations: 361.1 kB / 0.6123 GB, free: 67.32 MB / 418.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009729/0.7377, allocations: 11.02 MB / 0.6231 GB, free: 56.87 MB / 418.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001324/0.739, allocations: 42.95 kB / 0.6231 GB, free: 56.84 MB / 418.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001754/0.7392, allocations: 76 kB / 0.6232 GB, free: 56.77 MB / 418.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 54 * 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 (192): * Single equations (assignments): 185 * 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 {(6,72.2%) 27} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0003497/0.7395, allocations: 154.6 kB / 0.6233 GB, free: 56.61 MB / 418.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003513/0.7399, allocations: 205.2 kB / 0.6235 GB, free: 56.41 MB / 418.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00401/0.7439, allocations: 2.808 MB / 0.6263 GB, free: 54.04 MB / 418.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.21e-05/0.7439, allocations: 17.38 kB / 0.6263 GB, free: 54.03 MB / 418.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.129e-05/0.744, allocations: 4 kB / 0.6263 GB, free: 54.02 MB / 418.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.36e-05/0.744, allocations: 7.312 kB / 0.6263 GB, free: 54.02 MB / 418.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008435/0.7524, allocations: 5.436 MB / 0.6316 GB, free: 49.59 MB / 418.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.634e-06/0.7524, allocations: 0 / 0.6316 GB, free: 49.59 MB / 418.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001015/0.7535, allocations: 223.9 kB / 0.6318 GB, free: 49.41 MB / 418.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002497/0.756, allocations: 1.023 MB / 0.6328 GB, free: 48.59 MB / 418.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001346/0.7561, allocations: 21.11 kB / 0.6328 GB, free: 48.57 MB / 418.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01163/0.7678, allocations: 12.64 MB / 0.6452 GB, free: 36.47 MB / 418.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.648e-06/0.7678, allocations: 8.547 kB / 0.6452 GB, free: 36.46 MB / 418.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00551/0.7733, allocations: 4.332 MB / 0.6494 GB, free: 32.55 MB / 418.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006695/0.78, allocations: 6.063 MB / 0.6553 GB, free: 27.04 MB / 418.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008665/0.7809, allocations: 471.6 kB / 0.6558 GB, free: 26.61 MB / 418.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003792/0.7813, allocations: 19.84 kB / 0.6558 GB, free: 26.59 MB / 418.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001154/0.7824, allocations: 57.45 kB / 0.6559 GB, free: 26.55 MB / 418.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002101/0.7827, allocations: 101.5 kB / 0.656 GB, free: 26.5 MB / 418.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001094/0.7828, allocations: 47.98 kB / 0.656 GB, free: 26.45 MB / 418.8 MB Notification: Performance of sort global known variables: time 0.001263/0.7841, allocations: 1.007 MB / 0.657 GB, free: 25.49 MB / 418.8 MB Notification: Performance of remove unused functions: time 0.004621/0.7887, allocations: 1.039 MB / 0.658 GB, free: 24.45 MB / 418.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 12 (smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[1],smee.idq_rr[2],smee.idq_dr[1],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 (115): * Single equations (assignments): 110 * 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,75.0%) 27,(2,100.0%) 4} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005659/0.7893, allocations: 365.8 kB / 0.6583 GB, free: 24.12 MB / 418.8 MB Notification: Performance of simCode: created initialization part: time 0.006305/0.7956, allocations: 5.009 MB / 0.6632 GB, free: 18.98 MB / 418.8 MB Notification: Performance of simCode: created event and clocks part: time 4.9e-06/0.7956, allocations: 4 kB / 0.6632 GB, free: 18.98 MB / 418.8 MB Notification: Performance of simCode: created simulation system equations: time 0.002452/0.7981, allocations: 1.889 MB / 0.6651 GB, free: 17.04 MB / 418.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00173/0.7998, allocations: 417.1 kB / 0.6655 GB, free: 16.66 MB / 418.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008363/0.8082, allocations: 4.771 MB / 0.6701 GB, free: 11.86 MB / 418.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001741/0.8099, allocations: 2.15 MB / 0.6722 GB, free: 9.672 MB / 418.8 MB Notification: Performance of SimCode: time 4.81e-07/0.8099, allocations: 4 kB / 0.6722 GB, free: 9.668 MB / 418.8 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Rectifier_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Rectifier.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier.pipe 2>&1)