Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.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.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL",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.001129/0.001129, allocations: 199.2 kB / 8.536 MB, free: 1.727 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.098/1.098, allocations: 225.5 MB / 234.4 MB, free: 15.03 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009243/0.0009241, allocations: 93.38 kB / 286.4 MB, free: 12.59 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0952/0.09615, allocations: 56.89 MB / 343.2 MB, free: 3.691 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1733/0.2695, allocations: 51.46 MB / 394.7 MB, free: 33.16 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1076/0.3771, allocations: 107.8 MB / 0.4907 GB, free: 5.211 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002076/0.3773, allocations: 81.33 kB / 0.4908 GB, free: 5.133 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: 606 * Number of variables: 606 Notification: Performance of Generate backend data structure: time 0.2502/0.6276, allocations: 52.34 MB / 0.5419 GB, free: 66.13 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.58e-05/0.6277, allocations: 8 kB / 0.5419 GB, free: 66.12 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00166/0.6294, allocations: 380.3 kB / 0.5423 GB, free: 65.75 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003605/0.633, allocations: 1.798 MB / 0.544 GB, free: 63.93 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.711e-05/0.6331, allocations: 76 kB / 0.5441 GB, free: 63.85 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005359/0.6336, allocations: 147.9 kB / 0.5442 GB, free: 63.71 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003924/0.6376, allocations: 2.36 MB / 0.5465 GB, free: 61.34 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004307/0.6419, allocations: 2.735 MB / 0.5492 GB, free: 58.46 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.563e-05/0.642, allocations: 7.906 kB / 0.5492 GB, free: 58.45 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002195/0.6422, allocations: 7.938 kB / 0.5492 GB, free: 58.45 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.351e-05/0.6423, allocations: 100.6 kB / 0.5493 GB, free: 58.34 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01193/0.6542, allocations: 9.348 MB / 0.5584 GB, free: 48.79 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001289/0.6555, allocations: 0.9517 MB / 0.5594 GB, free: 47.83 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001215/0.6568, allocations: 1.043 MB / 0.5604 GB, free: 46.78 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002731/0.6571, allocations: 223.1 kB / 0.5606 GB, free: 46.52 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.373e-05/0.6571, allocations: 51.56 kB / 0.5607 GB, free: 46.46 MB / 378.7 MB Notification: Performance of pre-optimization done (n=121): time 3.085e-06/0.6571, allocations: 3.938 kB / 0.5607 GB, free: 46.46 MB / 378.7 MB Notification: Performance of matching and sorting (n=143): time 0.008549/0.6657, allocations: 5.327 MB / 0.5659 GB, free: 41.08 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.21e-05/0.6657, allocations: 72.72 kB / 0.5659 GB, free: 41 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001488/0.6672, allocations: 1.286 MB / 0.5672 GB, free: 39.7 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.08e-05/0.6673, allocations: 25.7 kB / 0.5672 GB, free: 39.67 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002788/0.6676, allocations: 0.9007 MB / 0.5681 GB, free: 38.76 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002379/0.6678, allocations: 468.9 kB / 0.5685 GB, free: 38.29 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.672e-05/0.6679, allocations: 4 kB / 0.5685 GB, free: 38.29 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.524e-05/0.668, allocations: 373.9 kB / 0.5689 GB, free: 37.92 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009072/0.6689, allocations: 0.8044 MB / 0.5697 GB, free: 37.11 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001023/0.6699, allocations: 1.169 MB / 0.5708 GB, free: 35.79 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001105/0.671, allocations: 0.9861 MB / 0.5718 GB, free: 34.8 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/0.671, allocations: 4 kB / 0.5718 GB, free: 34.8 MB / 378.7 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.003545/0.6746, allocations: 2.62 MB / 0.5744 GB, free: 32.16 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.24e-05/0.6746, allocations: 8 kB / 0.5744 GB, free: 32.15 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.263e-05/0.6746, allocations: 12 kB / 0.5744 GB, free: 32.14 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001332/0.676, allocations: 0.5815 MB / 0.5749 GB, free: 31.55 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001359/0.6774, allocations: 363.5 kB / 0.5753 GB, free: 31.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005549/0.6829, allocations: 5.802 MB / 0.581 GB, free: 25.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001298/0.6842, allocations: 63.92 kB / 0.581 GB, free: 25.09 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001369/0.6844, allocations: 68 kB / 0.5811 GB, free: 25.03 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 3 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (174): * Single equations (assignments): 171 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * 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: 2 {(6,72.2%) 22,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002341/0.6846, allocations: 152.4 kB / 0.5812 GB, free: 24.87 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002364/0.6849, allocations: 169.8 kB / 0.5814 GB, free: 24.7 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0038/0.6887, allocations: 2.448 MB / 0.5838 GB, free: 22.23 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.03e-05/0.6887, allocations: 12 kB / 0.5838 GB, free: 22.21 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.606e-06/0.6887, allocations: 8 kB / 0.5838 GB, free: 22.21 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.24e-05/0.6887, allocations: 11.91 kB / 0.5838 GB, free: 22.2 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006912/0.6956, allocations: 4.89 MB / 0.5886 GB, free: 17.21 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.791e-06/0.6957, allocations: 0 / 0.5886 GB, free: 17.21 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001013/0.6967, allocations: 236 kB / 0.5888 GB, free: 16.98 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00154/0.6983, allocations: 0.6276 MB / 0.5894 GB, free: 16.35 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.935e-05/0.6984, allocations: 15.98 kB / 0.5894 GB, free: 16.33 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006472/0.7048, allocations: 7.406 MB / 0.5967 GB, free: 8.578 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.397e-06/0.7049, allocations: 4 kB / 0.5967 GB, free: 8.574 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004427/0.7093, allocations: 3.84 MB / 0.6004 GB, free: 4.605 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005825/0.7151, allocations: 5.47 MB / 0.6058 GB, free: 15 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008629/0.716, allocations: 438.8 kB / 0.6062 GB, free: 14.55 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003449/0.7164, allocations: 15.98 kB / 0.6062 GB, free: 14.54 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001006/0.7174, allocations: 67.88 kB / 0.6063 GB, free: 14.47 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002151/0.7176, allocations: 97.06 kB / 0.6064 GB, free: 14.38 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001369/0.7178, allocations: 39.98 kB / 0.6064 GB, free: 14.34 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.001439/0.7192, allocations: 0.9798 MB / 0.6073 GB, free: 13.36 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00221/0.7214, allocations: 0.5039 MB / 0.6078 GB, free: 12.86 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 6 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],loadInertia.phi) * Number of discrete variables: 3 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 109 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(6,75.0%) 22,(1,100.0%) 1,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004699/0.7219, allocations: 302.8 kB / 0.6081 GB, free: 12.55 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003497/0.7254, allocations: 2.382 MB / 0.6105 GB, free: 10.13 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.7254, allocations: 0 / 0.6105 GB, free: 10.13 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002342/0.7278, allocations: 1.517 MB / 0.6119 GB, free: 8.586 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001633/0.7294, allocations: 349.7 kB / 0.6123 GB, free: 8.242 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006963/0.7364, allocations: 4.159 MB / 0.6163 GB, free: 3.988 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002035/0.7384, allocations: 2.188 MB / 0.6185 GB, free: 1.758 MB / 394.7 MB Notification: Performance of SimCode: time 4.81e-07/0.7384, allocations: 0 / 0.6185 GB, free: 1.758 MB / 394.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe 2>&1)