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: "" <> buildModelFMU(HanserModelica.InductionMachines.IMC_Inverter1,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_Inverter1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.InductionMachines.IMC_Inverter1,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_Inverter1",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.005354/0.005354, allocations: 179.7 kB / 7.458 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.06164/0.06164, allocations: 8.705 MB / 16.58 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 2.129/2.129, allocations: 221.4 MB / 240.5 MB, free: 8.168 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.001529/0.001529, allocations: 105.6 kB / 293.5 MB, free: 5.488 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2728/0.2744, allocations: 58.67 MB / 352.2 MB, free: 10.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6182/0.8927, allocations: 52.53 MB / 404.7 MB, free: 26.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7211/1.614, allocations: 108.2 MB / 0.5009 GB, free: 95.69 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004032/1.614, allocations: 74.61 kB / 0.501 GB, free: 95.69 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.3262/1.941, allocations: 84.67 MB / 0.5837 GB, free: 21.92 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.903e-05/1.941, allocations: 12 kB / 0.5837 GB, free: 21.91 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008105/1.949, allocations: 0.7567 MB / 0.5844 GB, free: 21.15 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01861/1.967, allocations: 3.522 MB / 0.5879 GB, free: 17.57 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003472/1.968, allocations: 104 kB / 0.588 GB, free: 17.46 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002322/1.97, allocations: 207.9 kB / 0.5882 GB, free: 17.26 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01601/1.986, allocations: 3.313 MB / 0.5914 GB, free: 13.94 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02067/2.007, allocations: 3.89 MB / 0.5952 GB, free: 9.93 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002131/2.007, allocations: 0 / 0.5952 GB, free: 9.93 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001252/2.009, allocations: 4 kB / 0.5952 GB, free: 9.926 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002583/2.009, allocations: 158.6 kB / 0.5953 GB, free: 9.77 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05109/2.06, allocations: 13.65 MB / 0.6087 GB, free: 11.72 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0034/2.064, allocations: 0.9397 MB / 0.6096 GB, free: 10.78 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004236/2.068, allocations: 1.189 MB / 0.6107 GB, free: 9.586 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01248/2.08, allocations: 2.976 MB / 0.6137 GB, free: 6.523 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001059/2.081, allocations: 51.88 kB / 0.6137 GB, free: 6.465 MB / 394.7 MB Notification: Performance of pre-optimization done (n=135): time 1.225e-05/2.081, allocations: 0 / 0.6137 GB, free: 6.465 MB / 394.7 MB Notification: Performance of matching and sorting (n=138): time 0.01841/2.099, allocations: 4.034 MB / 0.6176 GB, free: 2.32 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.213e-05/2.099, allocations: 64.72 kB / 0.6177 GB, free: 2.246 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005056/2.104, allocations: 1.205 MB / 0.6189 GB, free: 1.035 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007001/2.105, allocations: 25.7 kB / 0.6189 GB, free: 1.004 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002069/2.107, allocations: 1.241 MB / 0.6201 GB, free: 15.74 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001268/2.108, allocations: 465.1 kB / 0.6206 GB, free: 15.28 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001357/2.109, allocations: 0 / 0.6206 GB, free: 15.28 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004141/2.109, allocations: 373.9 kB / 0.6209 GB, free: 14.91 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001943/2.111, allocations: 0.6404 MB / 0.6215 GB, free: 14.27 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002438/2.113, allocations: 1.143 MB / 0.6227 GB, free: 12.9 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00302/2.117, allocations: 0.908 MB / 0.6235 GB, free: 12 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.726e-05/2.117, allocations: 4 kB / 0.6235 GB, free: 12 MB / 410.7 MB Notification: Performance of matching and sorting (n=223) (initialization): time 0.007588/2.124, allocations: 2.168 MB / 0.6257 GB, free: 9.785 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.036e-05/2.124, allocations: 4 kB / 0.6257 GB, free: 9.781 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.742e-05/2.124, allocations: 16 kB / 0.6257 GB, free: 9.766 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005527/2.125, allocations: 134.5 kB / 0.6258 GB, free: 9.625 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002837/2.128, allocations: 431.5 kB / 0.6262 GB, free: 9.203 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005432/2.133, allocations: 2.925 MB / 0.6291 GB, free: 6.047 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003722/2.137, allocations: 48.03 kB / 0.6291 GB, free: 6 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006197/2.138, allocations: 76.06 kB / 0.6292 GB, free: 5.926 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.0007283/2.138, allocations: 160.3 kB / 0.6294 GB, free: 5.762 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008848/2.139, allocations: 165.9 kB / 0.6295 GB, free: 5.598 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007763/2.147, allocations: 2.108 MB / 0.6316 GB, free: 3.414 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.757e-05/2.147, allocations: 12 kB / 0.6316 GB, free: 3.402 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.675e-05/2.147, allocations: 12 kB / 0.6316 GB, free: 3.391 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.824e-05/2.147, allocations: 7.969 kB / 0.6316 GB, free: 3.383 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02091/2.168, allocations: 4.74 MB / 0.6362 GB, free: 14.49 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.177e-05/2.168, allocations: 4 kB / 0.6362 GB, free: 14.48 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001692/2.17, allocations: 195.9 kB / 0.6364 GB, free: 14.29 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002475/2.172, allocations: 429.6 kB / 0.6368 GB, free: 13.86 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002618/2.173, allocations: 19.98 kB / 0.6368 GB, free: 13.84 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01769/2.19, allocations: 9.457 MB / 0.6461 GB, free: 3.812 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.099e-05/2.191, allocations: 0 / 0.6461 GB, free: 3.812 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01049/2.201, allocations: 3.035 MB / 0.649 GB, free: 0.6484 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01537/2.216, allocations: 5.967 MB / 0.6549 GB, free: 10.54 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002293/2.219, allocations: 390.9 kB / 0.6552 GB, free: 10.14 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007825/2.22, allocations: 8 kB / 0.6553 GB, free: 10.13 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001821/2.221, allocations: 55.89 kB / 0.6553 GB, free: 10.08 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000295/2.222, allocations: 77.09 kB / 0.6554 GB, free: 10 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001743/2.222, allocations: 40 kB / 0.6554 GB, free: 9.965 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.002771/2.225, allocations: 0.8999 MB / 0.6563 GB, free: 9.066 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.006688/2.231, allocations: 0.543 MB / 0.6568 GB, free: 8.523 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.001355/2.233, allocations: 350.7 kB / 0.6572 GB, free: 8.18 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.007218/2.24, allocations: 1.853 MB / 0.659 GB, free: 6.285 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.365e-05/2.24, allocations: 1.312 kB / 0.659 GB, free: 6.285 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005593/2.246, allocations: 1.369 MB / 0.6603 GB, free: 4.867 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005017/2.251, allocations: 358.8 kB / 0.6607 GB, free: 4.516 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4895/2.741, allocations: 4.661 MB / 0.6652 GB, free: 121.4 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007094/2.748, allocations: 2.574 MB / 0.6677 GB, free: 120.7 MB / 442.7 MB Notification: Performance of SimCode: time 3.256e-06/2.748, allocations: 0 / 0.6677 GB, free: 120.7 MB / 442.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_InductionMachines_IMC_Inverter1_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-08 HanserModelica_HanserModelica_InductionMachines_IMC_Inverter1.fmu > HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1.pipe 2>&1)