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.001116/0.001116, allocations: 110.9 kB / 16.37 MB, free: 6.469 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.455/1.455, allocations: 222.9 MB / 240 MB, free: 4.562 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.001412/0.001413, allocations: 188.5 kB / 290.3 MB, free: 2.293 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03494/0.03494, allocations: 8.792 MB / 349.3 MB, free: 4.645 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002437/0.002437, allocations: 77.91 kB / 412.5 MB, free: 41.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.147/0.1494, allocations: 51.57 MB / 464.1 MB, free: 13.59 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMS_Characteristics1): time 0.03189/0.1814, allocations: 27 MB / 491.1 MB, free: 2.449 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02095/0.2024, allocations: 8.047 MB / 499.1 MB, free: 10.38 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008894/0.2114, allocations: 199.4 kB / 499.3 MB, free: 10.18 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02249/0.2339, allocations: 9.333 MB / 0.4968 GB, free: 0.8281 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0153/0.2492, allocations: 3.311 MB / 0.5 GB, free: 13.51 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007835/0.2571, allocations: 1.802 MB / 0.5017 GB, free: 11.71 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.02158/0.2787, allocations: 12.15 MB / 0.5136 GB, free: 15.53 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3228/0.6015, allocations: 24.39 MB / 0.5374 GB, free: 12.17 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01351/0.6151, allocations: 6.452 MB / 0.5437 GB, free: 11.74 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01529/0.6304, allocations: 7.169 MB / 0.5507 GB, free: 10.62 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006667/0.6371, allocations: 1.839 MB / 0.5525 GB, free: 10.62 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009527/0.6466, allocations: 2.206 MB / 0.5547 GB, free: 10.62 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007456/0.6541, allocations: 3.609 MB / 0.5582 GB, free: 10.23 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0148/0.669, allocations: 6.916 MB / 0.565 GB, free: 8.656 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03139/0.7004, allocations: 24.73 MB / 0.5891 GB, free: 9.297 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.043e-05/0.7004, allocations: 4 kB / 0.5891 GB, free: 9.293 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.7004, allocations: 0 / 0.5891 GB, free: 9.293 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0008188/0.7013, allocations: 0 / 0.5891 GB, free: 9.293 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.04971/0.751, allocations: 14.49 MB / 0.6033 GB, free: 10.82 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.399e-05/0.7511, allocations: 8.031 kB / 0.6033 GB, free: 10.81 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04701/0.7981, allocations: 8.481 MB / 0.6116 GB, free: 2.422 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01723/0.8154, allocations: 7.644 MB / 0.619 GB, free: 11.02 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007801/0.8162, allocations: 0.8008 MB / 0.6198 GB, free: 10.23 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005181/0.8214, allocations: 1.057 MB / 0.6208 GB, free: 9.191 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05762/0.879, allocations: 18.29 MB / 0.6387 GB, free: 6.887 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007824/0.8798, allocations: 11.91 kB / 0.6387 GB, free: 6.875 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005795/0.8857, allocations: 455.2 kB / 0.6391 GB, free: 6.445 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001184/0.8869, allocations: 0.671 MB / 0.6398 GB, free: 5.773 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06082/0.9477, allocations: 17.54 MB / 0.6569 GB, free: 4.227 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6707/1.618, allocations: 58.04 MB / 0.7136 GB, free: 130.4 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03223/1.651, allocations: 37.48 MB / 0.7502 GB, free: 100 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006496/1.657, allocations: 4.12 MB / 0.7542 GB, free: 99.96 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005589/1.658, allocations: 192.6 kB / 0.7544 GB, free: 99.86 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.327e-05/1.658, allocations: 92.41 kB / 0.7545 GB, free: 99.81 MB / 494.1 MB Notification: Performance of pre-optimization done (n=518): time 7.975e-06/1.658, allocations: 0 / 0.7545 GB, free: 99.81 MB / 494.1 MB Notification: Performance of matching and sorting (n=524): time 0.0479/1.706, allocations: 21.45 MB / 0.7755 GB, free: 97.46 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.005e-05/1.706, allocations: 108.7 kB / 0.7756 GB, free: 97.39 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006653/1.713, allocations: 4.172 MB / 0.7796 GB, free: 97 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001061/1.714, allocations: 111.2 kB / 0.7797 GB, free: 96.96 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002427/1.716, allocations: 4.523 MB / 0.7842 GB, free: 93.57 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002282/1.719, allocations: 1.769 MB / 0.7859 GB, free: 92.2 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002227/1.721, allocations: 1.351 MB / 0.7872 GB, free: 91.56 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 5.217e-05/1.721, allocations: 305.1 kB / 0.7875 GB, free: 91.26 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004664/1.725, allocations: 3.441 MB / 0.7908 GB, free: 89.96 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006137/1.732, allocations: 5.887 MB / 0.7966 GB, free: 85.57 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01147/1.743, allocations: 10.01 MB / 0.8064 GB, free: 78.81 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.877e-05/1.743, allocations: 22.16 kB / 0.8064 GB, free: 78.81 MB / 494.1 MB Notification: Performance of matching and sorting (n=910) (initialization): time 0.01908/1.762, allocations: 10.94 MB / 0.8171 GB, free: 71.64 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.228e-05/1.762, allocations: 43.94 kB / 0.8171 GB, free: 71.6 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001578/1.763, allocations: 76 kB / 0.8172 GB, free: 71.52 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003562/1.766, allocations: 1.431 MB / 0.8186 GB, free: 70.09 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005898/1.772, allocations: 1.608 MB / 0.8202 GB, free: 68.48 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01387/1.786, allocations: 11.47 MB / 0.8314 GB, free: 56.89 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005232/1.791, allocations: 407.3 kB / 0.8318 GB, free: 56.49 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001328/1.793, allocations: 336 kB / 0.8321 GB, free: 56.16 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.007528/1.8, allocations: 4.169 MB / 0.8361 GB, free: 51.98 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001396/1.802, allocations: 478.1 kB / 0.8366 GB, free: 51.5 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01276/1.814, allocations: 8.48 MB / 0.8449 GB, free: 42.91 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009799/1.824, allocations: 7.082 MB / 0.8518 GB, free: 35.74 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.225e-05/1.824, allocations: 12 kB / 0.8518 GB, free: 35.73 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.18e-05/1.824, allocations: 27.89 kB / 0.8518 GB, free: 35.7 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03238/1.857, allocations: 18.76 MB / 0.8702 GB, free: 16.88 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.829e-05/1.857, allocations: 3.984 kB / 0.8702 GB, free: 16.88 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003794/1.861, allocations: 0.9364 MB / 0.8711 GB, free: 15.94 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003426/1.864, allocations: 1.285 MB / 0.8723 GB, free: 14.65 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001286/1.865, allocations: 114.2 kB / 0.8724 GB, free: 14.54 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01225/1.878, allocations: 10.16 MB / 0.8824 GB, free: 4.262 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/1.878, allocations: 0 / 0.8824 GB, free: 4.262 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02078/1.898, allocations: 12.28 MB / 0.8944 GB, free: 7.781 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00485/1.903, allocations: 1.151 MB / 0.8955 GB, free: 6.605 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001468/1.905, allocations: 92 kB / 0.8956 GB, free: 6.516 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003775/1.909, allocations: 279.7 kB / 0.8958 GB, free: 6.242 MB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001062/1.91, allocations: 344.4 kB / 0.8962 GB, free: 5.902 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003975/1.91, allocations: 148 kB / 0.8963 GB, free: 5.758 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.006054/1.916, allocations: 2.823 MB / 0.8991 GB, free: 2.922 MB / 0.4982 GB Notification: Performance of sort global known variables: time 5.31e-07/1.916, allocations: 0 / 0.8991 GB, free: 2.922 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.008638/1.925, allocations: 1.932 MB / 0.9009 GB, free: 0.9961 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.001202/1.926, allocations: 307.8 kB / 0.9012 GB, free: 0.6992 MB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.2271/2.153, allocations: 8.724 MB / 0.9098 GB, free: 163.6 MB / 0.4982 GB Notification: Performance of simCode: created event and clocks part: time 9.598e-06/2.153, allocations: 1.344 kB / 0.9098 GB, free: 163.6 MB / 0.4982 GB Notification: Performance of simCode: created simulation system equations: time 0.009082/2.162, allocations: 4.171 MB / 0.9138 GB, free: 163.2 MB / 0.4982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006566/2.169, allocations: 1.122 MB / 0.9149 GB, free: 163.2 MB / 0.4982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0383/2.207, allocations: 19.17 MB / 0.9336 GB, free: 156.8 MB / 0.4982 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01087/2.218, allocations: 7.01 MB / 0.9405 GB, free: 154.2 MB / 0.4982 GB Notification: Performance of simCode: alias equations: time 0.006265/2.224, allocations: 2.316 MB / 0.9428 GB, free: 154 MB / 0.4982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001662/2.226, allocations: 423.9 kB / 0.9432 GB, free: 154 MB / 0.4982 GB Notification: Performance of SimCode: time 1.152e-06/2.226, allocations: 0 / 0.9432 GB, free: 154 MB / 0.4982 GB Notification: Performance of Templates: time 0.1179/2.344, allocations: 76.24 MB / 1.018 GB, free: 85.21 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 cvode -lv LOG_STATS > HanserModelica_HanserModelica.InductionMachines.IMS_Characteristics1.pipe 2>&1)