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.006594/0.006599, allocations: 101.5 kB / 15.73 MB, free: 6.047 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.403/1.403, allocations: 222.9 MB / 239.4 MB, free: 4.562 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.001247/0.001247, allocations: 184.5 kB / 289.7 MB, free: 2.27 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03364/0.03364, allocations: 8.792 MB / 348.6 MB, free: 4.629 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001648/0.001648, allocations: 83.86 kB / 464 MB, free: 13.05 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1152/0.1169, allocations: 51.55 MB / 0.5034 GB, free: 9.469 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve2): time 0.2762/0.3931, allocations: 25.45 MB / 0.5283 GB, free: 4.969 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01477/0.4079, allocations: 7.943 MB / 0.536 GB, free: 4.879 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005367/0.4133, allocations: 173.6 kB / 0.5362 GB, free: 4.879 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0176/0.431, allocations: 7.693 MB / 0.5437 GB, free: 3.961 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01257/0.4436, allocations: 3.091 MB / 0.5467 GB, free: 3.105 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008695/0.4523, allocations: 2.02 MB / 0.5487 GB, free: 2.91 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01616/0.4685, allocations: 9.215 MB / 0.5577 GB, free: 15.31 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03299/0.5015, allocations: 17.27 MB / 0.5746 GB, free: 5.848 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01178/0.5134, allocations: 4.766 MB / 0.5792 GB, free: 1.195 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01079/0.5242, allocations: 5.241 MB / 0.5843 GB, free: 12.11 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00606/0.5303, allocations: 1.355 MB / 0.5857 GB, free: 10.75 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008903/0.5393, allocations: 1.707 MB / 0.5873 GB, free: 9.051 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006036/0.5453, allocations: 2.679 MB / 0.59 GB, free: 6.406 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01315/0.5585, allocations: 5.083 MB / 0.5949 GB, free: 1.344 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02607/0.5846, allocations: 18.16 MB / 0.6126 GB, free: 15.52 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.424e-06/0.5847, allocations: 0 / 0.6126 GB, free: 15.52 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.5847, allocations: 0 / 0.6126 GB, free: 15.52 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0006812/0.5854, allocations: 0 / 0.6126 GB, free: 15.52 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.0387/0.6241, allocations: 10.76 MB / 0.6232 GB, free: 4.754 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.267e-05/0.6242, allocations: 8.031 kB / 0.6232 GB, free: 4.746 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03251/0.6567, allocations: 5.68 MB / 0.6287 GB, free: 15.12 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0143/0.671, allocations: 5.795 MB / 0.6344 GB, free: 9.309 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007314/0.6718, allocations: 0.5766 MB / 0.6349 GB, free: 8.738 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003876/0.6757, allocations: 0.7669 MB / 0.6357 GB, free: 7.984 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03119/0.7069, allocations: 12.76 MB / 0.6481 GB, free: 11.2 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002262/0.7071, allocations: 15.91 kB / 0.6482 GB, free: 11.19 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001698/0.7089, allocations: 318.4 kB / 0.6485 GB, free: 10.89 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005191/0.7094, allocations: 0.4967 MB / 0.6489 GB, free: 10.39 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0266/0.736, allocations: 12.26 MB / 0.6609 GB, free: 14.11 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07737/0.8134, allocations: 43.24 MB / 0.7031 GB, free: 1.773 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0231/0.8365, allocations: 25.19 MB / 0.7277 GB, free: 5.672 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005112/0.8417, allocations: 2.98 MB / 0.7307 GB, free: 2.684 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004412/0.8422, allocations: 239 kB / 0.7309 GB, free: 2.426 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.5177/1.36, allocations: 2.581 MB / 0.7334 GB, free: 164.2 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=391): time 1.952e-05/1.36, allocations: 1 kB / 0.7334 GB, free: 164.2 MB / 0.5294 GB Notification: Performance of matching and sorting (n=397): time 0.04788/1.408, allocations: 18.1 MB / 0.7511 GB, free: 160.6 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001634/1.408, allocations: 359 kB / 0.7514 GB, free: 160.2 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0113/1.419, allocations: 3.52 MB / 0.7549 GB, free: 159.4 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0008211/1.42, allocations: 87.95 kB / 0.7549 GB, free: 159.3 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002934/1.423, allocations: 3.378 MB / 0.7582 GB, free: 156.7 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002124/1.425, allocations: 1.349 MB / 0.7596 GB, free: 155.7 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004203/1.43, allocations: 1.081 MB / 0.7606 GB, free: 155.2 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 5.652e-05/1.43, allocations: 305.1 kB / 0.7609 GB, free: 154.9 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00536/1.435, allocations: 2.548 MB / 0.7634 GB, free: 153.9 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006435/1.442, allocations: 4.514 MB / 0.7678 GB, free: 150.5 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01053/1.452, allocations: 7.451 MB / 0.7751 GB, free: 145.4 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001424/1.452, allocations: 19.75 kB / 0.7751 GB, free: 145.4 MB / 0.5294 GB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01621/1.469, allocations: 8.276 MB / 0.7832 GB, free: 142.1 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001278/1.469, allocations: 60.17 kB / 0.7832 GB, free: 142 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001417/1.469, allocations: 63.41 kB / 0.7833 GB, free: 142 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003058/1.472, allocations: 0.9988 MB / 0.7843 GB, free: 141.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004667/1.477, allocations: 1.258 MB / 0.7855 GB, free: 141.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01196/1.489, allocations: 8.807 MB / 0.7941 GB, free: 136.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004978/1.494, allocations: 353.8 kB / 0.7944 GB, free: 136.6 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001117/1.495, allocations: 270.3 kB / 0.7947 GB, free: 136.6 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.005762/1.501, allocations: 2.899 MB / 0.7975 GB, free: 134.1 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00149/1.502, allocations: 391.1 kB / 0.7979 GB, free: 133.7 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01171/1.514, allocations: 6.176 MB / 0.8039 GB, free: 127.8 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.752e-05/1.514, allocations: 41.78 kB / 0.804 GB, free: 127.7 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.752e-05/1.514, allocations: 12 kB / 0.804 GB, free: 127.7 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.721e-05/1.514, allocations: 19.92 kB / 0.804 GB, free: 127.7 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02677/1.541, allocations: 14.64 MB / 0.8183 GB, free: 113 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-05/1.541, allocations: 7.391 kB / 0.8183 GB, free: 113 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002684/1.543, allocations: 0.6793 MB / 0.819 GB, free: 112.3 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002408/1.546, allocations: 0.877 MB / 0.8198 GB, free: 111.4 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004508/1.546, allocations: 87.97 kB / 0.8199 GB, free: 111.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009068/1.555, allocations: 7.743 MB / 0.8275 GB, free: 103.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.124e-06/1.555, allocations: 11.97 kB / 0.8275 GB, free: 103.4 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01263/1.568, allocations: 8.783 MB / 0.8361 GB, free: 94.53 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002392/1.57, allocations: 0.9101 MB / 0.8369 GB, free: 93.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00115/1.572, allocations: 72 kB / 0.837 GB, free: 93.53 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00251/1.574, allocations: 203.6 kB / 0.8372 GB, free: 93.33 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006074/1.575, allocations: 267.1 kB / 0.8375 GB, free: 93.07 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002824/1.575, allocations: 124 kB / 0.8376 GB, free: 92.95 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003998/1.579, allocations: 2.363 MB / 0.8399 GB, free: 90.59 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.6e-07/1.579, allocations: 0 / 0.8399 GB, free: 90.59 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006349/1.585, allocations: 1.447 MB / 0.8413 GB, free: 89.15 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.0007592/1.586, allocations: 249.3 kB / 0.8415 GB, free: 88.9 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.009925/1.596, allocations: 6.478 MB / 0.8479 GB, free: 82.41 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 8.225e-06/1.596, allocations: 5.703 kB / 0.8479 GB, free: 82.4 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004934/1.601, allocations: 3.078 MB / 0.8509 GB, free: 79.29 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005652/1.607, allocations: 0.8171 MB / 0.8517 GB, free: 78.52 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02761/1.634, allocations: 13.74 MB / 0.8651 GB, free: 64.68 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0066/1.641, allocations: 5.002 MB / 0.87 GB, free: 59.64 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004634/1.646, allocations: 1.59 MB / 0.8715 GB, free: 58.04 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008945/1.647, allocations: 335.4 kB / 0.8719 GB, free: 57.72 MB / 0.5294 GB Notification: Performance of SimCode: time 1.102e-06/1.647, allocations: 0 / 0.8719 GB, free: 57.72 MB / 0.5294 GB Notification: Performance of Templates: time 0.1533/1.8, allocations: 59.01 MB / 0.9295 GB, free: 15.1 MB / 0.545 GB 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)