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.001177/0.001177, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.376/1.376, allocations: 223.2 MB / 238.9 MB, free: 5.465 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.001156/0.001156, allocations: 177 kB / 290.2 MB, free: 2.156 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0332/0.0332, allocations: 8.795 MB / 350.1 MB, free: 4.703 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004337/0.0004339, allocations: 11.06 kB / 413.1 MB, free: 42.99 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1115/0.1119, allocations: 52.56 MB / 465.6 MB, free: 13.55 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve2): time 0.02369/0.1357, allocations: 20.43 MB / 486.1 MB, free: 9.043 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01708/0.1528, allocations: 7.53 MB / 493.6 MB, free: 1.496 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005828/0.1587, allocations: 151.5 kB / 493.8 MB, free: 1.348 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006809/0.1655, allocations: 1.512 MB / 495.3 MB, free: 15.83 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009663/0.1752, allocations: 2.615 MB / 497.9 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005117/0.1804, allocations: 1.339 MB / 499.2 MB, free: 11.88 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0144/0.1948, allocations: 7.889 MB / 0.4952 GB, free: 3.977 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03305/0.2279, allocations: 13.62 MB / 0.5085 GB, free: 6.273 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007559/0.2355, allocations: 3.232 MB / 0.5117 GB, free: 3.031 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007919/0.2435, allocations: 3.576 MB / 0.5152 GB, free: 15.44 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002564/0.2461, allocations: 0.5195 MB / 0.5157 GB, free: 14.92 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004052/0.2502, allocations: 0.8198 MB / 0.5165 GB, free: 14.1 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003545/0.2537, allocations: 1.604 MB / 0.518 GB, free: 12.49 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003747/0.2575, allocations: 1.709 MB / 0.5197 GB, free: 10.77 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2551/0.5127, allocations: 15.25 MB / 0.5346 GB, free: 21.65 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.5127, allocations: 0 / 0.5346 GB, free: 21.65 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.5128, allocations: 0.75 kB / 0.5346 GB, free: 21.65 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0006154/0.5134, allocations: 1.5 kB / 0.5346 GB, free: 21.65 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.03952/0.5529, allocations: 9.066 MB / 0.5435 GB, free: 18.9 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.395e-05/0.553, allocations: 8.656 kB / 0.5435 GB, free: 18.9 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03433/0.5873, allocations: 5.583 MB / 0.5489 GB, free: 16.83 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01524/0.6026, allocations: 5.559 MB / 0.5544 GB, free: 15.32 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008859/0.6035, allocations: 0.5815 MB / 0.5549 GB, free: 15.3 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00402/0.6076, allocations: 0.7601 MB / 0.5557 GB, free: 15.3 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03273/0.6403, allocations: 12.64 MB / 0.568 GB, free: 12.59 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003344/0.6407, allocations: 17.81 kB / 0.568 GB, free: 12.59 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002743/0.6435, allocations: 323.7 kB / 0.5683 GB, free: 12.59 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005407/0.644, allocations: 0.492 MB / 0.5688 GB, free: 12.52 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02497/0.669, allocations: 12.2 MB / 0.5807 GB, free: 7.23 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0772/0.7462, allocations: 43.83 MB / 0.6235 GB, free: 13.5 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02628/0.7726, allocations: 25.14 MB / 0.6481 GB, free: 1.488 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008669/0.7735, allocations: 237.6 kB / 0.6483 GB, free: 1.23 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005141/0.7786, allocations: 2.572 MB / 0.6508 GB, free: 14.59 MB / 446.1 MB Notification: Performance of pre-optimization done (n=391): time 5.861e-06/0.7787, allocations: 0 / 0.6508 GB, free: 14.59 MB / 446.1 MB Notification: Performance of matching and sorting (n=397): time 0.04185/0.8205, allocations: 18.1 MB / 0.6685 GB, free: 12.39 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002745/0.8209, allocations: 359.4 kB / 0.6688 GB, free: 11.97 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006907/0.8278, allocations: 3.487 MB / 0.6722 GB, free: 8.48 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001155/0.829, allocations: 89.7 kB / 0.6723 GB, free: 8.387 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00282/0.8318, allocations: 3.376 MB / 0.6756 GB, free: 4.992 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002298/0.8341, allocations: 1.35 MB / 0.6769 GB, free: 3.652 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004115/0.8346, allocations: 116 kB / 0.6771 GB, free: 3.539 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000366/0.8349, allocations: 0.5258 MB / 0.6776 GB, free: 3.008 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004121/0.8391, allocations: 2.541 MB / 0.68 GB, free: 472 kB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005876/0.845, allocations: 4.481 MB / 0.6844 GB, free: 11.13 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006026/0.851, allocations: 3.554 MB / 0.6879 GB, free: 7.621 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.641e-05/0.8511, allocations: 16 kB / 0.6879 GB, free: 7.605 MB / 478.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01579/0.8669, allocations: 8.263 MB / 0.696 GB, free: 15.7 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.986e-05/0.8671, allocations: 57.7 kB / 0.696 GB, free: 15.64 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001109/0.8672, allocations: 60 kB / 0.6961 GB, free: 15.58 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00274/0.8699, allocations: 1.01 MB / 0.6971 GB, free: 14.57 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005062/0.875, allocations: 1.261 MB / 0.6983 GB, free: 13.4 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0137/0.8887, allocations: 8.493 MB / 0.7066 GB, free: 4.812 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006024/0.8948, allocations: 367.3 kB / 0.707 GB, free: 4.453 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001107/0.8959, allocations: 260 kB / 0.7072 GB, free: 4.199 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(10,53.0%) 48} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007412/0.9034, allocations: 2.901 MB / 0.71 GB, free: 1.371 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00133/0.9047, allocations: 383.3 kB / 0.7104 GB, free: 0.9922 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2298/1.134, allocations: 6.191 MB / 0.7164 GB, free: 169.7 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.559e-05/1.135, allocations: 40.86 kB / 0.7165 GB, free: 169.7 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.421e-05/1.135, allocations: 10.41 kB / 0.7165 GB, free: 169.7 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.294e-05/1.135, allocations: 24.08 kB / 0.7165 GB, free: 169.7 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02892/1.164, allocations: 14.91 MB / 0.7311 GB, free: 165 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-05/1.164, allocations: 3.969 kB / 0.7311 GB, free: 165 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002687/1.166, allocations: 0.6937 MB / 0.7318 GB, free: 164.9 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002352/1.169, allocations: 0.8806 MB / 0.7326 GB, free: 164.7 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004215/1.169, allocations: 87.02 kB / 0.7327 GB, free: 164.7 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009527/1.179, allocations: 7.438 MB / 0.74 GB, free: 160.6 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.46e-06/1.179, allocations: 11.19 kB / 0.74 GB, free: 160.6 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01218/1.191, allocations: 9.23 MB / 0.749 GB, free: 156.3 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002778/1.194, allocations: 0.9375 MB / 0.7499 GB, free: 155.9 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009583/1.195, allocations: 83.45 kB / 0.75 GB, free: 155.9 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002258/1.197, allocations: 199.2 kB / 0.7502 GB, free: 155.8 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000514/1.198, allocations: 275.6 kB / 0.7504 GB, free: 155.8 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002226/1.198, allocations: 112.7 kB / 0.7505 GB, free: 155.8 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003544/1.201, allocations: 2.335 MB / 0.7528 GB, free: 154.2 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.3e-07/1.201, allocations: 0 / 0.7528 GB, free: 154.2 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.006628/1.208, allocations: 1.46 MB / 0.7542 GB, free: 152.8 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(10,50.0%) 46} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007767/1.209, allocations: 250.5 kB / 0.7545 GB, free: 152.6 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.009258/1.218, allocations: 6.459 MB / 0.7608 GB, free: 146.6 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.08e-05/1.218, allocations: 4 kB / 0.7608 GB, free: 146.6 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004546/1.223, allocations: 3.096 MB / 0.7638 GB, free: 143.5 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00364/1.226, allocations: 0.7193 MB / 0.7645 GB, free: 142.9 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0282/1.255, allocations: 16.44 MB / 0.7806 GB, free: 126.3 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007394/1.262, allocations: 5.137 MB / 0.7856 GB, free: 121.2 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.006221/1.268, allocations: 1.597 MB / 0.7872 GB, free: 119.6 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001826/1.27, allocations: 327.4 kB / 0.7875 GB, free: 119.2 MB / 494.1 MB Notification: Performance of SimCode: time 1.523e-06/1.27, allocations: 5.859 kB / 0.7875 GB, free: 119.2 MB / 494.1 MB Notification: Performance of Templates: time 0.09224/1.362, allocations: 57.16 MB / 0.8433 GB, free: 62.41 MB / 494.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: