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: "" <> buildModelFMU(HanserModelica.InductionMachines.IMC_Inverter2,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_Inverter2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.InductionMachines.IMC_Inverter2,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_Inverter2",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.008011/0.008011, allocations: 178.8 kB / 7.456 MB, free: 2.512 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.06363/0.06363, allocations: 8.706 MB / 16.58 MB, free: 428 kB / 10.45 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.406/2.406, 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.001389/0.001389, allocations: 97.83 kB / 293.5 MB, free: 5.457 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2261/0.2275, allocations: 58.67 MB / 352.2 MB, free: 10.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5828/0.8103, allocations: 52.54 MB / 404.7 MB, free: 26.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6931/1.504, allocations: 108.3 MB / 0.5009 GB, free: 95.78 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002648/1.504, allocations: 78.23 kB / 0.501 GB, free: 95.78 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.3502/1.854, allocations: 85.12 MB / 0.5841 GB, free: 21.4 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.232e-05/1.854, allocations: 8 kB / 0.5841 GB, free: 21.39 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008915/1.863, allocations: 0.7489 MB / 0.5849 GB, free: 20.64 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01715/1.88, allocations: 3.522 MB / 0.5883 GB, free: 17.06 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004525/1.881, allocations: 108 kB / 0.5884 GB, free: 16.95 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00241/1.883, allocations: 203.9 kB / 0.5886 GB, free: 16.75 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01565/1.899, allocations: 3.309 MB / 0.5918 GB, free: 13.44 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02046/1.92, allocations: 3.89 MB / 0.5956 GB, free: 9.43 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002309/1.92, allocations: 0 / 0.5956 GB, free: 9.43 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001479/1.921, allocations: 4 kB / 0.5956 GB, free: 9.426 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002316/1.922, allocations: 166.6 kB / 0.5958 GB, free: 9.262 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04983/1.972, allocations: 13.63 MB / 0.6091 GB, free: 11.23 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003706/1.975, allocations: 0.9517 MB / 0.61 GB, free: 10.27 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004275/1.98, allocations: 1.185 MB / 0.6112 GB, free: 9.082 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01365/1.993, allocations: 2.98 MB / 0.6141 GB, free: 6.012 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001183/1.994, allocations: 47.88 kB / 0.6142 GB, free: 5.957 MB / 394.7 MB Notification: Performance of pre-optimization done (n=135): time 1.142e-05/1.994, allocations: 0 / 0.6142 GB, free: 5.957 MB / 394.7 MB Notification: Performance of matching and sorting (n=138): time 0.01803/2.012, allocations: 4.042 MB / 0.6181 GB, free: 1.809 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.372e-05/2.012, allocations: 68.72 kB / 0.6182 GB, free: 1.727 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005391/2.017, allocations: 1.193 MB / 0.6193 GB, free: 0.5273 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005113/2.018, allocations: 33.64 kB / 0.6194 GB, free: 500 kB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001822/2.02, allocations: 1.241 MB / 0.6206 GB, free: 15.23 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001165/2.021, allocations: 465.1 kB / 0.621 GB, free: 14.77 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001377/2.021, allocations: 0 / 0.621 GB, free: 14.77 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004155/2.021, allocations: 377.9 kB / 0.6214 GB, free: 14.39 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001936/2.023, allocations: 0.6404 MB / 0.622 GB, free: 13.75 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002757/2.026, allocations: 1.135 MB / 0.6231 GB, free: 12.39 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003016/2.029, allocations: 0.908 MB / 0.624 GB, free: 11.49 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-05/2.029, allocations: 4 kB / 0.624 GB, free: 11.48 MB / 410.7 MB Notification: Performance of matching and sorting (n=223) (initialization): time 0.007373/2.037, allocations: 2.168 MB / 0.6261 GB, free: 9.281 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.059e-05/2.037, allocations: 7.984 kB / 0.6261 GB, free: 9.273 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.623e-05/2.037, allocations: 16 kB / 0.6261 GB, free: 9.258 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000697/2.038, allocations: 134.9 kB / 0.6263 GB, free: 9.117 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003009/2.041, allocations: 435.3 kB / 0.6267 GB, free: 8.691 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004432/2.045, allocations: 2.925 MB / 0.6295 GB, free: 5.531 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002928/2.048, allocations: 44.03 kB / 0.6296 GB, free: 5.488 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004666/2.048, allocations: 80.05 kB / 0.6297 GB, free: 5.41 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.0005919/2.049, allocations: 156.3 kB / 0.6298 GB, free: 5.25 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007736/2.05, allocations: 169.9 kB / 0.63 GB, free: 5.082 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007699/2.058, allocations: 2.104 MB / 0.632 GB, free: 2.906 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.114e-05/2.058, allocations: 19.98 kB / 0.6321 GB, free: 2.887 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.224e-05/2.058, allocations: 4 kB / 0.6321 GB, free: 2.883 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.69e-05/2.058, allocations: 7.969 kB / 0.6321 GB, free: 2.875 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01781/2.076, allocations: 4.728 MB / 0.6367 GB, free: 13.99 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.437e-05/2.076, allocations: 4.125 kB / 0.6367 GB, free: 13.98 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001894/2.078, allocations: 199.9 kB / 0.6369 GB, free: 13.79 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002509/2.08, allocations: 437.7 kB / 0.6373 GB, free: 13.35 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002807/2.08, allocations: 19.98 kB / 0.6373 GB, free: 13.33 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01976/2.1, allocations: 9.448 MB / 0.6465 GB, free: 3.309 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.504e-05/2.1, allocations: 4.188 kB / 0.6465 GB, free: 3.305 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01018/2.111, allocations: 3.035 MB / 0.6495 GB, free: 144 kB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01655/2.127, allocations: 5.971 MB / 0.6553 GB, free: 10.03 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002529/2.13, allocations: 390.9 kB / 0.6557 GB, free: 9.629 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001/2.131, allocations: 15.98 kB / 0.6557 GB, free: 9.613 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002159/2.133, allocations: 51.95 kB / 0.6558 GB, free: 9.562 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003957/2.133, allocations: 73.11 kB / 0.6558 GB, free: 9.492 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001865/2.134, allocations: 43.98 kB / 0.6559 GB, free: 9.449 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.003339/2.137, allocations: 0.8998 MB / 0.6568 GB, free: 8.551 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.007513/2.145, allocations: 0.5391 MB / 0.6573 GB, free: 8.012 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.001419/2.146, allocations: 350.5 kB / 0.6576 GB, free: 7.668 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005487/2.152, allocations: 1.851 MB / 0.6594 GB, free: 5.773 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.189e-05/2.152, allocations: 4.062 kB / 0.6594 GB, free: 5.77 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004433/2.156, allocations: 1.365 MB / 0.6608 GB, free: 4.359 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004608/2.161, allocations: 364.3 kB / 0.6611 GB, free: 4.004 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4988/2.66, allocations: 4.661 MB / 0.6657 GB, free: 121.7 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005321/2.665, allocations: 2.57 MB / 0.6682 GB, free: 120.9 MB / 442.7 MB Notification: Performance of SimCode: time 2.464e-06/2.665, allocations: 0 / 0.6682 GB, free: 120.9 MB / 442.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_InductionMachines_IMC_Inverter2_fmu --startTime=0 --stopTime=3.5 --timeout=50 --tolerance=1e-08 HanserModelica_HanserModelica_InductionMachines_IMC_Inverter2.fmu > HanserModelica_HanserModelica.InductionMachines.IMC_Inverter2.pipe 2>&1)