Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.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.SynchronousMachines.SMR_MTPA,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA") translateModel(HanserModelica.SynchronousMachines.SMR_MTPA,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001488/0.001488, allocations: 107.4 kB / 16.41 MB, free: 6.5 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.414/1.414, allocations: 222.9 MB / 240.1 MB, free: 4.383 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.001509/0.00151, allocations: 176.5 kB / 290.4 MB, free: 2.121 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0341/0.0341, allocations: 8.803 MB / 349.3 MB, free: 4.578 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001497/0.001497, allocations: 79.86 kB / 464.6 MB, free: 13.03 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09565/0.09716, allocations: 51.56 MB / 0.5041 GB, free: 9.43 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_MTPA): time 0.2376/0.3348, allocations: 27.65 MB / 0.5311 GB, free: 4.906 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01559/0.3504, allocations: 8.022 MB / 0.5389 GB, free: 4.805 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006296/0.3568, allocations: 210.7 kB / 0.5391 GB, free: 4.805 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0179/0.3747, allocations: 7.921 MB / 0.5468 GB, free: 3.613 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00982/0.3845, allocations: 2.701 MB / 0.5495 GB, free: 2.84 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005781/0.3903, allocations: 1.821 MB / 0.5513 GB, free: 2.652 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01362/0.404, allocations: 9.688 MB / 0.5607 GB, free: 14.65 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03377/0.4378, allocations: 21.2 MB / 0.5814 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01144/0.4493, allocations: 5.264 MB / 0.5866 GB, free: 11.46 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01078/0.4601, allocations: 5.92 MB / 0.5924 GB, free: 5.695 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004768/0.4649, allocations: 1.516 MB / 0.5938 GB, free: 4.18 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007377/0.4724, allocations: 1.875 MB / 0.5957 GB, free: 2.312 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005518/0.4779, allocations: 2.941 MB / 0.5985 GB, free: 15.41 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01226/0.4902, allocations: 5.719 MB / 0.6041 GB, free: 9.707 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02629/0.5165, allocations: 20.29 MB / 0.6239 GB, free: 5.758 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.394e-06/0.5166, allocations: 0 / 0.6239 GB, free: 5.758 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.504e-06/0.5166, allocations: 0 / 0.6239 GB, free: 5.758 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0006064/0.5172, allocations: 0 / 0.6239 GB, free: 5.758 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2552 * Number of variables: 2552 Notification: Performance of Generate backend data structure: time 0.03716/0.5544, allocations: 11.59 MB / 0.6353 GB, free: 10.16 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.495e-05/0.5545, allocations: 12.03 kB / 0.6353 GB, free: 10.15 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03036/0.5848, allocations: 5.582 MB / 0.6407 GB, free: 4.609 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01397/0.5988, allocations: 6.184 MB / 0.6468 GB, free: 14.41 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000777/0.5997, allocations: 0.6929 MB / 0.6474 GB, free: 13.72 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003904/0.6036, allocations: 0.907 MB / 0.6483 GB, free: 12.82 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03824/0.6418, allocations: 14.86 MB / 0.6628 GB, free: 13.95 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003386/0.6422, allocations: 7.906 kB / 0.6628 GB, free: 13.94 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002803/0.645, allocations: 391 kB / 0.6632 GB, free: 13.57 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005523/0.6456, allocations: 0.5113 MB / 0.6637 GB, free: 13.06 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02968/0.6753, allocations: 13.58 MB / 0.677 GB, free: 15.46 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07984/0.7552, allocations: 46.09 MB / 0.722 GB, free: 0.5508 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.4625/1.218, allocations: 28.29 MB / 0.7496 GB, free: 121.9 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005826/1.224, allocations: 3.032 MB / 0.7526 GB, free: 121.8 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004972/1.224, allocations: 240 kB / 0.7528 GB, free: 121.6 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.576e-05/1.224, allocations: 73.73 kB / 0.7529 GB, free: 121.6 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=375): time 5.821e-06/1.224, allocations: 1 kB / 0.7529 GB, free: 121.6 MB / 0.5138 GB Notification: Performance of matching and sorting (n=382): time 0.03301/1.257, allocations: 14.63 MB / 0.7672 GB, free: 117.6 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.196e-05/1.257, allocations: 95 kB / 0.7672 GB, free: 117.5 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005586/1.263, allocations: 3.477 MB / 0.7706 GB, free: 116.2 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0007519/1.264, allocations: 89.39 kB / 0.7707 GB, free: 116.1 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.002465/1.266, allocations: 3.954 MB / 0.7746 GB, free: 113.1 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001729/1.268, allocations: 1.309 MB / 0.7759 GB, free: 112.1 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001733/1.27, allocations: 1.139 MB / 0.777 GB, free: 111.6 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 5.051e-05/1.27, allocations: 304.7 kB / 0.7773 GB, free: 111.3 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003349/1.273, allocations: 2.552 MB / 0.7798 GB, free: 110.3 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004898/1.278, allocations: 5.011 MB / 0.7847 GB, free: 106.2 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008365/1.286, allocations: 8.213 MB / 0.7927 GB, free: 100.3 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001164/1.287, allocations: 27.3 kB / 0.7927 GB, free: 100.3 MB / 0.5138 GB Notification: Performance of matching and sorting (n=755) (initialization): time 0.01308/1.3, allocations: 8.497 MB / 0.801 GB, free: 96.87 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 7.044e-05/1.3, allocations: 44.97 kB / 0.801 GB, free: 96.87 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001213/1.3, allocations: 82.59 kB / 0.8011 GB, free: 96.87 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002091/1.302, allocations: 0.8481 MB / 0.8019 GB, free: 96.3 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004457/1.306, allocations: 1.346 MB / 0.8033 GB, free: 95.14 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008619/1.315, allocations: 7.67 MB / 0.8108 GB, free: 87.77 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004456/1.32, allocations: 324 kB / 0.8111 GB, free: 87.46 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001095/1.321, allocations: 300 kB / 0.8113 GB, free: 87.16 MB / 0.5138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 373 * 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 (708): * Single equations (assignments): 707 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 {(8,40,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005675/1.326, allocations: 3.482 MB / 0.8147 GB, free: 83.67 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001212/1.328, allocations: 391.2 kB / 0.8151 GB, free: 83.28 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008263/1.336, allocations: 5.855 MB / 0.8208 GB, free: 77.39 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.31e-05/1.336, allocations: 36 kB / 0.8209 GB, free: 77.36 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.132e-05/1.336, allocations: 8 kB / 0.8209 GB, free: 77.35 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.896e-05/1.336, allocations: 23.92 kB / 0.8209 GB, free: 77.33 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02457/1.361, allocations: 14.49 MB / 0.8351 GB, free: 62.8 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.55e-05/1.361, allocations: 4 kB / 0.8351 GB, free: 62.8 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002505/1.363, allocations: 0.667 MB / 0.8357 GB, free: 62.13 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001831/1.365, allocations: 0.7175 MB / 0.8364 GB, free: 61.41 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004039/1.365, allocations: 79.98 kB / 0.8365 GB, free: 61.33 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007189/1.373, allocations: 6.702 MB / 0.843 GB, free: 54.49 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.431e-06/1.373, allocations: 15.88 kB / 0.843 GB, free: 54.47 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01052/1.383, allocations: 8.542 MB / 0.8514 GB, free: 45.8 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002267/1.386, allocations: 0.8631 MB / 0.8522 GB, free: 44.91 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006078/1.386, allocations: 79.92 kB / 0.8523 GB, free: 44.84 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001712/1.388, allocations: 181 kB / 0.8525 GB, free: 44.66 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004477/1.388, allocations: 254.7 kB / 0.8527 GB, free: 44.41 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001914/1.389, allocations: 116 kB / 0.8528 GB, free: 44.3 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.003128/1.392, allocations: 2.33 MB / 0.8551 GB, free: 41.98 MB / 0.5138 GB Notification: Performance of sort global known variables: time 2.2e-07/1.392, allocations: 4 kB / 0.8551 GB, free: 41.97 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.005996/1.398, allocations: 1.509 MB / 0.8566 GB, free: 40.46 MB / 0.5138 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 1 (smr.phiMechanical) * 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 (365): * Single equations (assignments): 364 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 {(8,38,62.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007275/1.398, allocations: 249.9 kB / 0.8568 GB, free: 40.22 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.009071/1.408, allocations: 6.427 MB / 0.8631 GB, free: 33.8 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.043e-05/1.408, allocations: 0 / 0.8631 GB, free: 33.8 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.004223/1.412, allocations: 2.884 MB / 0.8659 GB, free: 30.91 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005314/1.417, allocations: 0.8919 MB / 0.8668 GB, free: 30.04 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02635/1.444, allocations: 15.1 MB / 0.8815 GB, free: 14.86 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004899/1.448, allocations: 5.719 MB / 0.8871 GB, free: 9.094 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001504/1.45, allocations: 371.4 kB / 0.8875 GB, free: 8.73 MB / 0.5138 GB Notification: Performance of SimCode: time 8.81e-07/1.45, allocations: 4 kB / 0.8875 GB, free: 8.727 MB / 0.5138 GB Notification: Performance of Templates: time 0.4524/1.902, allocations: 147.9 MB / 1.032 GB, free: 90.57 MB / 0.545 GB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.pipe 2>&1)