Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.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_Steinmetz,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_Steinmetz",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.InductionMachines.IMC_Steinmetz,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_Steinmetz",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.007113/0.007114, allocations: 179.8 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.07851/0.07851, allocations: 8.703 MB / 16.57 MB, free: 436 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.245/2.245, allocations: 221.4 MB / 240.5 MB, free: 8.262 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.001433/0.001433, allocations: 97.94 kB / 293.5 MB, free: 7.422 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2262/0.2277, allocations: 58.68 MB / 352.2 MB, free: 12.71 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5362/0.7639, allocations: 52.53 MB / 404.7 MB, free: 26.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6239/1.388, allocations: 109.4 MB / 0.5021 GB, free: 96.27 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000348/1.388, allocations: 76.27 kB / 0.5022 GB, free: 96.27 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: 852 * Number of variables: 852 Notification: Performance of Generate backend data structure: time 0.3151/1.703, allocations: 83.09 MB / 0.5833 GB, free: 22.47 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.92e-05/1.703, allocations: 8 kB / 0.5833 GB, free: 22.46 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008498/1.712, allocations: 0.745 MB / 0.584 GB, free: 21.71 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01475/1.727, allocations: 3.336 MB / 0.5873 GB, free: 18.32 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000463/1.727, allocations: 104 kB / 0.5874 GB, free: 18.22 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002178/1.73, allocations: 203.9 kB / 0.5876 GB, free: 18.02 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01376/1.743, allocations: 3.16 MB / 0.5907 GB, free: 14.86 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02054/1.764, allocations: 3.731 MB / 0.5943 GB, free: 11.01 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004431/1.764, allocations: 7.906 kB / 0.5943 GB, free: 11 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002164/1.767, allocations: 4 kB / 0.5943 GB, free: 11 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003068/1.767, allocations: 146.5 kB / 0.5945 GB, free: 10.85 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04621/1.813, allocations: 13.32 MB / 0.6075 GB, free: 13.17 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003685/1.817, allocations: 1.128 MB / 0.6086 GB, free: 12.04 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003981/1.821, allocations: 1.341 MB / 0.6099 GB, free: 10.71 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01058/1.832, allocations: 3.275 MB / 0.6131 GB, free: 7.34 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002616/1.834, allocations: 0.9923 MB / 0.6141 GB, free: 6.316 MB / 394.7 MB Notification: Performance of pre-optimization done (n=168): time 1.194e-05/1.834, allocations: 3.984 kB / 0.6141 GB, free: 6.312 MB / 394.7 MB Notification: Performance of matching and sorting (n=171): time 0.01842/1.853, allocations: 4.639 MB / 0.6186 GB, free: 1.566 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003349/1.853, allocations: 235.6 kB / 0.6188 GB, free: 1.289 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004637/1.858, allocations: 1.271 MB / 0.6201 GB, free: 12 kB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000798/1.859, allocations: 29.7 kB / 0.6201 GB, free: 15.98 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002816/1.862, allocations: 1.188 MB / 0.6212 GB, free: 14.77 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001465/1.863, allocations: 0.5621 MB / 0.6218 GB, free: 14.2 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001652/1.863, allocations: 0 / 0.6218 GB, free: 14.2 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000337/1.864, allocations: 389.9 kB / 0.6222 GB, free: 13.81 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002124/1.866, allocations: 0.7343 MB / 0.6229 GB, free: 13.07 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002707/1.869, allocations: 1.377 MB / 0.6242 GB, free: 11.41 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003303/1.872, allocations: 1.048 MB / 0.6253 GB, free: 10.36 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.193e-05/1.872, allocations: 8 kB / 0.6253 GB, free: 10.36 MB / 410.7 MB Notification: Performance of matching and sorting (n=264) (initialization): time 0.008515/1.88, allocations: 2.657 MB / 0.6279 GB, free: 7.656 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.769e-05/1.881, allocations: 4 kB / 0.6279 GB, free: 7.652 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.643e-05/1.881, allocations: 20 kB / 0.6279 GB, free: 7.633 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001561/1.882, allocations: 368.2 kB / 0.6282 GB, free: 7.258 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002936/1.885, allocations: 427.3 kB / 0.6286 GB, free: 6.84 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01185/1.897, allocations: 7.303 MB / 0.6358 GB, free: 15.07 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003455/1.901, allocations: 67.92 kB / 0.6358 GB, free: 15.01 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004957/1.901, allocations: 87.94 kB / 0.6359 GB, free: 14.92 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 82 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition3,$whenCondition2,$whenCondition1,$PRE.rmsI[1].mean.y_last,rmsI[1].mean.y_last,$PRE.rmsI[2].mean.y_last,rmsI[2].mean.y_last,$PRE.rmsI[3].mean.y_last,rmsI[3].mean.y_last,booleanStep.y,greaterThreshold.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (233): * Single equations (assignments): 228 * 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: 4 * 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: 4 {(1,100.0%) 7,(2,100.0%) 8,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007002/1.902, allocations: 172.4 kB / 0.6361 GB, free: 14.75 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006962/1.903, allocations: 185.8 kB / 0.6363 GB, free: 14.56 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00768/1.91, allocations: 2.447 MB / 0.6386 GB, free: 12.04 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.152e-05/1.91, allocations: 16 kB / 0.6387 GB, free: 12.03 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.321e-05/1.91, allocations: 8 kB / 0.6387 GB, free: 12.02 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.755e-05/1.91, allocations: 7.969 kB / 0.6387 GB, free: 12.01 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01625/1.927, allocations: 5.222 MB / 0.6438 GB, free: 6.629 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.516e-05/1.927, allocations: 3.938 kB / 0.6438 GB, free: 6.625 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001681/1.928, allocations: 211.7 kB / 0.644 GB, free: 6.418 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002358/1.931, allocations: 0.5164 MB / 0.6445 GB, free: 5.883 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002243/1.931, allocations: 19.98 kB / 0.6445 GB, free: 5.863 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02035/1.951, allocations: 11.37 MB / 0.6556 GB, free: 9.801 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.246e-05/1.952, allocations: 4 kB / 0.6556 GB, free: 9.797 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01126/1.963, allocations: 3.584 MB / 0.6591 GB, free: 6.082 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01431/1.977, allocations: 5.024 MB / 0.664 GB, free: 0.9219 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002742/1.98, allocations: 438.7 kB / 0.6644 GB, free: 484 kB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001407/1.982, allocations: 15.98 kB / 0.6645 GB, free: 468 kB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002578/1.984, allocations: 43.97 kB / 0.6645 GB, free: 424 kB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000491/1.985, allocations: 89.17 kB / 0.6646 GB, free: 332 kB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002466/1.985, allocations: 51.97 kB / 0.6646 GB, free: 280 kB / 442.7 MB Notification: Performance of sort global known variables: time 0.4412/2.426, allocations: 0.9508 MB / 0.6656 GB, free: 118.7 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.007452/2.434, allocations: 0.585 MB / 0.6661 GB, free: 118.7 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 12 (imc.inertiaRotor.w,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,quadraticLoadTorque.phi,cRun.v,cStart.v,rmsI[1].mean.x,rmsI[2].mean.x,rmsI[3].mean.x) * Number of discrete variables: 8 ($whenCondition3,$whenCondition2,$whenCondition1,booleanStep.y,greaterThreshold.y,rmsI[1].mean.y_last,rmsI[2].mean.y_last,rmsI[3].mean.y_last) * Number of discrete states: 3 (rmsI[3].mean.x,rmsI[2].mean.x,rmsI[1].mean.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (120): * Single equations (assignments): 111 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 13,(1,100.0%) 1,(1,100.0%) 7,(2,100.0%) 8,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001575/2.435, allocations: 336.7 kB / 0.6665 GB, free: 118.7 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0061/2.442, allocations: 2.412 MB / 0.6688 GB, free: 118.2 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.103e-05/2.442, allocations: 0 / 0.6688 GB, free: 118.2 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00371/2.445, allocations: 1.641 MB / 0.6704 GB, free: 117.5 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003983/2.449, allocations: 380.5 kB / 0.6708 GB, free: 117.5 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02066/2.47, allocations: 4.951 MB / 0.6756 GB, free: 116.5 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005941/2.476, allocations: 2.555 MB / 0.6781 GB, free: 115.7 MB / 442.7 MB Notification: Performance of SimCode: time 1.874e-06/2.476, allocations: 3.688 kB / 0.6781 GB, free: 115.7 MB / 442.7 MB (rm -f HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.pipe ; mkfifo HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.pipe ; head -c 1048576 < HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.pipe >> ../files/HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_InductionMachines_IMC_Steinmetz_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_InductionMachines_IMC_Steinmetz.fmu > HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.pipe 2>&1)