Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.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.SMR_DOL,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001042/0.001042, allocations: 184.5 kB / 8.138 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.105/1.105, allocations: 221.4 MB / 229.9 MB, free: 3.016 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.0009437/0.0009438, allocations: 102 kB / 280.8 MB, free: 1.262 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09212/0.09309, allocations: 55.83 MB / 336.6 MB, free: 9.406 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1747/0.2678, allocations: 50.38 MB / 387 MB, free: 37.97 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1009/0.3687, allocations: 107 MB / 494 MB, free: 11.78 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000212/0.369, allocations: 87.89 kB / 494 MB, free: 11.69 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.2441/0.6131, allocations: 52.22 MB / 0.5335 GB, free: 76.17 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.117e-05/0.6132, allocations: 8 kB / 0.5335 GB, free: 76.16 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001008/0.6142, allocations: 336.3 kB / 0.5338 GB, free: 75.83 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003187/0.6174, allocations: 1.794 MB / 0.5355 GB, free: 74.01 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.263e-05/0.6175, allocations: 76 kB / 0.5356 GB, free: 73.94 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003413/0.6178, allocations: 147.9 kB / 0.5358 GB, free: 73.79 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003367/0.6212, allocations: 2.368 MB / 0.5381 GB, free: 71.42 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003593/0.6248, allocations: 2.731 MB / 0.5407 GB, free: 68.54 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.765e-05/0.6249, allocations: 11.92 kB / 0.5407 GB, free: 68.53 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001824/0.6251, allocations: 8 kB / 0.5408 GB, free: 68.52 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.774e-05/0.6252, allocations: 104.5 kB / 0.5409 GB, free: 68.42 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01159/0.6367, allocations: 9.355 MB / 0.55 GB, free: 58.88 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001266/0.638, allocations: 0.9478 MB / 0.5509 GB, free: 57.93 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001188/0.6392, allocations: 1.043 MB / 0.5519 GB, free: 56.89 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002747/0.6395, allocations: 223.1 kB / 0.5521 GB, free: 56.63 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.782e-05/0.6396, allocations: 51.56 kB / 0.5522 GB, free: 56.57 MB / 378.7 MB Notification: Performance of pre-optimization done (n=121): time 3.237e-06/0.6396, allocations: 0 / 0.5522 GB, free: 56.57 MB / 378.7 MB Notification: Performance of matching and sorting (n=143): time 0.008193/0.6478, allocations: 5.334 MB / 0.5574 GB, free: 51.2 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.019e-05/0.6478, allocations: 68.7 kB / 0.5575 GB, free: 51.12 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001383/0.6492, allocations: 1.29 MB / 0.5587 GB, free: 49.82 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.505e-05/0.6493, allocations: 25.7 kB / 0.5588 GB, free: 49.79 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002656/0.6496, allocations: 0.8969 MB / 0.5596 GB, free: 48.88 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002319/0.6498, allocations: 469 kB / 0.5601 GB, free: 48.41 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.931e-05/0.6499, allocations: 0 / 0.5601 GB, free: 48.41 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.13e-05/0.65, allocations: 373.8 kB / 0.5604 GB, free: 48.04 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008752/0.6509, allocations: 0.8044 MB / 0.5612 GB, free: 47.24 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009888/0.6519, allocations: 1.169 MB / 0.5624 GB, free: 45.91 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001112/0.653, allocations: 0.9861 MB / 0.5633 GB, free: 44.93 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.829e-06/0.653, allocations: 4 kB / 0.5633 GB, free: 44.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.003456/0.6564, allocations: 2.623 MB / 0.5659 GB, free: 42.29 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.178e-05/0.6565, allocations: 7.125 kB / 0.5659 GB, free: 42.29 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.359e-05/0.6565, allocations: 12 kB / 0.5659 GB, free: 42.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001283/0.6578, allocations: 0.5826 MB / 0.5665 GB, free: 41.68 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001338/0.6591, allocations: 363.4 kB / 0.5668 GB, free: 41.33 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005406/0.6645, allocations: 5.79 MB / 0.5725 GB, free: 35.31 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001188/0.6658, allocations: 67.84 kB / 0.5725 GB, free: 35.24 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001223/0.6659, allocations: 63.98 kB / 0.5726 GB, free: 35.18 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.0002331/0.6661, allocations: 152.5 kB / 0.5727 GB, free: 35.02 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002364/0.6664, allocations: 173.8 kB / 0.5729 GB, free: 34.85 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003521/0.6699, allocations: 2.443 MB / 0.5753 GB, free: 32.39 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.053e-05/0.6699, allocations: 20.12 kB / 0.5753 GB, free: 32.37 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.126e-06/0.6699, allocations: 8 kB / 0.5753 GB, free: 32.36 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.198e-05/0.67, allocations: 11.91 kB / 0.5753 GB, free: 32.35 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007117/0.6771, allocations: 4.893 MB / 0.5801 GB, free: 27.39 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.532e-06/0.6771, allocations: 4 kB / 0.5801 GB, free: 27.39 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001007/0.6781, allocations: 232 kB / 0.5803 GB, free: 27.16 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001516/0.6797, allocations: 0.6193 MB / 0.5809 GB, free: 26.54 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.354e-05/0.6798, allocations: 19.97 kB / 0.581 GB, free: 26.52 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006607/0.6864, allocations: 7.406 MB / 0.5882 GB, free: 18.77 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/0.6864, allocations: 4 kB / 0.5882 GB, free: 18.77 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004467/0.6909, allocations: 3.84 MB / 0.592 GB, free: 14.81 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005523/0.6964, allocations: 5.478 MB / 0.5973 GB, free: 9.207 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008602/0.6973, allocations: 438.7 kB / 0.5977 GB, free: 8.758 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004099/0.6977, allocations: 11.98 kB / 0.5977 GB, free: 8.746 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001032/0.6988, allocations: 67.92 kB / 0.5978 GB, free: 8.68 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001972/0.699, allocations: 93.11 kB / 0.5979 GB, free: 8.59 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.876e-05/0.6991, allocations: 43.98 kB / 0.5979 GB, free: 8.547 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.001257/0.7003, allocations: 0.9718 MB / 0.5989 GB, free: 7.578 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002088/0.7024, allocations: 0.5116 MB / 0.5994 GB, free: 7.066 MB / 378.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.0004192/0.7028, allocations: 307 kB / 0.5997 GB, free: 6.781 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002908/0.7058, allocations: 2.387 MB / 0.602 GB, free: 4.355 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.7058, allocations: 0 / 0.602 GB, free: 4.355 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001953/0.7077, allocations: 1.525 MB / 0.6035 GB, free: 2.801 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001599/0.7094, allocations: 326.2 kB / 0.6038 GB, free: 2.48 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007092/0.7165, allocations: 4.159 MB / 0.6079 GB, free: 14.23 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002201/0.7187, allocations: 2.191 MB / 0.61 GB, free: 12 MB / 394.7 MB Notification: Performance of SimCode: time 7.51e-07/0.7187, allocations: 0 / 0.61 GB, free: 12 MB / 394.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe 2>&1)