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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001459/0.001459, allocations: 180.9 kB / 7.651 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.06377/0.06377, allocations: 8.719 MB / 16.79 MB, free: 3.387 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.534/1.534, allocations: 221.5 MB / 240.9 MB, free: 13.12 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.0009981/0.0009981, allocations: 97.34 kB / 293.9 MB, free: 7.246 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.577e-05/1.576e-05, allocations: 0 / 352.7 MB, free: 1.152 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1174/0.1175, allocations: 52.55 MB / 405.3 MB, free: 12.55 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3784/0.4959, allocations: 109.5 MB / 0.5027 GB, free: 10.38 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000252/0.4962, allocations: 74.41 kB / 0.5027 GB, free: 10.35 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4644/0.9607, allocations: 77.95 MB / 0.5789 GB, free: 74.64 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.9607, allocations: 0 / 0.5789 GB, free: 74.64 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002072/0.9609, allocations: 83.16 kB / 0.5789 GB, free: 74.63 MB / 442.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.007712/0.9686, allocations: 3.106 MB / 0.582 GB, free: 73.59 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.837e-05/0.9687, allocations: 15.61 kB / 0.582 GB, free: 73.59 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003661/0.9724, allocations: 0.6843 MB / 0.5826 GB, free: 73.41 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007881/0.9803, allocations: 3.232 MB / 0.5858 GB, free: 72.9 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001433/0.9805, allocations: 104 kB / 0.5859 GB, free: 72.9 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009075/0.9814, allocations: 188.4 kB / 0.5861 GB, free: 72.9 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007416/0.9888, allocations: 2.975 MB / 0.589 GB, free: 72.89 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008116/0.997, allocations: 3.56 MB / 0.5925 GB, free: 72.49 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.755e-05/0.9971, allocations: 7.281 kB / 0.5925 GB, free: 72.48 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00027/0.9973, allocations: 3.094 kB / 0.5925 GB, free: 72.48 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001275/0.9975, allocations: 139.8 kB / 0.5926 GB, free: 72.48 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02046/1.018, allocations: 12.6 MB / 0.6049 GB, free: 69.59 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004533/1.023, allocations: 5.361 MB / 0.6102 GB, free: 65.43 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001716/1.024, allocations: 0.9909 MB / 0.6111 GB, free: 65.4 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005466/1.03, allocations: 2.945 MB / 0.614 GB, free: 64.72 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.988e-05/1.03, allocations: 44.89 kB / 0.614 GB, free: 64.68 MB / 442.7 MB Notification: Performance of pre-optimization done (n=105): time 3.026e-06/1.03, allocations: 0.8438 kB / 0.614 GB, free: 64.68 MB / 442.7 MB Notification: Performance of matching and sorting (n=108): time 0.007552/1.037, allocations: 3.539 MB / 0.6175 GB, free: 63.57 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.871e-05/1.037, allocations: 63.47 kB / 0.6176 GB, free: 63.51 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002052/1.04, allocations: 1.13 MB / 0.6187 GB, free: 63.34 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001115/1.04, allocations: 27.2 kB / 0.6187 GB, free: 63.31 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001068/1.041, allocations: 1.433 MB / 0.6201 GB, free: 62.57 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003272/1.041, allocations: 372.2 kB / 0.6204 GB, free: 62.34 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.165e-05/1.041, allocations: 0 / 0.6204 GB, free: 62.34 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000111/1.041, allocations: 361.3 kB / 0.6208 GB, free: 62.03 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008794/1.042, allocations: 0.4941 MB / 0.6213 GB, free: 62.03 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009801/1.043, allocations: 0.9659 MB / 0.6222 GB, free: 61.44 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001447/1.045, allocations: 0.808 MB / 0.623 GB, free: 61.41 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.256e-05/1.045, allocations: 8.688 kB / 0.623 GB, free: 61.41 MB / 442.7 MB Notification: Performance of matching and sorting (n=190) (initialization): time 0.00376/1.048, allocations: 1.884 MB / 0.6248 GB, free: 61.13 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.615e-05/1.048, allocations: 11.66 kB / 0.6249 GB, free: 61.13 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.657e-05/1.048, allocations: 14.53 kB / 0.6249 GB, free: 61.13 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003981/1.049, allocations: 139.1 kB / 0.625 GB, free: 61.1 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001434/1.05, allocations: 369.7 kB / 0.6254 GB, free: 61.1 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002002/1.052, allocations: 2.961 MB / 0.6282 GB, free: 58.63 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001555/1.054, allocations: 42.36 kB / 0.6283 GB, free: 58.62 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001459/1.054, allocations: 71.28 kB / 0.6284 GB, free: 58.62 MB / 442.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 (183): * Single equations (assignments): 180 * 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%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002873/1.054, allocations: 150.4 kB / 0.6285 GB, free: 58.51 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002935/1.057, allocations: 1.621 MB / 0.6301 GB, free: 58.12 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000242/1.058, allocations: 152.8 kB / 0.6302 GB, free: 58.05 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003143/1.061, allocations: 1.738 MB / 0.6319 GB, free: 57.56 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.363e-05/1.061, allocations: 12.16 kB / 0.6319 GB, free: 57.56 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.122e-05/1.061, allocations: 8.047 kB / 0.6319 GB, free: 57.56 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.443e-05/1.061, allocations: 5.766 kB / 0.632 GB, free: 57.56 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006506/1.067, allocations: 3.822 MB / 0.6357 GB, free: 55.73 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.59e-06/1.067, allocations: 3.281 kB / 0.6357 GB, free: 55.73 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007955/1.068, allocations: 185.7 kB / 0.6359 GB, free: 55.73 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007345/1.069, allocations: 303.8 kB / 0.6362 GB, free: 55.61 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.147e-05/1.069, allocations: 16.91 kB / 0.6362 GB, free: 55.6 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004884/1.074, allocations: 7.156 MB / 0.6432 GB, free: 49.4 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.419e-06/1.074, allocations: 0 / 0.6432 GB, free: 49.4 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003428/1.077, allocations: 2.538 MB / 0.6456 GB, free: 48 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006385/1.078, allocations: 336.8 kB / 0.646 GB, free: 47.75 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001897/1.078, allocations: 15.11 kB / 0.646 GB, free: 47.74 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007228/1.079, allocations: 48.55 kB / 0.646 GB, free: 47.74 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001742/1.079, allocations: 83.05 kB / 0.6461 GB, free: 47.72 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.249e-05/1.079, allocations: 32.67 kB / 0.6461 GB, free: 47.71 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001149/1.08, allocations: 0.8442 MB / 0.647 GB, free: 47.33 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.7e-07/1.08, allocations: 0 / 0.647 GB, free: 47.33 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001925/1.082, allocations: 489.4 kB / 0.6474 GB, free: 47.31 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 (84): * Single equations (assignments): 80 * 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.003703/1.086, allocations: 3.733 MB / 0.6511 GB, free: 44.96 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002062/1.088, allocations: 1.541 MB / 0.6526 GB, free: 44.2 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.841e-06/1.088, allocations: 6.625 kB / 0.6526 GB, free: 44.19 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001287/1.089, allocations: 1.11 MB / 0.6537 GB, free: 43.5 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001751/1.091, allocations: 364.9 kB / 0.654 GB, free: 43.41 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009611/1.101, allocations: 4.99 MB / 0.6589 GB, free: 41.28 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001696/1.102, allocations: 2.286 MB / 0.6611 GB, free: 40.23 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.00141/1.104, allocations: 352.3 kB / 0.6615 GB, free: 40.18 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001205/1.105, allocations: 1.093 MB / 0.6625 GB, free: 39.25 MB / 442.7 MB Notification: Performance of SimCode: time 1.212e-06/1.105, allocations: 4 kB / 0.6625 GB, free: 39.25 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0707/1.176, allocations: 39.57 MB / 0.7012 GB, free: 30.11 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002104/1.176, allocations: 134.2 kB / 0.7013 GB, free: 29.92 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.246/4.422, allocations: 2.391 kB / 0.7013 GB, free: 29.92 MB / 442.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)