Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.InductionMachines.IMC_Inverter2.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/HanserModelica 2.0.0-master/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 HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/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: translateModel(HanserModelica.InductionMachines.IMC_Inverter2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=70000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMC_Inverter2") translateModel(HanserModelica.InductionMachines.IMC_Inverter2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=70000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMC_Inverter2") [: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.002556/0.002556, allocations: 187.2 kB / 7.46 MB, free: 2.516 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03993/0.03994, allocations: 8.711 MB / 16.58 MB, free: 440 kB / 10.45 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.393/1.393, allocations: 221.4 MB / 240.5 MB, free: 8.188 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009752/0.0009753, allocations: 89.69 kB / 293.5 MB, free: 5.492 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 5.44e-06/5.47e-06, allocations: 0 / 352.1 MB, free: 10.87 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2241/0.2241, allocations: 52.54 MB / 404.6 MB, free: 26.77 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3308/0.5549, allocations: 108.3 MB / 0.5009 GB, free: 71.26 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001975/0.5552, allocations: 78.92 kB / 0.5009 GB, free: 71.26 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.1788/0.734, allocations: 81.72 MB / 0.5807 GB, free: 13.53 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003322/0.7344, allocations: 83.88 kB / 0.5808 GB, free: 13.45 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: 880 * Number of variables: 880 Notification: Performance of Generate backend data structure: time 0.01027/0.7446, allocations: 3.297 MB / 0.584 GB, free: 10.09 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.36e-05/0.7447, allocations: 12.03 kB / 0.5841 GB, free: 10.08 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00494/0.7497, allocations: 0.745 MB / 0.5848 GB, free: 9.328 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009449/0.7591, allocations: 3.53 MB / 0.5882 GB, free: 5.801 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002221/0.7594, allocations: 104 kB / 0.5883 GB, free: 5.699 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001201/0.7606, allocations: 203.9 kB / 0.5885 GB, free: 5.5 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007701/0.7683, allocations: 3.309 MB / 0.5918 GB, free: 2.188 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01/0.7784, allocations: 3.89 MB / 0.5955 GB, free: 14.17 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001339/0.7786, allocations: 0 / 0.5955 GB, free: 14.17 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006913/0.7793, allocations: 7.984 kB / 0.5956 GB, free: 14.16 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001606/0.7794, allocations: 162.6 kB / 0.5957 GB, free: 14 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02584/0.8053, allocations: 13.63 MB / 0.609 GB, free: 84 kB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001676/0.807, allocations: 0.952 MB / 0.61 GB, free: 15.13 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002094/0.8091, allocations: 1.185 MB / 0.6111 GB, free: 13.94 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005797/0.815, allocations: 2.981 MB / 0.614 GB, free: 10.9 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.879e-05/0.815, allocations: 47.88 kB / 0.6141 GB, free: 10.85 MB / 410.7 MB Notification: Performance of pre-optimization done (n=135): time 4.098e-06/0.8151, allocations: 0 / 0.6141 GB, free: 10.85 MB / 410.7 MB Notification: Performance of matching and sorting (n=138): time 0.009078/0.8241, allocations: 4.037 MB / 0.618 GB, free: 6.711 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.557e-05/0.8242, allocations: 64.72 kB / 0.6181 GB, free: 6.633 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002241/0.8265, allocations: 1.205 MB / 0.6193 GB, free: 5.422 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.986e-05/0.8266, allocations: 29.64 kB / 0.6193 GB, free: 5.387 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007393/0.8273, allocations: 1.237 MB / 0.6205 GB, free: 4.129 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003939/0.8277, allocations: 469.1 kB / 0.6209 GB, free: 3.664 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.57e-05/0.8278, allocations: 0 / 0.6209 GB, free: 3.664 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001698/0.828, allocations: 377.9 kB / 0.6213 GB, free: 3.289 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009859/0.829, allocations: 0.6404 MB / 0.6219 GB, free: 2.648 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001292/0.8303, allocations: 1.131 MB / 0.623 GB, free: 1.297 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001586/0.8319, allocations: 0.908 MB / 0.6239 GB, free: 400 kB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.973e-06/0.8319, allocations: 8 kB / 0.6239 GB, free: 392 kB / 410.7 MB Notification: Performance of matching and sorting (n=223) (initialization): time 0.00394/0.8359, allocations: 2.172 MB / 0.626 GB, free: 14.18 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.715e-05/0.8359, allocations: 4 kB / 0.626 GB, free: 14.18 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.014e-05/0.8359, allocations: 16 kB / 0.6261 GB, free: 14.16 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000429/0.8364, allocations: 134.9 kB / 0.6262 GB, free: 14.02 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001748/0.8381, allocations: 435.3 kB / 0.6266 GB, free: 13.59 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002487/0.8406, allocations: 2.921 MB / 0.6295 GB, free: 10.44 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001239/0.8419, allocations: 48.03 kB / 0.6295 GB, free: 10.39 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001416/0.842, allocations: 80.05 kB / 0.6296 GB, free: 10.31 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 72 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (216): * Single equations (assignments): 213 * 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 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002771/0.8423, allocations: 160.3 kB / 0.6297 GB, free: 10.15 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002396/0.8426, allocations: 169.9 kB / 0.6299 GB, free: 9.98 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003949/0.8465, allocations: 2.1 MB / 0.6319 GB, free: 7.816 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.162e-05/0.8465, allocations: 12 kB / 0.632 GB, free: 7.805 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.067e-05/0.8466, allocations: 8 kB / 0.632 GB, free: 7.797 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.484e-05/0.8466, allocations: 7.969 kB / 0.632 GB, free: 7.789 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007834/0.8544, allocations: 4.73 MB / 0.6366 GB, free: 2.941 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.418e-06/0.8544, allocations: 8 kB / 0.6366 GB, free: 2.934 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009737/0.8554, allocations: 199.9 kB / 0.6368 GB, free: 2.738 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001251/0.8567, allocations: 435.9 kB / 0.6372 GB, free: 2.297 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.559e-05/0.8568, allocations: 23.98 kB / 0.6372 GB, free: 2.273 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009452/0.8663, allocations: 9.449 MB / 0.6465 GB, free: 8.266 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.021e-06/0.8663, allocations: 3.984 kB / 0.6465 GB, free: 8.262 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004686/0.871, allocations: 3.032 MB / 0.6494 GB, free: 5.113 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008039/0.8718, allocations: 394.9 kB / 0.6498 GB, free: 4.707 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002553/0.8721, allocations: 12 kB / 0.6498 GB, free: 4.695 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009007/0.873, allocations: 51.95 kB / 0.6499 GB, free: 4.645 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001768/0.8732, allocations: 77.19 kB / 0.6499 GB, free: 4.57 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.783e-05/0.8733, allocations: 39.98 kB / 0.65 GB, free: 4.531 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.001345/0.8746, allocations: 0.8883 MB / 0.6508 GB, free: 3.645 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001968/0.8766, allocations: 0.5236 MB / 0.6513 GB, free: 3.121 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 8 (imc.inertiaRotor.phi,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.zeroInductor.i0,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,vfController.x,loadInertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (101): * Single equations (assignments): 96 * 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: 5 {(1,100.0%) 5,(1,100.0%) 13,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004797/0.8771, allocations: 347.5 kB / 0.6517 GB, free: 2.797 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002626/0.8797, allocations: 1.852 MB / 0.6535 GB, free: 0.9023 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.8797, allocations: 6.625 kB / 0.6535 GB, free: 0.8984 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002055/0.8818, allocations: 1.353 MB / 0.6548 GB, free: 15.5 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0019/0.8837, allocations: 370.5 kB / 0.6552 GB, free: 15.13 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009699/0.8934, allocations: 4.635 MB / 0.6597 GB, free: 10.43 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002736/0.8962, allocations: 2.541 MB / 0.6622 GB, free: 7.863 MB / 458.7 MB Notification: Performance of SimCode: time 1.072e-06/0.8962, allocations: 0 / 0.6622 GB, free: 7.863 MB / 458.7 MB Notification: Performance of Templates: time 0.1965/1.093, allocations: 25.67 MB / 0.6872 GB, free: 129.5 MB / 458.7 MB make -j1 -f HanserModelica_HanserModelica.InductionMachines.IMC_Inverter2.makefile (rm -f HanserModelica_HanserModelica.InductionMachines.IMC_Inverter2.pipe ; mkfifo HanserModelica_HanserModelica.InductionMachines.IMC_Inverter2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.InductionMachines.IMC_Inverter2.pipe >> ../files/HanserModelica_HanserModelica.InductionMachines.IMC_Inverter2.sim & ./HanserModelica_HanserModelica.InductionMachines.IMC_Inverter2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.InductionMachines.IMC_Inverter2.pipe 2>&1)