Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.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.SynchronousMachines.SMR_Inverter,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMR_Inverter,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMR_Inverter",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.00718/0.00718, allocations: 182.6 kB / 7.459 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.07507/0.07507, allocations: 8.708 MB / 16.57 MB, free: 448 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.145/2.145, allocations: 221.4 MB / 240.5 MB, free: 8.227 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.001263/0.001263, allocations: 96.28 kB / 293.5 MB, free: 5.492 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2525/0.2538, allocations: 58.68 MB / 352.2 MB, free: 10.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5027/0.7566, allocations: 52.53 MB / 404.7 MB, free: 26.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6044/1.361, allocations: 109.4 MB / 0.502 GB, free: 47.78 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003164/1.361, allocations: 77.06 kB / 0.5021 GB, free: 47.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: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.2379/1.599, allocations: 80.99 MB / 0.5812 GB, free: 11.8 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.745e-05/1.599, allocations: 8 kB / 0.5812 GB, free: 11.79 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008667/1.608, allocations: 0.6907 MB / 0.5819 GB, free: 11.1 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01438/1.623, allocations: 3.239 MB / 0.585 GB, free: 7.859 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002286/1.623, allocations: 100 kB / 0.5851 GB, free: 7.762 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001665/1.625, allocations: 191.9 kB / 0.5853 GB, free: 7.574 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01092/1.636, allocations: 3.035 MB / 0.5883 GB, free: 4.535 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01674/1.652, allocations: 3.59 MB / 0.5918 GB, free: 0.8125 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003493/1.653, allocations: 7.984 kB / 0.5918 GB, free: 0.8047 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001736/1.655, allocations: 0 / 0.5918 GB, free: 0.8047 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001878/1.655, allocations: 146.3 kB / 0.5919 GB, free: 0.6602 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04422/1.699, allocations: 12.66 MB / 0.6043 GB, free: 3.715 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003298/1.702, allocations: 0.8531 MB / 0.6051 GB, free: 2.855 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003319/1.706, allocations: 1.097 MB / 0.6062 GB, free: 1.762 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009299/1.715, allocations: 2.737 MB / 0.6089 GB, free: 14.96 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.678e-05/1.715, allocations: 47.56 kB / 0.6089 GB, free: 14.91 MB / 410.7 MB Notification: Performance of pre-optimization done (n=125): time 5.771e-06/1.715, allocations: 0 / 0.6089 GB, free: 14.91 MB / 410.7 MB Notification: Performance of matching and sorting (n=128): time 0.01081/1.726, allocations: 3.625 MB / 0.6125 GB, free: 11.18 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.689e-05/1.726, allocations: 68.66 kB / 0.6125 GB, free: 11.11 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003337/1.73, allocations: 1.141 MB / 0.6136 GB, free: 9.957 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003409/1.73, allocations: 25.7 kB / 0.6137 GB, free: 9.926 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001246/1.731, allocations: 1.19 MB / 0.6148 GB, free: 8.719 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007108/1.732, allocations: 433.5 kB / 0.6153 GB, free: 8.289 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.209e-05/1.732, allocations: 0 / 0.6153 GB, free: 8.289 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002564/1.732, allocations: 377.8 kB / 0.6156 GB, free: 7.914 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001179/1.733, allocations: 0.5702 MB / 0.6162 GB, free: 7.344 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001508/1.735, allocations: 1.051 MB / 0.6172 GB, free: 6.082 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001757/1.737, allocations: 0.8221 MB / 0.618 GB, free: 5.258 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.447e-06/1.737, allocations: 4 kB / 0.618 GB, free: 5.254 MB / 410.7 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.004416/1.741, allocations: 2.004 MB / 0.62 GB, free: 3.215 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.679e-05/1.741, allocations: 4 kB / 0.62 GB, free: 3.211 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.062e-05/1.741, allocations: 16 kB / 0.62 GB, free: 3.195 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000486/1.742, allocations: 138.8 kB / 0.6201 GB, free: 3.051 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001806/1.744, allocations: 399.4 kB / 0.6205 GB, free: 2.656 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003571/1.747, allocations: 2.932 MB / 0.6234 GB, free: 15.49 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002048/1.749, allocations: 39.89 kB / 0.6234 GB, free: 15.45 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002508/1.75, allocations: 80.05 kB / 0.6235 GB, free: 15.38 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 70 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (203): * Single equations (assignments): 200 * 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.0004457/1.75, allocations: 144.5 kB / 0.6236 GB, free: 15.23 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004941/1.75, allocations: 162 kB / 0.6238 GB, free: 15.07 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005745/1.756, allocations: 1.844 MB / 0.6256 GB, free: 13.16 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.578e-05/1.756, allocations: 12 kB / 0.6256 GB, free: 13.15 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.175e-05/1.756, allocations: 8 kB / 0.6256 GB, free: 13.14 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.07e-05/1.756, allocations: 3.984 kB / 0.6256 GB, free: 13.14 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0144/1.771, allocations: 4.253 MB / 0.6297 GB, free: 8.777 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.241e-05/1.771, allocations: 3.938 kB / 0.6297 GB, free: 8.773 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001241/1.772, allocations: 223.9 kB / 0.63 GB, free: 8.555 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001027/1.773, allocations: 299.2 kB / 0.6302 GB, free: 8.25 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.887e-05/1.773, allocations: 15.98 kB / 0.6303 GB, free: 8.234 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0114/1.785, allocations: 7.013 MB / 0.6371 GB, free: 0.7656 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.937e-06/1.785, allocations: 4 kB / 0.6371 GB, free: 0.7617 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009029/1.794, allocations: 2.714 MB / 0.6398 GB, free: 13.93 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01292/1.807, allocations: 5.372 MB / 0.645 GB, free: 8.426 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002509/1.81, allocations: 370.9 kB / 0.6454 GB, free: 8.043 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001186/1.811, allocations: 12 kB / 0.6454 GB, free: 8.031 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003193/1.814, allocations: 47.97 kB / 0.6454 GB, free: 7.984 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006286/1.815, allocations: 68.88 kB / 0.6455 GB, free: 7.918 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003706/1.815, allocations: 36 kB / 0.6455 GB, free: 7.883 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.004956/1.82, allocations: 0.8483 MB / 0.6463 GB, free: 7.035 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00755/1.828, allocations: 0.5194 MB / 0.6469 GB, free: 6.516 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 8 (smr.inertiaRotor.w,smr.stator.core.Phi.re,smr.stator.core.Phi.im,smr.stator.zeroInductor.i0,smr.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smr.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,vfController.x,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (104): * Single equations (assignments): 100 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 5,(1,100.0%) 1,(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.001765/1.83, allocations: 360 kB / 0.6472 GB, free: 6.184 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.007035/1.837, allocations: 1.707 MB / 0.6489 GB, free: 4.438 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.136e-05/1.837, allocations: 5.375 kB / 0.6489 GB, free: 4.434 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004227/1.841, allocations: 1.132 MB / 0.65 GB, free: 3.262 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005049/1.846, allocations: 354.3 kB / 0.6503 GB, free: 2.922 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02632/1.873, allocations: 4.421 MB / 0.6546 GB, free: 14.42 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0101/1.883, allocations: 2.443 MB / 0.657 GB, free: 11.95 MB / 458.7 MB Notification: Performance of SimCode: time 5.841e-06/1.883, allocations: 0 / 0.657 GB, free: 11.95 MB / 458.7 MB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMR_Inverter_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMR_Inverter.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.pipe 2>&1)