Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1.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_Inverter1,tolerance=1e-08,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1") translateModel(HanserModelica.InductionMachines.IMC_Inverter1,tolerance=1e-08,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1") [: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.00346/0.00346, allocations: 178.9 kB / 7.454 MB, free: 2.492 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0591/0.0591, allocations: 8.704 MB / 16.57 MB, free: 444 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.306/1.306, allocations: 221.4 MB / 240.5 MB, free: 8.129 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.001033/0.001032, allocations: 98.77 kB / 293.5 MB, free: 5.465 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 5.961e-06/6.001e-06, allocations: 0 / 352.1 MB, free: 10.85 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2354/0.2354, allocations: 52.54 MB / 404.6 MB, free: 26.82 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3241/0.5595, allocations: 108.2 MB / 0.5008 GB, free: 95.7 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002131/0.5598, allocations: 76.28 kB / 0.5009 GB, free: 95.7 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.1781/0.7379, allocations: 81.28 MB / 0.5803 GB, free: 25.51 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003058/0.7383, allocations: 87.81 kB / 0.5803 GB, free: 25.42 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.009561/0.7478, allocations: 3.297 MB / 0.5836 GB, free: 22.06 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.676e-05/0.7479, allocations: 8.031 kB / 0.5836 GB, free: 22.05 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004852/0.7528, allocations: 0.7567 MB / 0.5843 GB, free: 21.29 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009023/0.7618, allocations: 3.518 MB / 0.5878 GB, free: 17.71 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001907/0.762, allocations: 112 kB / 0.5879 GB, free: 17.61 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001114/0.7632, allocations: 195.9 kB / 0.588 GB, free: 17.41 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007095/0.7703, allocations: 3.317 MB / 0.5913 GB, free: 14.09 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009783/0.7801, allocations: 3.894 MB / 0.5951 GB, free: 10.08 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001478/0.7803, allocations: 4 kB / 0.5951 GB, free: 10.07 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007863/0.7811, allocations: 0 / 0.5951 GB, free: 10.07 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001445/0.7812, allocations: 154.6 kB / 0.5952 GB, free: 9.922 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02372/0.8049, allocations: 13.64 MB / 0.6086 GB, free: 11.88 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001733/0.8067, allocations: 0.9477 MB / 0.6095 GB, free: 10.93 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002061/0.8088, allocations: 1.193 MB / 0.6107 GB, free: 9.73 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005562/0.8144, allocations: 2.968 MB / 0.6135 GB, free: 6.676 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.654e-05/0.8145, allocations: 51.88 kB / 0.6136 GB, free: 6.617 MB / 394.7 MB Notification: Performance of pre-optimization done (n=135): time 3.707e-06/0.8145, allocations: 0 / 0.6136 GB, free: 6.617 MB / 394.7 MB Notification: Performance of matching and sorting (n=138): time 0.008625/0.8231, allocations: 4.038 MB / 0.6175 GB, free: 2.469 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.862e-05/0.8232, allocations: 64.72 kB / 0.6176 GB, free: 2.395 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003082/0.8263, allocations: 1.205 MB / 0.6188 GB, free: 1.18 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001383/0.8264, allocations: 25.7 kB / 0.6188 GB, free: 1.148 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009545/0.8274, allocations: 1.241 MB / 0.62 GB, free: 15.88 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00046/0.8278, allocations: 477 kB / 0.6205 GB, free: 15.41 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001053/0.828, allocations: 0 / 0.6205 GB, free: 15.41 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001994/0.8282, allocations: 373.9 kB / 0.6208 GB, free: 15.04 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00106/0.8292, allocations: 0.6365 MB / 0.6215 GB, free: 14.4 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001429/0.8307, allocations: 1.139 MB / 0.6226 GB, free: 13.04 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001817/0.8325, allocations: 0.9041 MB / 0.6234 GB, free: 12.14 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.149e-05/0.8325, allocations: 4 kB / 0.6234 GB, free: 12.14 MB / 410.7 MB Notification: Performance of matching and sorting (n=223) (initialization): time 0.004175/0.8367, allocations: 2.164 MB / 0.6256 GB, free: 9.934 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.956e-05/0.8367, allocations: 8 kB / 0.6256 GB, free: 9.926 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.058e-05/0.8368, allocations: 16 kB / 0.6256 GB, free: 9.91 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004172/0.8372, allocations: 134.9 kB / 0.6257 GB, free: 9.77 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001871/0.8391, allocations: 435.3 kB / 0.6261 GB, free: 9.344 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002769/0.8419, allocations: 2.925 MB / 0.629 GB, free: 6.188 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001525/0.8434, allocations: 52.02 kB / 0.629 GB, free: 6.137 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002206/0.8437, allocations: 75.98 kB / 0.6291 GB, free: 6.062 MB / 410.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.0003718/0.844, allocations: 160.2 kB / 0.6293 GB, free: 5.898 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004541/0.8445, allocations: 169.9 kB / 0.6294 GB, free: 5.73 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00446/0.849, allocations: 2.1 MB / 0.6315 GB, free: 3.551 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.401e-05/0.849, allocations: 12 kB / 0.6315 GB, free: 3.539 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.92e-05/0.849, allocations: 8 kB / 0.6315 GB, free: 3.531 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.467e-05/0.8491, allocations: 7.969 kB / 0.6315 GB, free: 3.523 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01036/0.8594, allocations: 4.736 MB / 0.6361 GB, free: 14.63 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.737e-06/0.8595, allocations: 4.188 kB / 0.6361 GB, free: 14.63 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001024/0.8605, allocations: 203.7 kB / 0.6363 GB, free: 14.43 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001349/0.8619, allocations: 434.1 kB / 0.6367 GB, free: 13.99 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001301/0.862, allocations: 23.92 kB / 0.6368 GB, free: 13.97 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01025/0.8723, allocations: 9.454 MB / 0.646 GB, free: 3.945 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.592e-06/0.8723, allocations: 0 / 0.646 GB, free: 3.945 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005719/0.8781, allocations: 3.031 MB / 0.649 GB, free: 0.7852 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001099/0.8792, allocations: 402.8 kB / 0.6493 GB, free: 380 kB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005496/0.8798, allocations: 8 kB / 0.6493 GB, free: 372 kB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001228/0.881, allocations: 51.95 kB / 0.6494 GB, free: 320 kB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001862/0.8812, allocations: 73.19 kB / 0.6495 GB, free: 248 kB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001093/0.8814, allocations: 43.98 kB / 0.6495 GB, free: 204 kB / 426.7 MB Notification: Performance of sort global known variables: time 0.001873/0.8832, allocations: 0.8883 MB / 0.6504 GB, free: 15.31 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00272/0.886, allocations: 0.5236 MB / 0.6509 GB, free: 14.79 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.0006708/0.8867, allocations: 333.9 kB / 0.6512 GB, free: 14.46 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003136/0.8898, allocations: 1.853 MB / 0.653 GB, free: 12.56 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.172e-06/0.8898, allocations: 4 kB / 0.653 GB, free: 12.56 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002198/0.892, allocations: 1.362 MB / 0.6543 GB, free: 11.15 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002295/0.8943, allocations: 375 kB / 0.6547 GB, free: 10.79 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01252/0.9069, allocations: 4.627 MB / 0.6592 GB, free: 6.082 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003811/0.9107, allocations: 2.541 MB / 0.6617 GB, free: 3.52 MB / 442.7 MB Notification: Performance of SimCode: time 9.21e-07/0.9108, allocations: 0 / 0.6617 GB, free: 3.52 MB / 442.7 MB Notification: Performance of Templates: time 0.2102/1.121, allocations: 25.66 MB / 0.6868 GB, free: 118.1 MB / 442.7 MB make -j1 -f HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1.makefile (rm -f HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1.pipe ; mkfifo HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1.pipe >> ../files/HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1.sim & ./HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1.pipe 2>&1)