Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.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_VCurve2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2") translateModel(HanserModelica.SynchronousMachines.SMEE_VCurve2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008945/0.0008945, allocations: 91.92 kB / 16.02 MB, free: 80 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.294/1.294, allocations: 223.3 MB / 240 MB, free: 5.469 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.0009686/0.0009686, allocations: 176.5 kB / 291.3 MB, free: 2.133 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03531/0.03531, allocations: 8.804 MB / 351.2 MB, free: 4.543 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005153/0.0005154, allocations: 12.86 kB / 414.5 MB, free: 42.74 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07607/0.0766, allocations: 52.56 MB / 467 MB, free: 13.06 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve2): time 0.02236/0.09901, allocations: 23.95 MB / 491 MB, free: 4.996 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01295/0.112, allocations: 7.786 MB / 498.8 MB, free: 13.19 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003322/0.1153, allocations: 163.5 kB / 498.9 MB, free: 13.03 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004441/0.1198, allocations: 1.816 MB / 0.489 GB, free: 11.2 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007352/0.1272, allocations: 2.777 MB / 0.4917 GB, free: 8.418 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003628/0.1308, allocations: 1.693 MB / 0.4934 GB, free: 6.734 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.009438/0.1403, allocations: 9.36 MB / 0.5025 GB, free: 13.34 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02519/0.1655, allocations: 17.62 MB / 0.5197 GB, free: 11.59 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004404/0.1699, allocations: 3.398 MB / 0.523 GB, free: 8.18 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00532/0.1752, allocations: 4.108 MB / 0.5271 GB, free: 4.055 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009253/0.1762, allocations: 0.5195 MB / 0.5276 GB, free: 3.535 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002009/0.1782, allocations: 0.8941 MB / 0.5284 GB, free: 2.641 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001324/0.1795, allocations: 1.689 MB / 0.5301 GB, free: 0.9453 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.164/0.3435, allocations: 4.03 MB / 0.534 GB, free: 21.28 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01095/0.3545, allocations: 15.32 MB / 0.549 GB, free: 17.47 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.3545, allocations: 0 / 0.549 GB, free: 17.47 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.3545, allocations: 0 / 0.549 GB, free: 17.47 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002561/0.3548, allocations: 1.344 kB / 0.549 GB, free: 17.47 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: 2183 * Number of variables: 2183 Notification: Performance of Generate backend data structure: time 0.02287/0.3777, allocations: 9.048 MB / 0.5578 GB, free: 12.94 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.748e-05/0.3777, allocations: 12.16 kB / 0.5578 GB, free: 12.94 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03229/0.41, allocations: 5.662 MB / 0.5634 GB, free: 10.81 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0106/0.4206, allocations: 5.669 MB / 0.5689 GB, free: 9.211 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003474/0.421, allocations: 0.5822 MB / 0.5695 GB, free: 9.191 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001889/0.4229, allocations: 0.7719 MB / 0.5702 GB, free: 9.184 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0198/0.4427, allocations: 12.77 MB / 0.5827 GB, free: 6.129 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001714/0.4429, allocations: 8.469 kB / 0.5827 GB, free: 6.125 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008668/0.4438, allocations: 327.3 kB / 0.583 GB, free: 5.883 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000383/0.4442, allocations: 0.492 MB / 0.5835 GB, free: 5.777 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02006/0.4642, allocations: 12.26 MB / 0.5955 GB, free: 10.26 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06682/0.5311, allocations: 43.85 MB / 0.6383 GB, free: 13.81 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0243/0.5554, allocations: 25.15 MB / 0.6628 GB, free: 1.777 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005063/0.5605, allocations: 2.979 MB / 0.6658 GB, free: 14.79 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003967/0.5609, allocations: 249.7 kB / 0.666 GB, free: 14.53 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004123/0.5651, allocations: 2.586 MB / 0.6685 GB, free: 11.88 MB / 462.1 MB Notification: Performance of pre-optimization done (n=391): time 6.562e-06/0.5651, allocations: 0 / 0.6685 GB, free: 11.88 MB / 462.1 MB Notification: Performance of matching and sorting (n=397): time 0.03624/0.6013, allocations: 18.17 MB / 0.6863 GB, free: 9.605 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001471/0.6015, allocations: 355.5 kB / 0.6866 GB, free: 9.184 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004941/0.6065, allocations: 3.511 MB / 0.69 GB, free: 5.668 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002286/0.6067, allocations: 93.7 kB / 0.6901 GB, free: 5.57 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002115/0.6088, allocations: 3.379 MB / 0.6934 GB, free: 2.172 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001007/0.6098, allocations: 1.348 MB / 0.6947 GB, free: 0.8359 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006195/0.6105, allocations: 446.2 kB / 0.6952 GB, free: 404 kB / 478.1 MB Notification: Performance of setup shared object (initialization): time 8.048e-05/0.6106, allocations: 305.1 kB / 0.6955 GB, free: 96 kB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00385/0.6144, allocations: 2.556 MB / 0.698 GB, free: 13.54 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005072/0.6195, allocations: 4.52 MB / 0.7024 GB, free: 8.164 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009255/0.6288, allocations: 7.461 MB / 0.7097 GB, free: 84 kB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-05/0.6288, allocations: 16 kB / 0.7097 GB, free: 68 kB / 494.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.1802/0.8091, allocations: 8.275 MB / 0.7177 GB, free: 172.5 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.342e-05/0.8092, allocations: 60.36 kB / 0.7178 GB, free: 172.5 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.604e-05/0.8093, allocations: 67.19 kB / 0.7179 GB, free: 172.5 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002857/0.8121, allocations: 0.9958 MB / 0.7188 GB, free: 172.3 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004149/0.8163, allocations: 1.261 MB / 0.7201 GB, free: 172.2 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01068/0.827, allocations: 8.255 MB / 0.7281 GB, free: 167.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003735/0.8307, allocations: 354.2 kB / 0.7285 GB, free: 167.6 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00037/0.8311, allocations: 271.3 kB / 0.7287 GB, free: 167.6 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 275 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (664): * Single equations (assignments): 662 * Array equations: 0 * Algorithm blocks: 1 * 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 {(10,48,52.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003852/0.835, allocations: 2.901 MB / 0.7316 GB, free: 166.1 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005333/0.8355, allocations: 387.2 kB / 0.7319 GB, free: 166.1 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009413/0.8449, allocations: 6.196 MB / 0.738 GB, free: 163.6 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.339e-05/0.845, allocations: 42.03 kB / 0.738 GB, free: 163.6 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.327e-05/0.845, allocations: 11.38 kB / 0.738 GB, free: 163.6 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.265e-05/0.845, allocations: 21.8 kB / 0.7381 GB, free: 163.6 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01859/0.8636, allocations: 14.92 MB / 0.7526 GB, free: 153 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.317e-05/0.8636, allocations: 4.594 kB / 0.7526 GB, free: 153 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002623/0.8663, allocations: 0.6904 MB / 0.7533 GB, free: 152.4 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002277/0.8686, allocations: 0.8743 MB / 0.7542 GB, free: 151.7 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002071/0.8688, allocations: 87.19 kB / 0.7542 GB, free: 151.6 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008963/0.8778, allocations: 7.203 MB / 0.7613 GB, free: 144.8 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/0.8778, allocations: 4 kB / 0.7613 GB, free: 144.8 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0108/0.8886, allocations: 8.789 MB / 0.7699 GB, free: 135.9 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001528/0.8901, allocations: 0.9334 MB / 0.7708 GB, free: 134.9 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004808/0.8906, allocations: 84 kB / 0.7709 GB, free: 134.8 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002005/0.8926, allocations: 195.8 kB / 0.771 GB, free: 134.6 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004444/0.8931, allocations: 275.1 kB / 0.7713 GB, free: 134.4 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002097/0.8933, allocations: 119.9 kB / 0.7714 GB, free: 134.3 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002828/0.8961, allocations: 2.363 MB / 0.7737 GB, free: 131.9 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.8961, allocations: 0 / 0.7737 GB, free: 131.9 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003861/0.9, allocations: 1.457 MB / 0.7752 GB, free: 130.4 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 3 (smee.inertiaRotor.w,smee.rotorCage.port_p.reference.gamma,constantTorque.phi) * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 1 ($whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (371): * Single equations (assignments): 369 * Array equations: 0 * Algorithm blocks: 1 * 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 {(10,46,50.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004296/0.9004, allocations: 254.2 kB / 0.7754 GB, free: 130.2 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.008105/0.9086, allocations: 6.481 MB / 0.7817 GB, free: 123.7 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.9086, allocations: 0 / 0.7817 GB, free: 123.7 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004019/0.9126, allocations: 3.082 MB / 0.7847 GB, free: 120.6 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005088/0.9177, allocations: 0.7781 MB / 0.7855 GB, free: 119.8 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01782/0.9355, allocations: 17.06 MB / 0.8022 GB, free: 102.7 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003684/0.9392, allocations: 4.857 MB / 0.8069 GB, free: 97.77 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001333/0.9406, allocations: 375.3 kB / 0.8073 GB, free: 97.4 MB / 494.1 MB Notification: Performance of SimCode: time 4.81e-07/0.9406, allocations: 0 / 0.8073 GB, free: 97.4 MB / 494.1 MB Notification: Performance of Templates: time 0.2779/1.218, allocations: 130.5 MB / 0.9347 GB, free: 134.5 MB / 494.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe 2>&1)