Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.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_VCurve3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3") translateModel(HanserModelica.SynchronousMachines.SMEE_VCurve3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001186/0.001186, allocations: 110.7 kB / 16.41 MB, free: 6.488 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.355/1.355, allocations: 222.9 MB / 240.1 MB, free: 4.367 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.001512/0.001511, allocations: 184.5 kB / 290.4 MB, free: 2.094 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03434/0.03435, allocations: 8.8 MB / 349.3 MB, free: 4.555 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001766/0.001767, allocations: 79.88 kB / 464.6 MB, free: 12.97 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.1057, allocations: 51.58 MB / 0.5041 GB, free: 9.359 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve3): time 0.2697/0.3754, allocations: 25.43 MB / 0.5289 GB, free: 4.93 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01652/0.392, allocations: 7.949 MB / 0.5367 GB, free: 4.832 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006496/0.3985, allocations: 174.9 kB / 0.5369 GB, free: 4.828 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01786/0.4164, allocations: 7.648 MB / 0.5443 GB, free: 3.918 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01084/0.4273, allocations: 3.048 MB / 0.5473 GB, free: 3.059 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006376/0.4337, allocations: 2.015 MB / 0.5493 GB, free: 2.867 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01426/0.448, allocations: 9.22 MB / 0.5583 GB, free: 15.38 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02825/0.4763, allocations: 17.27 MB / 0.5752 GB, free: 5.914 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009917/0.4862, allocations: 4.767 MB / 0.5798 GB, free: 1.262 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01005/0.4963, allocations: 5.241 MB / 0.5849 GB, free: 12.17 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004515/0.5009, allocations: 1.352 MB / 0.5862 GB, free: 10.82 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006954/0.5079, allocations: 1.71 MB / 0.5879 GB, free: 9.117 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004841/0.5128, allocations: 2.676 MB / 0.5905 GB, free: 6.473 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01108/0.5239, allocations: 5.09 MB / 0.5955 GB, free: 1.406 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02435/0.5483, allocations: 18.15 MB / 0.6132 GB, free: 15.58 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.363e-06/0.5483, allocations: 0 / 0.6132 GB, free: 15.58 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.474e-06/0.5483, allocations: 0 / 0.6132 GB, free: 15.58 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0005291/0.5489, allocations: 0 / 0.6132 GB, free: 15.58 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: 2183 * Number of variables: 2183 Notification: Performance of Generate backend data structure: time 0.0344/0.5833, allocations: 10.76 MB / 0.6237 GB, free: 4.816 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.453e-05/0.5834, allocations: 8.031 kB / 0.6237 GB, free: 4.809 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0319/0.6153, allocations: 5.68 MB / 0.6293 GB, free: 15.18 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01369/0.629, allocations: 5.796 MB / 0.6349 GB, free: 9.371 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006479/0.6297, allocations: 0.5816 MB / 0.6355 GB, free: 8.801 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003366/0.6331, allocations: 0.7601 MB / 0.6363 GB, free: 8.047 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03203/0.6651, allocations: 12.76 MB / 0.6487 GB, free: 11.27 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002957/0.6655, allocations: 11.91 kB / 0.6487 GB, free: 11.25 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00257/0.668, allocations: 328.1 kB / 0.649 GB, free: 10.95 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005669/0.6686, allocations: 0.4967 MB / 0.6495 GB, free: 10.45 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02782/0.6965, allocations: 12.25 MB / 0.6615 GB, free: 14.18 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0758/0.7723, allocations: 43.24 MB / 0.7037 GB, free: 1.84 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02406/0.7964, allocations: 25.2 MB / 0.7283 GB, free: 5.738 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005515/0.802, allocations: 2.976 MB / 0.7312 GB, free: 2.754 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005604/0.8026, allocations: 242.5 kB / 0.7315 GB, free: 2.492 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.4412/1.244, allocations: 2.58 MB / 0.734 GB, free: 164.1 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=391): time 1.004e-05/1.244, allocations: 0 / 0.734 GB, free: 164.1 MB / 0.5294 GB Notification: Performance of matching and sorting (n=397): time 0.04215/1.286, allocations: 18.1 MB / 0.7517 GB, free: 160.4 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001276/1.286, allocations: 351.5 kB / 0.752 GB, free: 160 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006751/1.293, allocations: 3.521 MB / 0.7554 GB, free: 159.3 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0008521/1.294, allocations: 95.39 kB / 0.7555 GB, free: 159.2 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002307/1.296, allocations: 3.379 MB / 0.7588 GB, free: 156.7 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001672/1.298, allocations: 1.345 MB / 0.7601 GB, free: 155.6 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001684/1.299, allocations: 1.081 MB / 0.7612 GB, free: 155.1 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 6.233e-05/1.3, allocations: 305.1 kB / 0.7615 GB, free: 154.8 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003926/1.303, allocations: 2.554 MB / 0.764 GB, free: 153.8 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004528/1.308, allocations: 4.513 MB / 0.7684 GB, free: 150.4 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008876/1.317, allocations: 7.449 MB / 0.7757 GB, free: 145.3 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000113/1.317, allocations: 19.81 kB / 0.7757 GB, free: 145.3 MB / 0.5294 GB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01395/1.331, allocations: 8.281 MB / 0.7838 GB, free: 142 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 7.909e-05/1.331, allocations: 55.64 kB / 0.7838 GB, free: 141.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001042/1.331, allocations: 66.2 kB / 0.7839 GB, free: 141.9 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002496/1.334, allocations: 0.9983 MB / 0.7848 GB, free: 141.7 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004341/1.338, allocations: 1.255 MB / 0.7861 GB, free: 141.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01055/1.349, allocations: 8.806 MB / 0.7947 GB, free: 136.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005128/1.354, allocations: 361.6 kB / 0.795 GB, free: 136.5 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001114/1.355, allocations: 265.5 kB / 0.7953 GB, free: 136.5 MB / 0.5294 GB 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.005497/1.361, allocations: 2.904 MB / 0.7981 GB, free: 134 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001105/1.362, allocations: 388.3 kB / 0.7985 GB, free: 133.6 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008933/1.371, allocations: 6.172 MB / 0.8045 GB, free: 127.8 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.773e-05/1.371, allocations: 40 kB / 0.8045 GB, free: 127.7 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.704e-05/1.371, allocations: 12.88 kB / 0.8046 GB, free: 127.7 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.726e-05/1.371, allocations: 23.92 kB / 0.8046 GB, free: 127.7 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02228/1.393, allocations: 14.64 MB / 0.8189 GB, free: 113 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.517e-05/1.393, allocations: 8 kB / 0.8189 GB, free: 113 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002521/1.396, allocations: 0.6832 MB / 0.8195 GB, free: 112.3 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002277/1.398, allocations: 0.8757 MB / 0.8204 GB, free: 111.4 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005226/1.398, allocations: 84.86 kB / 0.8205 GB, free: 111.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008517/1.407, allocations: 7.747 MB / 0.828 GB, free: 103.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.53e-06/1.407, allocations: 12.03 kB / 0.8281 GB, free: 103.4 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01159/1.419, allocations: 8.775 MB / 0.8366 GB, free: 94.54 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002455/1.421, allocations: 0.9101 MB / 0.8375 GB, free: 93.61 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009851/1.422, allocations: 83.98 kB / 0.8376 GB, free: 93.52 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002359/1.425, allocations: 191.8 kB / 0.8378 GB, free: 93.34 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000551/1.425, allocations: 271.7 kB / 0.838 GB, free: 93.07 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001891/1.425, allocations: 116 kB / 0.8382 GB, free: 92.96 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003152/1.428, allocations: 2.363 MB / 0.8405 GB, free: 90.6 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.41e-07/1.428, allocations: 0 / 0.8405 GB, free: 90.6 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005959/1.434, allocations: 1.447 MB / 0.8419 GB, free: 89.16 MB / 0.5294 GB 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.0007678/1.435, allocations: 257.1 kB / 0.8421 GB, free: 88.91 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.009393/1.445, allocations: 6.481 MB / 0.8484 GB, free: 82.41 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.05e-05/1.445, allocations: 0 / 0.8484 GB, free: 82.41 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004545/1.449, allocations: 3.086 MB / 0.8515 GB, free: 79.3 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004174/1.453, allocations: 0.824 MB / 0.8523 GB, free: 78.51 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02185/1.475, allocations: 13.54 MB / 0.8655 GB, free: 64.87 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004008/1.479, allocations: 4.859 MB / 0.8702 GB, free: 59.97 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001588/1.481, allocations: 375.3 kB / 0.8706 GB, free: 59.61 MB / 0.5294 GB Notification: Performance of SimCode: time 7.02e-07/1.481, allocations: 0 / 0.8706 GB, free: 59.61 MB / 0.5294 GB Notification: Performance of Templates: time 0.3928/1.874, allocations: 132.3 MB / 0.9998 GB, free: 134.9 MB / 0.545 GB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.pipe 2>&1)