Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.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_Slip2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=60000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2") translateModel(HanserModelica.SynchronousMachines.SMEE_Slip2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=60000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001156/0.001156, allocations: 109.3 kB / 16.41 MB, free: 6.496 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.391/1.391, allocations: 222.9 MB / 240.1 MB, free: 4.57 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.001648/0.001648, allocations: 195.7 kB / 290.4 MB, free: 2.281 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03341/0.03341, allocations: 8.798 MB / 349.3 MB, free: 4.641 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001487/0.001487, allocations: 75.88 kB / 464.6 MB, free: 13.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1079, allocations: 51.56 MB / 0.5041 GB, free: 9.488 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip2): time 0.2615/0.3695, allocations: 25.42 MB / 0.5289 GB, free: 4.984 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01471/0.3842, allocations: 8.017 MB / 0.5368 GB, free: 4.887 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005439/0.3897, allocations: 174.4 kB / 0.5369 GB, free: 4.887 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01403/0.4037, allocations: 6.094 MB / 0.5429 GB, free: 4.273 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008872/0.4126, allocations: 2.747 MB / 0.5456 GB, free: 3.512 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004834/0.4175, allocations: 1.61 MB / 0.5471 GB, free: 3.352 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01075/0.4283, allocations: 7.281 MB / 0.5542 GB, free: 1.137 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02144/0.4497, allocations: 13.35 MB / 0.5673 GB, free: 11.26 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007236/0.457, allocations: 3.751 MB / 0.5709 GB, free: 9.465 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007918/0.465, allocations: 4.22 MB / 0.5751 GB, free: 5.891 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003102/0.4681, allocations: 1.07 MB / 0.5761 GB, free: 4.82 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005285/0.4734, allocations: 1.433 MB / 0.5775 GB, free: 3.395 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003463/0.4769, allocations: 2.148 MB / 0.5796 GB, free: 1.273 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008096/0.4851, allocations: 4.111 MB / 0.5836 GB, free: 13.18 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01778/0.5029, allocations: 14.44 MB / 0.5977 GB, free: 15 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.093e-06/0.5029, allocations: 0 / 0.5977 GB, free: 15 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.5029, allocations: 0 / 0.5977 GB, free: 15 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003902/0.5033, allocations: 4 kB / 0.5977 GB, free: 14.99 MB / 414.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.02733/0.5307, allocations: 8.772 MB / 0.6063 GB, free: 6.207 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.869e-05/0.5307, allocations: 12.03 kB / 0.6063 GB, free: 6.195 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02531/0.5561, allocations: 4.403 MB / 0.6106 GB, free: 1.836 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01166/0.5678, allocations: 4.611 MB / 0.6151 GB, free: 13.2 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005743/0.5684, allocations: 490.7 kB / 0.6156 GB, free: 12.72 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002725/0.5711, allocations: 0.6248 MB / 0.6162 GB, free: 12.11 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02483/0.596, allocations: 10.35 MB / 0.6263 GB, free: 1.707 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003095/0.5963, allocations: 7.906 kB / 0.6263 GB, free: 1.699 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002127/0.5985, allocations: 267.1 kB / 0.6266 GB, free: 1.445 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004828/0.599, allocations: 417.7 kB / 0.627 GB, free: 1.035 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02086/0.6199, allocations: 9.873 MB / 0.6366 GB, free: 7.145 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06291/0.6828, allocations: 35.3 MB / 0.6711 GB, free: 2.848 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01971/0.7026, allocations: 20.67 MB / 0.6912 GB, free: 11.55 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004101/0.7067, allocations: 2.308 MB / 0.6935 GB, free: 9.227 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000453/0.7072, allocations: 227 kB / 0.6937 GB, free: 8.977 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.33e-05/0.7073, allocations: 64.89 kB / 0.6938 GB, free: 8.902 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=295): time 5.41e-06/0.7073, allocations: 0 / 0.6938 GB, free: 8.902 MB / 0.4981 GB Notification: Performance of matching and sorting (n=301): time 0.02658/0.7339, allocations: 10.87 MB / 0.7044 GB, free: 13.89 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.293e-05/0.734, allocations: 85.77 kB / 0.7045 GB, free: 13.79 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005748/0.7398, allocations: 3.025 MB / 0.7074 GB, free: 10.75 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0003862/0.7402, allocations: 73.7 kB / 0.7075 GB, free: 10.67 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002089/0.7423, allocations: 2.859 MB / 0.7103 GB, free: 7.793 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001227/0.7435, allocations: 1.032 MB / 0.7113 GB, free: 6.77 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002006/0.7455, allocations: 0.9016 MB / 0.7122 GB, free: 5.855 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001096/0.7456, allocations: 305.1 kB / 0.7125 GB, free: 5.555 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003432/0.7491, allocations: 2.024 MB / 0.7145 GB, free: 3.523 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004657/0.7538, allocations: 3.736 MB / 0.7181 GB, free: 15 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008032/0.7618, allocations: 6.039 MB / 0.724 GB, free: 8.156 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.222e-05/0.7619, allocations: 16 kB / 0.724 GB, free: 8.141 MB / 0.5294 GB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01241/0.7743, allocations: 6.625 MB / 0.7305 GB, free: 1.477 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.114e-05/0.7744, allocations: 28 kB / 0.7305 GB, free: 1.449 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001245/0.7746, allocations: 56 kB / 0.7306 GB, free: 1.395 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001911/0.7765, allocations: 0.6718 MB / 0.7312 GB, free: 0.7188 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.2784/1.055, allocations: 1.072 MB / 0.7323 GB, free: 166.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008244/1.063, allocations: 6.214 MB / 0.7383 GB, free: 165.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003733/1.067, allocations: 279.3 kB / 0.7386 GB, free: 165.1 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007238/1.068, allocations: 230.8 kB / 0.7388 GB, free: 165.1 MB / 0.5294 GB 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.004411/1.072, allocations: 2.313 MB / 0.7411 GB, free: 165 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008335/1.073, allocations: 327.4 kB / 0.7414 GB, free: 165 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008661/1.082, allocations: 4.628 MB / 0.7459 GB, free: 164.4 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.602e-05/1.082, allocations: 31.22 kB / 0.7459 GB, free: 164.4 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-05/1.082, allocations: 7.516 kB / 0.746 GB, free: 164.4 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.793e-05/1.082, allocations: 16.52 kB / 0.746 GB, free: 164.4 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02497/1.107, allocations: 11.09 MB / 0.7568 GB, free: 159.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.469e-05/1.107, allocations: 6.031 kB / 0.7568 GB, free: 159.9 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002191/1.109, allocations: 0.5264 MB / 0.7573 GB, free: 159.9 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001673/1.111, allocations: 0.5723 MB / 0.7579 GB, free: 159.8 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004011/1.111, allocations: 64.39 kB / 0.7579 GB, free: 159.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006959/1.118, allocations: 5.451 MB / 0.7633 GB, free: 156.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.512e-06/1.118, allocations: 7.875 kB / 0.7633 GB, free: 156.4 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01163/1.13, allocations: 6.588 MB / 0.7697 GB, free: 153.6 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002486/1.132, allocations: 0.7234 MB / 0.7704 GB, free: 153.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009875/1.133, allocations: 63.56 kB / 0.7705 GB, free: 153.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002301/1.136, allocations: 146 kB / 0.7706 GB, free: 153.1 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005139/1.136, allocations: 206 kB / 0.7708 GB, free: 153.1 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002311/1.136, allocations: 91.81 kB / 0.7709 GB, free: 153.1 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003974/1.14, allocations: 2.016 MB / 0.7729 GB, free: 152.3 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.31e-07/1.14, allocations: 0 / 0.7729 GB, free: 152.3 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006203/1.147, allocations: 1.176 MB / 0.774 GB, free: 152.2 MB / 0.5294 GB 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.0007404/1.147, allocations: 235.3 kB / 0.7742 GB, free: 152 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.008318/1.156, allocations: 5.037 MB / 0.7792 GB, free: 150.1 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.608e-06/1.156, allocations: 0 / 0.7792 GB, free: 150.1 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003749/1.16, allocations: 2.268 MB / 0.7814 GB, free: 149.1 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00429/1.164, allocations: 0.642 MB / 0.782 GB, free: 148.9 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02073/1.185, allocations: 10.85 MB / 0.7926 GB, free: 140.2 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004904/1.19, allocations: 4.036 MB / 0.7965 GB, free: 136.1 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001525/1.191, allocations: 315.3 kB / 0.7968 GB, free: 135.8 MB / 0.5294 GB Notification: Performance of SimCode: time 1.242e-06/1.191, allocations: 0 / 0.7968 GB, free: 135.8 MB / 0.5294 GB Notification: Performance of Templates: time 0.1193/1.31, allocations: 106.6 MB / 0.9009 GB, free: 29.28 MB / 0.5294 GB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.pipe 2>&1)