Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.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.SMPM_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Inverter",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.0009372/0.0009372, allocations: 179.9 kB / 8.474 MB, free: 1.879 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.066/1.066, allocations: 205.2 MB / 214.1 MB, free: 5.453 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.0008507/0.0008506, allocations: 86.25 kB / 262.1 MB, free: 5.516 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.151/0.1518, allocations: 52.98 MB / 315.1 MB, free: 41.45 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06591/0.2178, allocations: 47.57 MB / 362.6 MB, free: 9.918 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2301/0.4479, allocations: 108 MB / 470.6 MB, free: 0.957 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002116/0.4482, allocations: 88.11 kB / 470.7 MB, free: 0.9141 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: 581 * Number of variables: 581 Notification: Performance of Generate backend data structure: time 0.1373/0.5855, allocations: 51.5 MB / 0.51 GB, free: 4.77 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.586e-05/0.5856, allocations: 8 kB / 0.51 GB, free: 4.762 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00118/0.5868, allocations: 324.4 kB / 0.5103 GB, free: 4.441 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00359/0.5904, allocations: 1.703 MB / 0.512 GB, free: 2.68 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.014e-05/0.5905, allocations: 79.98 kB / 0.512 GB, free: 2.602 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003036/0.5908, allocations: 131.9 kB / 0.5122 GB, free: 2.473 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003601/0.5944, allocations: 2.118 MB / 0.5142 GB, free: 352 kB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004044/0.5984, allocations: 2.531 MB / 0.5167 GB, free: 13.67 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.816e-05/0.5985, allocations: 7.906 kB / 0.5167 GB, free: 13.66 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001767/0.5987, allocations: 0 / 0.5167 GB, free: 13.66 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.207e-05/0.5988, allocations: 108.3 kB / 0.5168 GB, free: 13.55 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01357/0.6124, allocations: 8.749 MB / 0.5254 GB, free: 4.547 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001355/0.6138, allocations: 0.8506 MB / 0.5262 GB, free: 3.684 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00124/0.615, allocations: 0.8624 MB / 0.527 GB, free: 2.824 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003294/0.6154, allocations: 219.1 kB / 0.5273 GB, free: 2.574 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.112e-05/0.6154, allocations: 47.5 kB / 0.5273 GB, free: 2.52 MB / 378.7 MB Notification: Performance of pre-optimization done (n=110): time 3.496e-06/0.6154, allocations: 0 / 0.5273 GB, free: 2.52 MB / 378.7 MB Notification: Performance of matching and sorting (n=133): time 0.009335/0.6248, allocations: 4.967 MB / 0.5321 GB, free: 13.5 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.737e-05/0.6248, allocations: 68.72 kB / 0.5322 GB, free: 13.41 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00168/0.6265, allocations: 1.125 MB / 0.5333 GB, free: 12.28 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001084/0.6266, allocations: 25.7 kB / 0.5333 GB, free: 12.25 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005079/0.6272, allocations: 0.8764 MB / 0.5342 GB, free: 11.36 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000345/0.6275, allocations: 445.3 kB / 0.5346 GB, free: 10.92 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.371e-05/0.6276, allocations: 0 / 0.5346 GB, free: 10.92 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001501/0.6278, allocations: 373.9 kB / 0.535 GB, free: 10.55 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001036/0.6288, allocations: 0.7185 MB / 0.5357 GB, free: 9.828 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001259/0.6301, allocations: 1.126 MB / 0.5368 GB, free: 8.527 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00126/0.6313, allocations: 0.908 MB / 0.5377 GB, free: 7.621 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.552e-06/0.6314, allocations: 8 kB / 0.5377 GB, free: 7.613 MB / 394.7 MB Notification: Performance of matching and sorting (n=201) (initialization): time 0.004081/0.6354, allocations: 2.486 MB / 0.5401 GB, free: 5.109 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.374e-05/0.6355, allocations: 4 kB / 0.5401 GB, free: 5.105 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.644e-05/0.6355, allocations: 12 kB / 0.5401 GB, free: 5.094 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001473/0.637, allocations: 0.5805 MB / 0.5407 GB, free: 4.504 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001381/0.6384, allocations: 359.4 kB / 0.541 GB, free: 4.152 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008144/0.6465, allocations: 6.084 MB / 0.547 GB, free: 13.83 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001555/0.6481, allocations: 71.78 kB / 0.547 GB, free: 13.76 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001754/0.6483, allocations: 71.92 kB / 0.5471 GB, free: 13.69 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (171): * Single equations (assignments): 168 * 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%) 23,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000328/0.6486, allocations: 144.5 kB / 0.5472 GB, free: 13.54 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003252/0.649, allocations: 158.2 kB / 0.5474 GB, free: 13.38 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004769/0.6537, allocations: 2.263 MB / 0.5496 GB, free: 11.09 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.66e-05/0.6538, allocations: 19.91 kB / 0.5496 GB, free: 11.07 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.085e-05/0.6538, allocations: 4 kB / 0.5496 GB, free: 11.07 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.81e-05/0.6538, allocations: 11.97 kB / 0.5496 GB, free: 11.06 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008969/0.6628, allocations: 4.529 MB / 0.5541 GB, free: 6.43 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.794e-06/0.6628, allocations: 0 / 0.5541 GB, free: 6.43 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001024/0.6639, allocations: 228 kB / 0.5543 GB, free: 6.207 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001745/0.6656, allocations: 0.6318 MB / 0.5549 GB, free: 5.566 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.948e-05/0.6657, allocations: 15.98 kB / 0.5549 GB, free: 5.551 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008873/0.6746, allocations: 7.705 MB / 0.5624 GB, free: 13.49 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.007e-06/0.6747, allocations: 7.906 kB / 0.5624 GB, free: 13.48 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005334/0.68, allocations: 3.52 MB / 0.5659 GB, free: 9.82 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00665/0.6867, allocations: 5.005 MB / 0.5708 GB, free: 4.664 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009157/0.6876, allocations: 399 kB / 0.5711 GB, free: 4.254 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002745/0.6879, allocations: 15.89 kB / 0.5712 GB, free: 4.238 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009756/0.6889, allocations: 63.92 kB / 0.5712 GB, free: 4.176 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001871/0.6891, allocations: 73.2 kB / 0.5713 GB, free: 4.105 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001069/0.6892, allocations: 39.98 kB / 0.5713 GB, free: 4.066 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.001279/0.6905, allocations: 0.8401 MB / 0.5721 GB, free: 3.227 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002228/0.6927, allocations: 495.9 kB / 0.5726 GB, free: 2.742 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],smpm.idq_rr[2],smpm.idq_dr[1],vfController.x,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (104): * Single equations (assignments): 101 * 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,72.2%) 23,(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.0005262/0.6933, allocations: 355.5 kB / 0.573 GB, free: 2.391 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00343/0.6967, allocations: 2.219 MB / 0.5751 GB, free: 132 kB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/0.6967, allocations: 0 / 0.5751 GB, free: 132 kB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.1083/0.805, allocations: 1.378 MB / 0.5765 GB, free: 161.8 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001746/0.8068, allocations: 340.6 kB / 0.5768 GB, free: 161.8 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006096/0.8129, allocations: 3.872 MB / 0.5806 GB, free: 160.9 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001633/0.8145, allocations: 2.03 MB / 0.5826 GB, free: 160.2 MB / 426.7 MB Notification: Performance of SimCode: time 6.51e-07/0.8146, allocations: 0 / 0.5826 GB, free: 160.2 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Inverter.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe 2>&1)