Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMR_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_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 3.2.3+maint.om/package.mo): time 0.0009899/0.0009899, allocations: 179 kB / 8.478 MB, free: 1.871 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.052/1.052, allocations: 205.2 MB / 214.1 MB, free: 5.105 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009214/0.0009214, allocations: 93.91 kB / 262.1 MB, free: 5.148 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1452/0.1461, allocations: 52.97 MB / 315.1 MB, free: 41.41 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05867/0.2048, allocations: 47.58 MB / 362.6 MB, free: 9.887 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2109/0.4157, allocations: 106.5 MB / 469.1 MB, free: 2.426 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000219/0.416, allocations: 84.08 kB / 469.2 MB, free: 2.383 MB / 314.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.1334/0.5494, allocations: 51.9 MB / 0.5089 GB, free: 5.844 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.315e-05/0.5495, allocations: 8 kB / 0.5089 GB, free: 5.836 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001193/0.5507, allocations: 340.3 kB / 0.5092 GB, free: 5.5 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003776/0.5545, allocations: 1.783 MB / 0.5109 GB, free: 3.66 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001044/0.5546, allocations: 76 kB / 0.511 GB, free: 3.586 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003208/0.5549, allocations: 135.9 kB / 0.5112 GB, free: 3.453 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003921/0.5589, allocations: 2.379 MB / 0.5135 GB, free: 1.066 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004268/0.5631, allocations: 2.732 MB / 0.5161 GB, free: 14.19 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.991e-05/0.5632, allocations: 7.984 kB / 0.5162 GB, free: 14.18 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001842/0.5634, allocations: 3.906 kB / 0.5162 GB, free: 14.18 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001021/0.5635, allocations: 104.6 kB / 0.5163 GB, free: 14.07 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01448/0.578, allocations: 9.385 MB / 0.5254 GB, free: 4.426 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001499/0.5795, allocations: 0.9475 MB / 0.5263 GB, free: 3.465 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001459/0.581, allocations: 1.043 MB / 0.5274 GB, free: 2.422 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003314/0.5814, allocations: 223.1 kB / 0.5276 GB, free: 2.168 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.814e-05/0.5814, allocations: 47.56 kB / 0.5276 GB, free: 2.113 MB / 378.7 MB Notification: Performance of pre-optimization done (n=121): time 3.476e-06/0.5814, allocations: 0 / 0.5276 GB, free: 2.113 MB / 378.7 MB Notification: Performance of matching and sorting (n=143): time 0.009523/0.5909, allocations: 5.339 MB / 0.5328 GB, free: 12.71 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.911e-05/0.591, allocations: 76.66 kB / 0.5329 GB, free: 12.62 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001732/0.5927, allocations: 1.294 MB / 0.5342 GB, free: 11.32 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 9.355e-05/0.5928, allocations: 29.7 kB / 0.5342 GB, free: 11.29 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004778/0.5933, allocations: 0.8891 MB / 0.5351 GB, free: 10.38 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003571/0.5937, allocations: 468.9 kB / 0.5355 GB, free: 9.918 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.17e-05/0.5938, allocations: 0 / 0.5355 GB, free: 9.918 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001432/0.5939, allocations: 377.8 kB / 0.5359 GB, free: 9.543 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001085/0.595, allocations: 0.8044 MB / 0.5367 GB, free: 8.738 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001302/0.5963, allocations: 1.169 MB / 0.5378 GB, free: 7.41 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001321/0.5977, allocations: 0.9822 MB / 0.5388 GB, free: 6.43 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.891e-06/0.5977, allocations: 4 kB / 0.5388 GB, free: 6.426 MB / 394.7 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004171/0.6018, allocations: 2.627 MB / 0.5413 GB, free: 3.781 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.437e-05/0.6019, allocations: 7.984 kB / 0.5413 GB, free: 3.773 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.732e-05/0.6019, allocations: 12 kB / 0.5414 GB, free: 3.762 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001448/0.6034, allocations: 0.5777 MB / 0.5419 GB, free: 3.176 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001473/0.6048, allocations: 367.5 kB / 0.5423 GB, free: 2.816 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006834/0.6117, allocations: 5.794 MB / 0.5479 GB, free: 12.78 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001298/0.613, allocations: 67.84 kB / 0.548 GB, free: 12.71 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001418/0.6132, allocations: 67.98 kB / 0.5481 GB, free: 12.65 MB / 410.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.0002766/0.6134, allocations: 148.5 kB / 0.5482 GB, free: 12.5 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002789/0.6137, allocations: 173.8 kB / 0.5484 GB, free: 12.32 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004074/0.6178, allocations: 2.443 MB / 0.5507 GB, free: 9.859 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.086e-05/0.6178, allocations: 16 kB / 0.5508 GB, free: 9.844 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.729e-06/0.6178, allocations: 8 kB / 0.5508 GB, free: 9.836 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.604e-05/0.6179, allocations: 11.88 kB / 0.5508 GB, free: 9.824 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00779/0.6257, allocations: 4.898 MB / 0.5556 GB, free: 4.828 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.662e-06/0.6257, allocations: 0 / 0.5556 GB, free: 4.828 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001048/0.6267, allocations: 236.1 kB / 0.5558 GB, free: 4.598 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001655/0.6284, allocations: 0.6392 MB / 0.5564 GB, free: 3.949 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.765e-05/0.6285, allocations: 15.98 kB / 0.5564 GB, free: 3.934 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008134/0.6367, allocations: 7.41 MB / 0.5637 GB, free: 12.18 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.901e-06/0.6367, allocations: 4 kB / 0.5637 GB, free: 12.17 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005324/0.642, allocations: 3.84 MB / 0.5674 GB, free: 8.199 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006734/0.6488, allocations: 5.494 MB / 0.5728 GB, free: 2.574 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000862/0.6497, allocations: 442.8 kB / 0.5732 GB, free: 2.121 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002772/0.6499, allocations: 8 kB / 0.5732 GB, free: 2.113 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009367/0.6509, allocations: 67.92 kB / 0.5733 GB, free: 2.047 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002206/0.6511, allocations: 93.17 kB / 0.5734 GB, free: 1.957 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001048/0.6512, allocations: 39.98 kB / 0.5734 GB, free: 1.918 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.00136/0.6526, allocations: 0.968 MB / 0.5744 GB, free: 0.9492 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002073/0.6547, allocations: 0.5038 MB / 0.5748 GB, free: 456 kB / 426.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.0004854/0.6552, allocations: 289.7 kB / 0.5751 GB, free: 160 kB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.09689/0.7521, allocations: 2.391 MB / 0.5775 GB, free: 161.9 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.097e-06/0.7521, allocations: 2.625 kB / 0.5775 GB, free: 161.9 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001986/0.7541, allocations: 1.521 MB / 0.5789 GB, free: 161.6 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001644/0.7558, allocations: 338 kB / 0.5793 GB, free: 161.6 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005957/0.7617, allocations: 4.165 MB / 0.5833 GB, free: 160.7 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001624/0.7634, allocations: 2.179 MB / 0.5855 GB, free: 159.9 MB / 426.7 MB Notification: Performance of SimCode: time 4.71e-07/0.7634, allocations: 0 / 0.5855 GB, free: 159.9 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMR_DOL_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMR_DOL.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL.pipe 2>&1)