Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.InductionMachines.IMS_Characteristics1.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.IMS_Characteristics1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMS_Characteristics1") translateModel(HanserModelica.InductionMachines.IMS_Characteristics1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMS_Characteristics1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001441/0.001441, allocations: 101.3 kB / 16.35 MB, free: 5.824 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.38/1.38, allocations: 222.9 MB / 240 MB, free: 4.484 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.001721/0.00172, allocations: 184.5 kB / 290.3 MB, free: 2.211 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03405/0.03405, allocations: 8.794 MB / 349.3 MB, free: 4.598 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001833/0.001834, allocations: 83.47 kB / 412.5 MB, free: 41.79 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09599/0.09785, allocations: 51.57 MB / 464.1 MB, free: 13.64 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMS_Characteristics1): time 0.02854/0.1264, allocations: 26.99 MB / 491.1 MB, free: 2.504 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01809/0.1445, allocations: 8.05 MB / 499.1 MB, free: 10.43 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00661/0.1512, allocations: 203.4 kB / 499.3 MB, free: 10.23 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02099/0.1722, allocations: 9.32 MB / 0.4967 GB, free: 0.8867 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01193/0.1842, allocations: 3.318 MB / 0.5 GB, free: 13.56 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006292/0.1905, allocations: 1.804 MB / 0.5017 GB, free: 11.76 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0181/0.2086, allocations: 12.15 MB / 0.5136 GB, free: 15.58 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2457/0.4543, allocations: 24.39 MB / 0.5374 GB, free: 12.58 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01059/0.465, allocations: 6.446 MB / 0.5437 GB, free: 12.14 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01484/0.4798, allocations: 7.174 MB / 0.5507 GB, free: 11.03 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005374/0.4852, allocations: 1.84 MB / 0.5525 GB, free: 11.03 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007283/0.4925, allocations: 2.202 MB / 0.5547 GB, free: 11.03 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006083/0.4987, allocations: 3.608 MB / 0.5582 GB, free: 10.64 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01371/0.5124, allocations: 6.92 MB / 0.5649 GB, free: 9.066 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02443/0.5368, allocations: 24.73 MB / 0.5891 GB, free: 9.434 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.863e-06/0.5369, allocations: 0 / 0.5891 GB, free: 9.434 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.168e-06/0.5369, allocations: 0 / 0.5891 GB, free: 9.434 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0006971/0.5376, allocations: 7.469 kB / 0.5891 GB, free: 9.43 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3035 * Number of variables: 3035 Notification: Performance of Generate backend data structure: time 0.04279/0.5804, allocations: 14.49 MB / 0.6032 GB, free: 10.96 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.156e-05/0.5805, allocations: 8.031 kB / 0.6033 GB, free: 10.95 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04704/0.6275, allocations: 8.485 MB / 0.6115 GB, free: 2.559 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01832/0.6459, allocations: 7.644 MB / 0.619 GB, free: 11.16 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009376/0.6469, allocations: 0.8045 MB / 0.6198 GB, free: 10.37 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004797/0.6517, allocations: 1.055 MB / 0.6208 GB, free: 9.328 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0506/0.7023, allocations: 18.29 MB / 0.6387 GB, free: 7.027 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005101/0.7029, allocations: 19.89 kB / 0.6387 GB, free: 7.008 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003599/0.7065, allocations: 445.2 kB / 0.6391 GB, free: 6.586 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007738/0.7073, allocations: 0.6746 MB / 0.6398 GB, free: 5.914 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03623/0.7435, allocations: 17.53 MB / 0.6569 GB, free: 4.371 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4661/1.21, allocations: 58.05 MB / 0.7136 GB, free: 135.7 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0286/1.238, allocations: 37.47 MB / 0.7502 GB, free: 105.2 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005733/1.244, allocations: 4.128 MB / 0.7542 GB, free: 105.2 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004532/1.245, allocations: 194.7 kB / 0.7544 GB, free: 105.1 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.166e-05/1.245, allocations: 87.72 kB / 0.7545 GB, free: 105 MB / 494.1 MB Notification: Performance of pre-optimization done (n=518): time 6.332e-06/1.245, allocations: 3.969 kB / 0.7545 GB, free: 105 MB / 494.1 MB Notification: Performance of matching and sorting (n=524): time 0.04088/1.285, allocations: 21.44 MB / 0.7754 GB, free: 102.7 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.557e-05/1.286, allocations: 107.7 kB / 0.7755 GB, free: 102.6 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004979/1.291, allocations: 4.178 MB / 0.7796 GB, free: 101.4 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006143/1.291, allocations: 112.7 kB / 0.7797 GB, free: 101.3 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002164/1.293, allocations: 4.514 MB / 0.7841 GB, free: 97.95 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002112/1.295, allocations: 1.775 MB / 0.7859 GB, free: 96.58 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001879/1.297, allocations: 1.358 MB / 0.7872 GB, free: 95.93 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.04e-05/1.297, allocations: 301.1 kB / 0.7875 GB, free: 95.64 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003965/1.301, allocations: 3.441 MB / 0.7908 GB, free: 94.34 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004881/1.306, allocations: 5.884 MB / 0.7966 GB, free: 89.95 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009944/1.316, allocations: 10.02 MB / 0.8064 GB, free: 83.01 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.813e-05/1.316, allocations: 25.03 kB / 0.8064 GB, free: 83.01 MB / 494.1 MB Notification: Performance of matching and sorting (n=910) (initialization): time 0.01591/1.332, allocations: 10.94 MB / 0.8171 GB, free: 72 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.157e-05/1.332, allocations: 40 kB / 0.8171 GB, free: 71.96 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000137/1.333, allocations: 80.5 kB / 0.8172 GB, free: 71.89 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003588/1.336, allocations: 1.432 MB / 0.8186 GB, free: 70.45 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005593/1.342, allocations: 1.611 MB / 0.8202 GB, free: 68.84 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01437/1.356, allocations: 11.46 MB / 0.8313 GB, free: 57.25 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00492/1.361, allocations: 411.8 kB / 0.8317 GB, free: 56.84 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001105/1.362, allocations: 328 kB / 0.8321 GB, free: 56.52 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 354 * 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 (840): * Single equations (assignments): 838 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(14,56,40.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006212/1.368, allocations: 4.17 MB / 0.8361 GB, free: 52.34 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001252/1.37, allocations: 478.1 kB / 0.8366 GB, free: 51.87 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0131/1.383, allocations: 8.482 MB / 0.8449 GB, free: 43.28 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008882/1.392, allocations: 7.08 MB / 0.8518 GB, free: 36.11 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.113e-05/1.392, allocations: 15.98 kB / 0.8518 GB, free: 36.09 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.652e-05/1.392, allocations: 23.91 kB / 0.8518 GB, free: 36.07 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03215/1.424, allocations: 18.76 MB / 0.8701 GB, free: 17.25 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.732e-05/1.424, allocations: 4.875 kB / 0.8701 GB, free: 17.24 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003328/1.427, allocations: 0.9325 MB / 0.8711 GB, free: 16.31 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003109/1.43, allocations: 1.285 MB / 0.8723 GB, free: 15.02 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003935/1.431, allocations: 112 kB / 0.8724 GB, free: 14.91 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01151/1.442, allocations: 10.17 MB / 0.8823 GB, free: 4.629 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5e-06/1.442, allocations: 4 kB / 0.8823 GB, free: 4.625 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01821/1.461, allocations: 12.27 MB / 0.8943 GB, free: 8.148 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003265/1.464, allocations: 1.159 MB / 0.8955 GB, free: 6.965 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008196/1.465, allocations: 95.98 kB / 0.8956 GB, free: 6.871 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002423/1.467, allocations: 271.8 kB / 0.8958 GB, free: 6.605 MB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007445/1.468, allocations: 348.4 kB / 0.8961 GB, free: 6.262 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003154/1.468, allocations: 151 kB / 0.8963 GB, free: 6.117 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.00424/1.473, allocations: 2.819 MB / 0.899 GB, free: 3.285 MB / 0.4982 GB Notification: Performance of sort global known variables: time 4.31e-07/1.473, allocations: 3.938 kB / 0.899 GB, free: 3.281 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.008659/1.481, allocations: 1.934 MB / 0.9009 GB, free: 1.352 MB / 0.4982 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (ims.rotor.stray.port_p.reference.gamma,speed.phi) * 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 (499): * Single equations (assignments): 497 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(14,56,40.3%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00101/1.482, allocations: 297.8 kB / 0.9012 GB, free: 1.062 MB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.2105/1.693, allocations: 8.721 MB / 0.9097 GB, free: 164.1 MB / 0.4982 GB Notification: Performance of simCode: created event and clocks part: time 8.416e-06/1.693, allocations: 1.375 kB / 0.9097 GB, free: 164.1 MB / 0.4982 GB Notification: Performance of simCode: created simulation system equations: time 0.007859/1.701, allocations: 4.173 MB / 0.9138 GB, free: 163.8 MB / 0.4982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005595/1.706, allocations: 1.124 MB / 0.9149 GB, free: 163.7 MB / 0.4982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03467/1.741, allocations: 19.18 MB / 0.9336 GB, free: 156.8 MB / 0.4982 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01001/1.751, allocations: 7.006 MB / 0.9405 GB, free: 154.3 MB / 0.4982 GB Notification: Performance of simCode: alias equations: time 0.005553/1.757, allocations: 2.315 MB / 0.9427 GB, free: 154.1 MB / 0.4982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001239/1.758, allocations: 418.7 kB / 0.9431 GB, free: 154.1 MB / 0.4982 GB Notification: Performance of SimCode: time 1.142e-06/1.758, allocations: 4 kB / 0.9431 GB, free: 154.1 MB / 0.4982 GB Notification: Performance of Templates: time 0.1124/1.87, allocations: 76.25 MB / 1.018 GB, free: 85.66 MB / 0.4982 GB make -j1 -f HanserModelica_HanserModelica.InductionMachines.IMS_Characteristics1.makefile (rm -f HanserModelica_HanserModelica.InductionMachines.IMS_Characteristics1.pipe ; mkfifo HanserModelica_HanserModelica.InductionMachines.IMS_Characteristics1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.InductionMachines.IMS_Characteristics1.pipe >> ../files/HanserModelica_HanserModelica.InductionMachines.IMS_Characteristics1.sim & ./HanserModelica_HanserModelica.InductionMachines.IMS_Characteristics1 -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > HanserModelica_HanserModelica.InductionMachines.IMS_Characteristics1.pipe 2>&1)