Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/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) 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) 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(HanserModelica.InductionMachines.IMC_withLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=200000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMC_withLosses") translateModel(HanserModelica.InductionMachines.IMC_withLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=200000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMC_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007414/0.0007415, allocations: 98.88 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.301/1.301, allocations: 223.3 MB / 240 MB, free: 5.469 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009702/0.0009702, allocations: 180.5 kB / 291.3 MB, free: 2.145 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03555/0.03555, allocations: 8.794 MB / 351.2 MB, free: 4.586 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003365/0.0003366, allocations: 11 kB / 414.5 MB, free: 42.72 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06697/0.06732, allocations: 52.55 MB / 467 MB, free: 13.11 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_withLosses): time 0.02179/0.08914, allocations: 23.35 MB / 490.4 MB, free: 5.645 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01229/0.1015, allocations: 7.841 MB / 498.2 MB, free: 13.78 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001624/0.1031, allocations: 171.4 kB / 498.4 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003286/0.1064, allocations: 1.812 MB / 0.4885 GB, free: 11.79 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005923/0.1124, allocations: 2.716 MB / 0.4911 GB, free: 9.07 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003282/0.1156, allocations: 1.577 MB / 0.4927 GB, free: 7.5 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01069/0.1264, allocations: 10.96 MB / 0.5034 GB, free: 12.51 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03318/0.1596, allocations: 23.5 MB / 0.5263 GB, free: 4.859 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005317/0.1649, allocations: 4.169 MB / 0.5304 GB, free: 0.6758 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1648/0.3297, allocations: 4.992 MB / 0.5353 GB, free: 21.34 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001334/0.3311, allocations: 0.6608 MB / 0.5359 GB, free: 21.34 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002544/0.3336, allocations: 1.062 MB / 0.5369 GB, free: 21.34 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001525/0.3352, allocations: 2.103 MB / 0.539 GB, free: 21.04 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005127/0.3403, allocations: 4.999 MB / 0.5439 GB, free: 19.55 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01396/0.3543, allocations: 19.61 MB / 0.563 GB, free: 11.46 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.3543, allocations: 6.094 kB / 0.563 GB, free: 11.46 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.3543, allocations: 0 / 0.563 GB, free: 11.46 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003946/0.3547, allocations: 0 / 0.563 GB, free: 11.46 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2685 * Number of variables: 2685 Notification: Performance of Generate backend data structure: time 0.02741/0.3821, allocations: 11.24 MB / 0.574 GB, free: 5.766 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.387e-05/0.3822, allocations: 10.88 kB / 0.574 GB, free: 5.766 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03339/0.4156, allocations: 6.242 MB / 0.5801 GB, free: 3.359 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01084/0.4264, allocations: 7.097 MB / 0.5871 GB, free: 1.379 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003512/0.4268, allocations: 0.7187 MB / 0.5878 GB, free: 1.359 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001701/0.4285, allocations: 0.9556 MB / 0.5887 GB, free: 1.348 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02684/0.4554, allocations: 16.15 MB / 0.6045 GB, free: 2.891 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001947/0.4556, allocations: 23.8 kB / 0.6045 GB, free: 2.867 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001138/0.4567, allocations: 402.9 kB / 0.6049 GB, free: 2.484 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005245/0.4573, allocations: 0.5592 MB / 0.6054 GB, free: 1.922 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02515/0.4824, allocations: 15.12 MB / 0.6202 GB, free: 2.785 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07166/0.5541, allocations: 52.77 MB / 0.6717 GB, free: 13.8 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0187/0.5728, allocations: 20.11 MB / 0.6913 GB, free: 7.742 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005359/0.5782, allocations: 3.684 MB / 0.6949 GB, free: 4.051 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003399/0.5786, allocations: 185.7 kB / 0.6951 GB, free: 3.867 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.847e-05/0.5787, allocations: 82.09 kB / 0.6952 GB, free: 3.777 MB / 478.1 MB Notification: Performance of pre-optimization done (n=453): time 6.472e-06/0.5787, allocations: 4 kB / 0.6952 GB, free: 3.773 MB / 478.1 MB Notification: Performance of matching and sorting (n=458): time 0.2175/0.7962, allocations: 20.79 MB / 0.7155 GB, free: 161.3 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.641e-05/0.7962, allocations: 97.84 kB / 0.7156 GB, free: 161.2 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006013/0.8022, allocations: 4.491 MB / 0.72 GB, free: 160.9 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006103/0.8029, allocations: 98.08 kB / 0.7201 GB, free: 160.9 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002007/0.8049, allocations: 4.193 MB / 0.7242 GB, free: 159.4 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001103/0.806, allocations: 1.549 MB / 0.7257 GB, free: 158.5 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006887/0.8067, allocations: 496.8 kB / 0.7262 GB, free: 158.4 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 3.149e-05/0.8067, allocations: 305.1 kB / 0.7265 GB, free: 158.1 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00454/0.8113, allocations: 3.105 MB / 0.7295 GB, free: 158.1 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005078/0.8164, allocations: 5.259 MB / 0.7346 GB, free: 155.1 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009045/0.8254, allocations: 8.95 MB / 0.7434 GB, free: 149.2 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.899e-05/0.8255, allocations: 23.28 kB / 0.7434 GB, free: 149.2 MB / 494.1 MB Notification: Performance of matching and sorting (n=800) (initialization): time 0.01382/0.8393, allocations: 9.931 MB / 0.7531 GB, free: 145.2 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.556e-05/0.8394, allocations: 37.16 kB / 0.7531 GB, free: 145.2 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.163e-05/0.8394, allocations: 68.19 kB / 0.7532 GB, free: 145.2 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003475/0.8429, allocations: 1.378 MB / 0.7545 GB, free: 145 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00448/0.8474, allocations: 1.391 MB / 0.7559 GB, free: 144.8 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01403/0.8614, allocations: 11.66 MB / 0.7673 GB, free: 137.1 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004007/0.8655, allocations: 360.2 kB / 0.7676 GB, free: 136.8 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004543/0.8659, allocations: 295.6 kB / 0.7679 GB, free: 136.6 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 313 * 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 (723): * Single equations (assignments): 717 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (14,54,45.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005208/0.8711, allocations: 3.884 MB / 0.7717 GB, free: 133.2 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00074/0.8719, allocations: 467.1 kB / 0.7721 GB, free: 132.8 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01244/0.8843, allocations: 8.589 MB / 0.7805 GB, free: 125.5 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008969/0.8933, allocations: 6.311 MB / 0.7867 GB, free: 119.2 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.681e-05/0.8934, allocations: 19.88 kB / 0.7867 GB, free: 119.1 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.5e-05/0.8934, allocations: 23.91 kB / 0.7867 GB, free: 119.1 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02309/0.9165, allocations: 17.75 MB / 0.8041 GB, free: 101.2 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.619e-05/0.9165, allocations: 12.19 kB / 0.8041 GB, free: 101.2 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00314/0.9197, allocations: 0.8035 MB / 0.8049 GB, free: 100.4 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003178/0.9229, allocations: 1.291 MB / 0.8061 GB, free: 99.14 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002543/0.9231, allocations: 107.9 kB / 0.8062 GB, free: 99.04 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01243/0.9356, allocations: 10.58 MB / 0.8166 GB, free: 88.2 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.773e-06/0.9356, allocations: 11.94 kB / 0.8166 GB, free: 88.18 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01437/0.95, allocations: 11.31 MB / 0.8276 GB, free: 76.73 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001875/0.9519, allocations: 1.108 MB / 0.8287 GB, free: 75.59 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005488/0.9524, allocations: 87.94 kB / 0.8288 GB, free: 75.51 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002297/0.9547, allocations: 247.7 kB / 0.829 GB, free: 75.27 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005605/0.9553, allocations: 323.5 kB / 0.8293 GB, free: 74.95 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002677/0.9556, allocations: 140 kB / 0.8295 GB, free: 74.81 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003705/0.9593, allocations: 3.112 MB / 0.8325 GB, free: 71.69 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.9593, allocations: 0 / 0.8325 GB, free: 71.69 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004822/0.9641, allocations: 1.719 MB / 0.8342 GB, free: 69.98 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * Number of states: 4 (imc.inertiaRotor.w,imc.rotorCage.port_p.reference.gamma,loadInertia.phi,PI.x) * 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 (420): * Single equations (assignments): 414 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (14,54,44.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001206/0.9653, allocations: 0.5376 MB / 0.8347 GB, free: 69.59 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01066/0.976, allocations: 8.046 MB / 0.8426 GB, free: 61.53 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5e-06/0.976, allocations: 4 kB / 0.8426 GB, free: 61.53 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005582/0.9816, allocations: 3.988 MB / 0.8465 GB, free: 57.52 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00839/0.99, allocations: 1.005 MB / 0.8474 GB, free: 56.52 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02439/1.014, allocations: 22.19 MB / 0.8691 GB, free: 34.2 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00512/1.02, allocations: 6.333 MB / 0.8753 GB, free: 27.84 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001656/1.021, allocations: 427.3 kB / 0.8757 GB, free: 27.42 MB / 494.1 MB Notification: Performance of SimCode: time 6.71e-07/1.021, allocations: 0 / 0.8757 GB, free: 27.42 MB / 494.1 MB Notification: Performance of Templates: time 0.5453/1.567, allocations: 225.8 MB / 1.096 GB, free: 152.5 MB / 0.4981 GB make -j1 -f HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.makefile (rm -f HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.pipe ; mkfifo HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.pipe >> ../files/HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.sim & ./HanserModelica_HanserModelica.InductionMachines.IMC_withLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.pipe 2>&1)