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.0008498/0.00085, allocations: 91.14 kB / 15.36 MB, free: 0.7383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.336/1.336, allocations: 223.3 MB / 239.4 MB, free: 5.535 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.001086/0.001087, allocations: 180.4 kB / 290.6 MB, free: 2.203 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03249/0.03249, allocations: 8.8 MB / 350.5 MB, free: 4.633 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004044/0.0004044, allocations: 12.14 kB / 413.8 MB, free: 42.77 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1196/0.1201, allocations: 52.56 MB / 466.4 MB, free: 13.18 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_withLosses): time 0.02384/0.1439, allocations: 23.35 MB / 489.7 MB, free: 5.719 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01837/0.1624, allocations: 7.844 MB / 497.6 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00575/0.1682, allocations: 171.4 kB / 497.7 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006368/0.1745, allocations: 1.797 MB / 499.5 MB, free: 11.88 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01195/0.1865, allocations: 2.724 MB / 0.4905 GB, free: 9.148 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005888/0.1924, allocations: 1.584 MB / 0.492 GB, free: 7.574 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01637/0.2088, allocations: 10.96 MB / 0.5027 GB, free: 12.57 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04789/0.2568, allocations: 23.5 MB / 0.5257 GB, free: 4.926 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008828/0.2656, allocations: 4.165 MB / 0.5297 GB, free: 0.7461 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2676/0.5332, allocations: 4.988 MB / 0.5346 GB, free: 21.39 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002387/0.5357, allocations: 0.6631 MB / 0.5353 GB, free: 21.39 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004104/0.5398, allocations: 1.066 MB / 0.5363 GB, free: 21.39 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002005/0.5418, allocations: 2.097 MB / 0.5383 GB, free: 21.12 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0099/0.5517, allocations: 5.003 MB / 0.5432 GB, free: 19.64 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02198/0.5737, allocations: 21.73 MB / 0.5645 GB, free: 10.36 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.631e-06/0.5738, allocations: 0 / 0.5645 GB, free: 10.36 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.066e-06/0.5738, allocations: 3.281 kB / 0.5645 GB, free: 10.36 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0007195/0.5745, allocations: 0 / 0.5645 GB, free: 10.36 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.03571/0.6102, allocations: 11.23 MB / 0.5754 GB, free: 4.664 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.956e-05/0.6103, allocations: 19.27 kB / 0.5754 GB, free: 4.656 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03312/0.6434, allocations: 6.242 MB / 0.5815 GB, free: 2.25 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01386/0.6573, allocations: 7.097 MB / 0.5885 GB, free: 276 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006365/0.658, allocations: 0.7218 MB / 0.5892 GB, free: 256 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004458/0.6625, allocations: 0.9462 MB / 0.5901 GB, free: 204 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04809/0.7106, allocations: 16.16 MB / 0.6059 GB, free: 0.8867 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003292/0.711, allocations: 11.81 kB / 0.6059 GB, free: 0.875 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003321/0.7143, allocations: 405.2 kB / 0.6063 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005943/0.7149, allocations: 0.5592 MB / 0.6068 GB, free: 15.93 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03339/0.7483, allocations: 15.13 MB / 0.6216 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1013/0.8497, allocations: 52.76 MB / 0.6731 GB, free: 11.82 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02246/0.8722, allocations: 20.12 MB / 0.6928 GB, free: 5.75 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006718/0.879, allocations: 3.684 MB / 0.6964 GB, free: 2.062 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006316/0.8796, allocations: 185.4 kB / 0.6965 GB, free: 1.875 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001035/0.8798, allocations: 78.09 kB / 0.6966 GB, free: 1.789 MB / 478.1 MB Notification: Performance of pre-optimization done (n=453): time 8.275e-06/0.8798, allocations: 0 / 0.6966 GB, free: 1.789 MB / 478.1 MB Notification: Performance of matching and sorting (n=458): time 0.3829/1.263, allocations: 20.79 MB / 0.7169 GB, free: 161.2 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.113e-05/1.263, allocations: 98.41 kB / 0.717 GB, free: 161.1 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008003/1.271, allocations: 4.495 MB / 0.7214 GB, free: 160.8 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009819/1.272, allocations: 99.2 kB / 0.7215 GB, free: 160.8 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002822/1.275, allocations: 4.19 MB / 0.7256 GB, free: 159.4 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001936/1.277, allocations: 1.55 MB / 0.7271 GB, free: 158.4 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009241/1.278, allocations: 498.4 kB / 0.7276 GB, free: 158.4 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 5.11e-05/1.278, allocations: 301.7 kB / 0.7279 GB, free: 158.1 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005935/1.284, allocations: 3.105 MB / 0.7309 GB, free: 158 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006395/1.29, allocations: 5.256 MB / 0.736 GB, free: 154.5 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01062/1.301, allocations: 8.953 MB / 0.7448 GB, free: 148.6 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001543/1.301, allocations: 19.34 kB / 0.7448 GB, free: 148.6 MB / 494.1 MB Notification: Performance of matching and sorting (n=800) (initialization): time 0.01803/1.319, allocations: 9.932 MB / 0.7545 GB, free: 144.6 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001533/1.319, allocations: 37.31 kB / 0.7545 GB, free: 144.6 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001555/1.319, allocations: 68.78 kB / 0.7546 GB, free: 144.6 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003717/1.323, allocations: 1.382 MB / 0.7559 GB, free: 144.3 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005856/1.329, allocations: 1.39 MB / 0.7573 GB, free: 144.2 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01615/1.345, allocations: 11.66 MB / 0.7687 GB, free: 135.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00612/1.351, allocations: 361.1 kB / 0.769 GB, free: 135.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001673/1.353, allocations: 295.5 kB / 0.7693 GB, free: 135 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.009136/1.362, allocations: 3.895 MB / 0.7731 GB, free: 131.6 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001687/1.364, allocations: 454.8 kB / 0.7735 GB, free: 131.2 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01587/1.38, allocations: 8.595 MB / 0.7819 GB, free: 123.8 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01018/1.39, allocations: 6.315 MB / 0.7881 GB, free: 117.5 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.071e-05/1.39, allocations: 12 kB / 0.7881 GB, free: 117.4 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.584e-05/1.39, allocations: 23.91 kB / 0.7881 GB, free: 117.4 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03444/1.425, allocations: 17.76 MB / 0.8055 GB, free: 99.54 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.959e-05/1.425, allocations: 8 kB / 0.8055 GB, free: 99.53 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003063/1.428, allocations: 0.8113 MB / 0.8063 GB, free: 98.72 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00314/1.431, allocations: 1.281 MB / 0.8075 GB, free: 97.44 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005692/1.431, allocations: 111.9 kB / 0.8076 GB, free: 97.33 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01247/1.444, allocations: 10.58 MB / 0.818 GB, free: 86.48 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.622e-06/1.444, allocations: 11.94 kB / 0.818 GB, free: 86.47 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01588/1.46, allocations: 11.32 MB / 0.829 GB, free: 75.02 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002751/1.463, allocations: 1.112 MB / 0.8301 GB, free: 73.88 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001265/1.464, allocations: 87.98 kB / 0.8302 GB, free: 73.79 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002997/1.467, allocations: 243.8 kB / 0.8304 GB, free: 73.55 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006763/1.468, allocations: 319.6 kB / 0.8307 GB, free: 73.24 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002571/1.468, allocations: 148 kB / 0.8309 GB, free: 73.1 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004388/1.472, allocations: 3.107 MB / 0.8339 GB, free: 69.98 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.8e-07/1.472, allocations: 0 / 0.8339 GB, free: 69.98 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.007763/1.48, allocations: 1.724 MB / 0.8356 GB, free: 68.26 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.001802/1.482, allocations: 0.5339 MB / 0.8361 GB, free: 67.88 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01221/1.494, allocations: 8.041 MB / 0.844 GB, free: 59.83 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 9.468e-06/1.494, allocations: 0 / 0.844 GB, free: 59.83 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005934/1.5, allocations: 3.993 MB / 0.8479 GB, free: 55.81 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009782/1.51, allocations: 0.998 MB / 0.8488 GB, free: 54.82 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03212/1.542, allocations: 22.46 MB / 0.8708 GB, free: 32.23 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005849/1.548, allocations: 6.514 MB / 0.8771 GB, free: 25.69 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.005646/1.554, allocations: 2.111 MB / 0.8792 GB, free: 23.57 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001132/1.555, allocations: 379.4 kB / 0.8796 GB, free: 23.2 MB / 494.1 MB Notification: Performance of SimCode: time 8.21e-07/1.555, allocations: 0 / 0.8796 GB, free: 23.2 MB / 494.1 MB Notification: Performance of Templates: time 0.3716/1.926, allocations: 71.48 MB / 0.9494 GB, free: 114.9 MB / 494.1 MB make -j1 -f HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: