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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001188/0.001188, allocations: 172.9 kB / 7.647 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.04144/0.04144, allocations: 8.707 MB / 16.79 MB, free: 3.379 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.418/1.418, allocations: 221.5 MB / 240.9 MB, free: 13.21 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.0009961/0.0009963, allocations: 94.45 kB / 293.9 MB, free: 7.211 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.968e-05/1.969e-05, allocations: 4 kB / 352.7 MB, free: 1.168 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1279/0.1279, allocations: 52.55 MB / 405.3 MB, free: 12.56 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4085/0.5364, allocations: 108.3 MB / 0.5016 GB, free: 11.23 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002234/0.5367, allocations: 71.53 kB / 0.5016 GB, free: 11.2 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4631/0.9999, allocations: 81.89 MB / 0.5816 GB, free: 74.17 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.354e-06/0.9999, allocations: 0 / 0.5816 GB, free: 74.17 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002284/1, allocations: 80.34 kB / 0.5817 GB, free: 74.16 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: 880 * Number of variables: 880 Notification: Performance of Generate backend data structure: time 0.008451/1.009, allocations: 3.286 MB / 0.5849 GB, free: 73.05 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.158e-05/1.009, allocations: 16.3 kB / 0.5849 GB, free: 73.04 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004571/1.013, allocations: 0.7452 MB / 0.5856 GB, free: 72.86 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008938/1.022, allocations: 3.502 MB / 0.5891 GB, free: 72.34 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001447/1.022, allocations: 114.2 kB / 0.5892 GB, free: 72.34 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008419/1.023, allocations: 199.5 kB / 0.5894 GB, free: 72.34 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006869/1.03, allocations: 3.26 MB / 0.5925 GB, free: 72.32 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006805/1.037, allocations: 3.851 MB / 0.5963 GB, free: 71.92 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.187e-05/1.037, allocations: 2.531 kB / 0.5963 GB, free: 71.92 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002674/1.037, allocations: 3.312 kB / 0.5963 GB, free: 71.92 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001465/1.038, allocations: 150.9 kB / 0.5964 GB, free: 71.91 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02537/1.063, allocations: 13.57 MB / 0.6097 GB, free: 68.88 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005422/1.068, allocations: 5.976 MB / 0.6155 GB, free: 64.24 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001892/1.07, allocations: 1.118 MB / 0.6166 GB, free: 64.21 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00606/1.076, allocations: 3.184 MB / 0.6197 GB, free: 63.54 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.3e-05/1.076, allocations: 47.81 kB / 0.6198 GB, free: 63.5 MB / 442.7 MB Notification: Performance of pre-optimization done (n=113): time 3.597e-06/1.076, allocations: 2.062 kB / 0.6198 GB, free: 63.5 MB / 442.7 MB Notification: Performance of matching and sorting (n=116): time 0.00813/1.085, allocations: 3.921 MB / 0.6236 GB, free: 62.33 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.157e-05/1.085, allocations: 67.47 kB / 0.6237 GB, free: 62.27 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002124/1.087, allocations: 1.183 MB / 0.6248 GB, free: 62.1 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 9.531e-05/1.087, allocations: 28.33 kB / 0.6249 GB, free: 62.07 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009138/1.088, allocations: 1.502 MB / 0.6263 GB, free: 61.29 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002996/1.088, allocations: 395.4 kB / 0.6267 GB, free: 61.04 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.451e-05/1.088, allocations: 0 / 0.6267 GB, free: 61.04 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001152/1.088, allocations: 368.8 kB / 0.627 GB, free: 60.73 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000844/1.089, allocations: 0.5489 MB / 0.6276 GB, free: 60.73 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001129/1.09, allocations: 1.035 MB / 0.6286 GB, free: 60.13 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0016/1.092, allocations: 0.8824 MB / 0.6295 GB, free: 60 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.325e-05/1.092, allocations: 5.094 kB / 0.6295 GB, free: 60 MB / 442.7 MB Notification: Performance of matching and sorting (n=201) (initialization): time 0.003829/1.096, allocations: 2.036 MB / 0.6315 GB, free: 59.18 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.652e-05/1.096, allocations: 11.69 kB / 0.6315 GB, free: 59.18 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.228e-05/1.096, allocations: 16.34 kB / 0.6315 GB, free: 59.18 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004039/1.096, allocations: 132.2 kB / 0.6316 GB, free: 59.13 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001576/1.098, allocations: 398 kB / 0.632 GB, free: 59.12 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002117/1.1, allocations: 2.96 MB / 0.6349 GB, free: 56.36 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00143/1.101, allocations: 45.84 kB / 0.6349 GB, free: 56.36 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001437/1.102, allocations: 75.27 kB / 0.635 GB, free: 56.34 MB / 442.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 (194): * Single equations (assignments): 191 * 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.0003179/1.102, allocations: 157.1 kB / 0.6351 GB, free: 56.22 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003078/1.105, allocations: 1.847 MB / 0.6369 GB, free: 55.34 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002097/1.105, allocations: 166.6 kB / 0.6371 GB, free: 55.26 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0032/1.108, allocations: 1.965 MB / 0.639 GB, free: 54.33 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.417e-06/1.108, allocations: 11.41 kB / 0.639 GB, free: 54.33 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.048e-05/1.108, allocations: 11.73 kB / 0.639 GB, free: 54.32 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.386e-05/1.108, allocations: 6.609 kB / 0.639 GB, free: 54.32 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00689/1.115, allocations: 4.217 MB / 0.6432 GB, free: 52.33 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.013e-06/1.115, allocations: 7.438 kB / 0.6432 GB, free: 52.32 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006797/1.116, allocations: 162.3 kB / 0.6433 GB, free: 52.32 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009917/1.117, allocations: 435.3 kB / 0.6437 GB, free: 52.16 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.473e-05/1.117, allocations: 16.59 kB / 0.6438 GB, free: 52.15 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007708/1.125, allocations: 9.682 MB / 0.6532 GB, free: 44.05 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.314e-06/1.125, allocations: 11.28 kB / 0.6532 GB, free: 44.04 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004296/1.129, allocations: 2.836 MB / 0.656 GB, free: 42.52 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008193/1.13, allocations: 363.3 kB / 0.6563 GB, free: 42.25 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001901/1.13, allocations: 10.81 kB / 0.6564 GB, free: 42.25 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007478/1.131, allocations: 53.2 kB / 0.6564 GB, free: 42.25 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000236/1.131, allocations: 89.22 kB / 0.6565 GB, free: 42.23 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.798e-05/1.131, allocations: 40.06 kB / 0.6565 GB, free: 42.22 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001327/1.133, allocations: 0.8865 MB / 0.6574 GB, free: 41.82 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.3e-07/1.133, allocations: 0 / 0.6574 GB, free: 41.82 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00233/1.135, allocations: 0.5052 MB / 0.6579 GB, free: 41.8 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 (79): * Single equations (assignments): 74 * 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%) 1,(1,100.0%) 8,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004315/1.139, allocations: 4.006 MB / 0.6618 GB, free: 39.34 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002266/1.142, allocations: 1.649 MB / 0.6634 GB, free: 38.54 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.586e-06/1.142, allocations: 0 / 0.6634 GB, free: 38.54 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001616/1.143, allocations: 1.358 MB / 0.6647 GB, free: 37.66 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001908/1.145, allocations: 387.8 kB / 0.6651 GB, free: 37.55 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009434/1.155, allocations: 5.289 MB / 0.6703 GB, free: 35.29 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00184/1.157, allocations: 2.417 MB / 0.6726 GB, free: 34.2 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001373/1.158, allocations: 360.9 kB / 0.673 GB, free: 34.14 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001175/1.159, allocations: 1.132 MB / 0.6741 GB, free: 33.18 MB / 442.7 MB Notification: Performance of SimCode: time 1.102e-06/1.159, allocations: 2.062 kB / 0.6741 GB, free: 33.18 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07862/1.238, allocations: 42.24 MB / 0.7153 GB, free: 15.7 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001775/1.238, allocations: 132.7 kB / 0.7155 GB, free: 15.5 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.318/4.556, allocations: 0 / 0.7155 GB, free: 15.5 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)