Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4.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.SMEE_Slip4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=60000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4") translateModel(HanserModelica.SynchronousMachines.SMEE_Slip4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=60000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001108/0.001108, allocations: 108 kB / 15.61 MB, free: 152 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.365/1.365, allocations: 222.9 MB / 239.2 MB, free: 4.625 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.001197/0.001197, allocations: 195.5 kB / 289.5 MB, free: 2.344 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03501/0.03501, allocations: 8.787 MB / 348.5 MB, free: 4.738 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00161/0.00161, allocations: 77.44 kB / 411.1 MB, free: 42.05 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09898/0.1006, allocations: 51.57 MB / 462.6 MB, free: 14.4 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip4): time 0.02583/0.1265, allocations: 25.41 MB / 488.1 MB, free: 4.863 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0169/0.1434, allocations: 8.014 MB / 496.1 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005751/0.1492, allocations: 175.5 kB / 496.2 MB, free: 12.65 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01404/0.1633, allocations: 6.111 MB / 0.4906 GB, free: 6.527 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00884/0.1721, allocations: 2.746 MB / 0.4933 GB, free: 3.773 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004868/0.177, allocations: 1.616 MB / 0.4948 GB, free: 2.16 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01022/0.1873, allocations: 7.223 MB / 0.5019 GB, free: 10.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01954/0.2068, allocations: 13.35 MB / 0.5149 GB, free: 13.42 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00531/0.2122, allocations: 3.721 MB / 0.5186 GB, free: 9.691 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006249/0.2185, allocations: 4.251 MB / 0.5227 GB, free: 5.426 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002378/0.2209, allocations: 1.07 MB / 0.5238 GB, free: 4.355 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003731/0.2246, allocations: 1.445 MB / 0.5252 GB, free: 2.91 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002597/0.2272, allocations: 2.147 MB / 0.5273 GB, free: 0.7578 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2776/0.5048, allocations: 4.108 MB / 0.5313 GB, free: 23.2 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01983/0.5247, allocations: 14.36 MB / 0.5453 GB, free: 22.11 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.016e-06/0.5247, allocations: 0 / 0.5453 GB, free: 22.11 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.424e-06/0.5248, allocations: 3.625 kB / 0.5453 GB, free: 22.11 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0005225/0.5253, allocations: 2.094 kB / 0.5453 GB, free: 22.11 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: 1800 * Number of variables: 1800 Notification: Performance of Generate backend data structure: time 0.03847/0.5638, allocations: 8.809 MB / 0.5539 GB, free: 18.18 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.58e-05/0.5638, allocations: 9.594 kB / 0.5539 GB, free: 18.18 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02709/0.5909, allocations: 4.383 MB / 0.5582 GB, free: 16.52 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01315/0.6041, allocations: 4.503 MB / 0.5626 GB, free: 15.16 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006651/0.6048, allocations: 493.6 kB / 0.5631 GB, free: 15.15 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003945/0.6088, allocations: 0.6311 MB / 0.5637 GB, free: 15.14 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03085/0.6397, allocations: 10.35 MB / 0.5738 GB, free: 9.73 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002482/0.64, allocations: 19.3 kB / 0.5738 GB, free: 9.719 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003125/0.6431, allocations: 263.7 kB / 0.5741 GB, free: 9.52 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003987/0.6435, allocations: 418.2 kB / 0.5745 GB, free: 9.434 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02209/0.6656, allocations: 9.862 MB / 0.5841 GB, free: 2.043 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06203/0.7277, allocations: 35.67 MB / 0.6189 GB, free: 13.8 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01915/0.7469, allocations: 20.66 MB / 0.6391 GB, free: 6.531 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004245/0.7511, allocations: 2.304 MB / 0.6413 GB, free: 4.223 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003405/0.7515, allocations: 222.2 kB / 0.6416 GB, free: 3.977 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.852e-05/0.7516, allocations: 64.89 kB / 0.6416 GB, free: 3.902 MB / 430.1 MB Notification: Performance of pre-optimization done (n=295): time 9.097e-06/0.7516, allocations: 0 / 0.6416 GB, free: 3.902 MB / 430.1 MB Notification: Performance of matching and sorting (n=301): time 0.02086/0.7725, allocations: 10.88 MB / 0.6522 GB, free: 8.922 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.114e-05/0.7726, allocations: 85.78 kB / 0.6523 GB, free: 8.824 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004466/0.777, allocations: 3.021 MB / 0.6553 GB, free: 5.785 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003366/0.7774, allocations: 81.69 kB / 0.6553 GB, free: 5.699 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001768/0.7792, allocations: 2.858 MB / 0.6581 GB, free: 2.82 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000961/0.7801, allocations: 1.031 MB / 0.6591 GB, free: 1.801 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001334/0.7815, allocations: 0.9094 MB / 0.66 GB, free: 0.8789 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001251/0.7816, allocations: 304.9 kB / 0.6603 GB, free: 0.582 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003008/0.7846, allocations: 2.023 MB / 0.6623 GB, free: 14.55 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004582/0.7892, allocations: 3.725 MB / 0.6659 GB, free: 10.07 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008296/0.7975, allocations: 6.048 MB / 0.6718 GB, free: 3.445 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.482e-05/0.7976, allocations: 16 kB / 0.6719 GB, free: 3.43 MB / 462.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01196/0.8096, allocations: 6.623 MB / 0.6783 GB, free: 13.11 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.202e-05/0.8097, allocations: 34.5 kB / 0.6784 GB, free: 13.08 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.715e-05/0.8098, allocations: 52 kB / 0.6784 GB, free: 13.03 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001884/0.8117, allocations: 0.6793 MB / 0.6791 GB, free: 12.35 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003673/0.8154, allocations: 1.066 MB / 0.6801 GB, free: 11.36 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008915/0.8243, allocations: 6.233 MB / 0.6862 GB, free: 5.023 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004217/0.8285, allocations: 279.5 kB / 0.6865 GB, free: 4.75 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006855/0.8292, allocations: 224.1 kB / 0.6867 GB, free: 4.531 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 251 * 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 (560): * Single equations (assignments): 559 * 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,28,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004325/0.8336, allocations: 2.312 MB / 0.6889 GB, free: 2.281 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008021/0.8344, allocations: 320 kB / 0.6892 GB, free: 1.965 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008052/0.8424, allocations: 4.648 MB / 0.6938 GB, free: 13.29 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.209e-05/0.8425, allocations: 35.94 kB / 0.6938 GB, free: 13.25 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.467e-05/0.8425, allocations: 4 kB / 0.6938 GB, free: 13.25 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.405e-05/0.8426, allocations: 15.94 kB / 0.6938 GB, free: 13.23 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02187/0.8645, allocations: 11.26 MB / 0.7048 GB, free: 1.863 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.55e-05/0.8645, allocations: 8.094 kB / 0.7048 GB, free: 1.855 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00213/0.8666, allocations: 0.5278 MB / 0.7054 GB, free: 1.355 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001637/0.8683, allocations: 0.5763 MB / 0.7059 GB, free: 0.7773 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002387/0.8686, allocations: 63.98 kB / 0.706 GB, free: 0.7148 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2381/1.107, allocations: 5.461 MB / 0.7113 GB, free: 173 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.402e-06/1.107, allocations: 8.484 kB / 0.7113 GB, free: 173 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01174/1.118, allocations: 6.578 MB / 0.7177 GB, free: 172.5 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00184/1.12, allocations: 0.7201 MB / 0.7184 GB, free: 172.4 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005771/1.121, allocations: 65.66 kB / 0.7185 GB, free: 172.4 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001657/1.123, allocations: 147.1 kB / 0.7186 GB, free: 172.4 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005104/1.123, allocations: 202.6 kB / 0.7188 GB, free: 172.4 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001901/1.123, allocations: 92.36 kB / 0.7189 GB, free: 172.4 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003045/1.126, allocations: 2.018 MB / 0.7209 GB, free: 171.6 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.21e-07/1.126, allocations: 0 / 0.7209 GB, free: 171.6 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004251/1.131, allocations: 1.177 MB / 0.722 GB, free: 171.5 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 2 (smee.short.port_p.reference.gamma,mechanicalPowerSensor.relSpeedSensor.phi_rel) * 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 (291): * Single equations (assignments): 290 * 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,26,62.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004547/1.131, allocations: 222.2 kB / 0.7223 GB, free: 171.3 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0168/1.148, allocations: 8.296 MB / 0.7304 GB, free: 169.4 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.797e-06/1.148, allocations: 3.594 kB / 0.7304 GB, free: 169.4 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003888/1.152, allocations: 2.258 MB / 0.7326 GB, free: 168.5 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004623/1.156, allocations: 0.6463 MB / 0.7332 GB, free: 168.3 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02082/1.177, allocations: 11.12 MB / 0.7441 GB, free: 159 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004913/1.182, allocations: 4.144 MB / 0.7481 GB, free: 155.7 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003891/1.186, allocations: 1.325 MB / 0.7494 GB, free: 154.8 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007776/1.187, allocations: 269.7 kB / 0.7497 GB, free: 154.6 MB / 494.1 MB Notification: Performance of SimCode: time 1.042e-06/1.187, allocations: 0 / 0.7497 GB, free: 154.6 MB / 494.1 MB Notification: Performance of Templates: time 0.07745/1.264, allocations: 47.81 MB / 0.7964 GB, free: 108.9 MB / 494.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4.pipe 2>&1)