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.004935/0.004935, allocations: 170.9 kB / 15.11 MB, free: 6.039 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0394/0.0394, allocations: 8.798 MB / 24.65 MB, free: 4.184 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.414/1.414, allocations: 223.2 MB / 250.7 MB, free: 6.535 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.0009883/0.0009883, allocations: 96.22 kB / 304 MB, free: 4 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005047/0.000505, allocations: 12 kB / 367.2 MB, free: 4.84 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3256/0.3261, allocations: 52.54 MB / 419.7 MB, free: 48.06 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.138/0.4642, allocations: 109.1 MB / 0.5164 GB, free: 11.96 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002395/0.4645, allocations: 79.97 kB / 0.5164 GB, free: 11.89 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4416/0.906, allocations: 82.92 MB / 0.5974 GB, free: 94.89 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.194e-06/0.9061, allocations: 0 / 0.5974 GB, free: 94.89 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002248/0.9063, allocations: 78.03 kB / 0.5975 GB, free: 94.88 MB / 426.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.009741/0.9161, allocations: 3.596 MB / 0.601 GB, free: 93.07 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.629e-05/0.9161, allocations: 7.312 kB / 0.601 GB, free: 93.07 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001781/0.9179, allocations: 0.5158 MB / 0.6015 GB, free: 92.79 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004414/0.9223, allocations: 0.7534 MB / 0.6022 GB, free: 92.54 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008824/0.9312, allocations: 3.536 MB / 0.6057 GB, free: 90.85 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002092/0.9314, allocations: 248.7 kB / 0.6059 GB, free: 90.74 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001008/0.9325, allocations: 341.7 kB / 0.6063 GB, free: 90.63 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007565/0.94, allocations: 4.418 MB / 0.6106 GB, free: 88.54 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.653e-05/0.9401, allocations: 0 / 0.6106 GB, free: 88.54 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000331/0.9405, allocations: 145.3 kB / 0.6107 GB, free: 88.43 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001252/0.9406, allocations: 157.4 kB / 0.6109 GB, free: 88.42 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005668/0.9463, allocations: 3.578 MB / 0.6144 GB, free: 86.92 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02019/0.9665, allocations: 14.25 MB / 0.6283 GB, free: 75.09 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004648/0.9712, allocations: 6.156 MB / 0.6343 GB, free: 68.14 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004617/0.9758, allocations: 2.974 MB / 0.6372 GB, free: 65.11 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.421e-05/0.9759, allocations: 55.56 kB / 0.6372 GB, free: 65.05 MB / 426.7 MB Notification: Performance of pre-optimization done (n=121): time 2.735e-06/0.9759, allocations: 0 / 0.6372 GB, free: 65.05 MB / 426.7 MB Notification: Performance of matching and sorting (n=124): time 0.009569/0.9855, allocations: 5.381 MB / 0.6425 GB, free: 59.47 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.46e-05/0.9856, allocations: 68.39 kB / 0.6426 GB, free: 59.39 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002076/0.9876, allocations: 1.459 MB / 0.644 GB, free: 57.93 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001038/0.9878, allocations: 45.7 kB / 0.644 GB, free: 57.88 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007203/0.9885, allocations: 1.478 MB / 0.6455 GB, free: 56.39 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002564/0.9888, allocations: 440.6 kB / 0.6459 GB, free: 55.96 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.804e-05/0.9888, allocations: 32 kB / 0.6459 GB, free: 55.93 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.509e-05/0.9889, allocations: 369.9 kB / 0.6463 GB, free: 55.57 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008966/0.9898, allocations: 0.6481 MB / 0.6469 GB, free: 54.92 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001057/0.9909, allocations: 1.137 MB / 0.648 GB, free: 53.57 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001093/0.992, allocations: 0.8613 MB / 0.6489 GB, free: 52.7 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.412e-06/0.992, allocations: 4 kB / 0.6489 GB, free: 52.7 MB / 426.7 MB Notification: Performance of matching and sorting (n=207) (initialization): time 0.002993/0.995, allocations: 2.233 MB / 0.651 GB, free: 50.43 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.418e-05/0.9951, allocations: 12 kB / 0.6511 GB, free: 50.42 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.919e-05/0.9951, allocations: 19.98 kB / 0.6511 GB, free: 50.4 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003385/0.9954, allocations: 134.5 kB / 0.6512 GB, free: 50.26 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001381/0.9968, allocations: 411.6 kB / 0.6516 GB, free: 49.86 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00183/0.9987, allocations: 3.099 MB / 0.6546 GB, free: 46.48 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001411/1, allocations: 83.86 kB / 0.6547 GB, free: 46.4 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001122/1, allocations: 72.06 kB / 0.6548 GB, free: 46.33 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (200): * Single equations (assignments): 197 * 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.002113/1.002, allocations: 1.038 MB / 0.6558 GB, free: 45.29 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003541/1.003, allocations: 185.8 kB / 0.656 GB, free: 45.1 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003179/1.006, allocations: 2.123 MB / 0.658 GB, free: 42.91 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.068e-05/1.006, allocations: 12 kB / 0.658 GB, free: 42.9 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.696e-06/1.006, allocations: 4 kB / 0.658 GB, free: 42.89 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.21e-05/1.006, allocations: 11.97 kB / 0.6581 GB, free: 42.88 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007148/1.013, allocations: 4.909 MB / 0.6629 GB, free: 37.87 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.811e-06/1.013, allocations: 4 kB / 0.6629 GB, free: 37.86 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007497/1.014, allocations: 179.8 kB / 0.663 GB, free: 37.69 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001038/1.015, allocations: 441.9 kB / 0.6634 GB, free: 37.24 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.458e-05/1.015, allocations: 39.98 kB / 0.6635 GB, free: 37.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00732/1.022, allocations: 10.24 MB / 0.6735 GB, free: 26.32 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.468e-06/1.022, allocations: 7.875 kB / 0.6735 GB, free: 26.31 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004149/1.027, allocations: 3.076 MB / 0.6765 GB, free: 23.11 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00104/1.028, allocations: 398.7 kB / 0.6769 GB, free: 22.7 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002295/1.028, allocations: 35.98 kB / 0.6769 GB, free: 22.66 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008182/1.029, allocations: 75.89 kB / 0.677 GB, free: 22.59 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002338/1.029, allocations: 96.81 kB / 0.6771 GB, free: 22.49 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.758e-05/1.029, allocations: 35.98 kB / 0.6771 GB, free: 22.46 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001502/1.031, allocations: 1.119 MB / 0.6782 GB, free: 21.34 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.51e-07/1.031, allocations: 0 / 0.6782 GB, free: 21.34 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002184/1.033, allocations: 0.5859 MB / 0.6788 GB, free: 20.76 MB / 426.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (87): * Single equations (assignments): 82 * 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%) 8,(1,100.0%) 1,(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.004341/1.037, allocations: 4.272 MB / 0.6829 GB, free: 16.39 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002631/1.04, allocations: 1.895 MB / 0.6848 GB, free: 14.45 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.882e-06/1.04, allocations: 4.5 kB / 0.6848 GB, free: 14.45 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001934/1.042, allocations: 1.533 MB / 0.6863 GB, free: 12.85 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002324/1.044, allocations: 0.4943 MB / 0.6868 GB, free: 12.36 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0332/1.077, allocations: 26.11 MB / 0.7123 GB, free: 1.23 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002701/1.08, allocations: 2.432 MB / 0.7147 GB, free: 14.77 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001804/1.082, allocations: 392.6 kB / 0.715 GB, free: 14.39 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001566/1.083, allocations: 1.112 MB / 0.7161 GB, free: 13.27 MB / 458.7 MB Notification: Performance of SimCode: time 3.076e-06/1.083, allocations: 0 / 0.7161 GB, free: 13.27 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3551/1.438, allocations: 50.51 MB / 0.7654 GB, free: 112.2 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001723/1.439, allocations: 196.3 kB / 0.7656 GB, free: 111.9 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.622/5.06, allocations: 0 / 0.7656 GB, free: 111.9 MB / 458.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)