Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.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_VCurve1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1") translateModel(HanserModelica.SynchronousMachines.SMEE_VCurve1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00497/0.00497, allocations: 103.9 kB / 15.74 MB, free: 6.027 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.365/1.365, allocations: 222.9 MB / 239.4 MB, free: 4.543 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.001389/0.001389, allocations: 184.5 kB / 289.7 MB, free: 2.258 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03451/0.03451, allocations: 8.811 MB / 348.7 MB, free: 4.621 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001535/0.001535, allocations: 79.88 kB / 463.9 MB, free: 13.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1052, allocations: 51.56 MB / 0.5034 GB, free: 9.488 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve1): time 0.255/0.3603, allocations: 25.41 MB / 0.5282 GB, free: 4.969 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01631/0.3766, allocations: 7.946 MB / 0.536 GB, free: 4.855 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005703/0.3824, allocations: 172.2 kB / 0.5362 GB, free: 4.855 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01778/0.4003, allocations: 7.644 MB / 0.5436 GB, free: 3.938 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01085/0.4111, allocations: 3.053 MB / 0.5466 GB, free: 3.078 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006274/0.4174, allocations: 2.011 MB / 0.5486 GB, free: 2.887 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01473/0.4322, allocations: 9.226 MB / 0.5576 GB, free: 15.34 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02789/0.4601, allocations: 17.27 MB / 0.5744 GB, free: 5.891 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01026/0.4704, allocations: 4.748 MB / 0.5791 GB, free: 1.258 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0109/0.4814, allocations: 5.236 MB / 0.5842 GB, free: 12.17 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004013/0.4854, allocations: 1.352 MB / 0.5855 GB, free: 10.82 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006082/0.4915, allocations: 1.715 MB / 0.5872 GB, free: 9.113 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004555/0.4961, allocations: 2.668 MB / 0.5898 GB, free: 6.477 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009658/0.5058, allocations: 5.083 MB / 0.5948 GB, free: 1.414 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02499/0.5308, allocations: 18.2 MB / 0.6125 GB, free: 15.54 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.358e-06/0.5309, allocations: 0 / 0.6125 GB, free: 15.54 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.983e-06/0.5309, allocations: 0 / 0.6125 GB, free: 15.54 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0005289/0.5314, allocations: 0 / 0.6125 GB, free: 15.54 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.03697/0.5684, allocations: 10.94 MB / 0.6232 GB, free: 4.57 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.808e-05/0.5685, allocations: 12.03 kB / 0.6232 GB, free: 4.559 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03381/0.6023, allocations: 5.714 MB / 0.6288 GB, free: 14.91 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01473/0.6171, allocations: 5.814 MB / 0.6345 GB, free: 9.074 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000707/0.6178, allocations: 0.5754 MB / 0.6351 GB, free: 8.508 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00335/0.6212, allocations: 0.7691 MB / 0.6358 GB, free: 7.75 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03613/0.6573, allocations: 12.75 MB / 0.6483 GB, free: 10.97 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004439/0.6578, allocations: 19.88 kB / 0.6483 GB, free: 10.95 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003319/0.6611, allocations: 319.2 kB / 0.6486 GB, free: 10.65 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007151/0.6619, allocations: 0.4967 MB / 0.6491 GB, free: 10.15 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02818/0.6901, allocations: 12.25 MB / 0.661 GB, free: 13.88 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07845/0.7686, allocations: 43.35 MB / 0.7034 GB, free: 1.445 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02452/0.7931, allocations: 25.19 MB / 0.728 GB, free: 5.352 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005281/0.7985, allocations: 2.98 MB / 0.7309 GB, free: 2.363 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005249/0.799, allocations: 249.9 kB / 0.7311 GB, free: 2.098 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.463/1.262, allocations: 2.578 MB / 0.7336 GB, free: 164 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=391): time 1.21e-05/1.262, allocations: 1 kB / 0.7336 GB, free: 164 MB / 0.5294 GB Notification: Performance of matching and sorting (n=397): time 0.04738/1.31, allocations: 18.41 MB / 0.7516 GB, free: 160.4 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001544/1.31, allocations: 359.6 kB / 0.752 GB, free: 160 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007465/1.317, allocations: 3.521 MB / 0.7554 GB, free: 159.2 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0008603/1.318, allocations: 87.83 kB / 0.7555 GB, free: 159.1 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.00231/1.32, allocations: 3.495 MB / 0.7589 GB, free: 156.9 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001727/1.322, allocations: 1.417 MB / 0.7603 GB, free: 155.8 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001878/1.324, allocations: 1.086 MB / 0.7613 GB, free: 155.3 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.944e-05/1.324, allocations: 309.1 kB / 0.7616 GB, free: 155 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003962/1.328, allocations: 2.553 MB / 0.7641 GB, free: 154 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004533/1.333, allocations: 4.505 MB / 0.7685 GB, free: 150.6 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009138/1.342, allocations: 7.456 MB / 0.7758 GB, free: 145.6 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001824/1.342, allocations: 19.81 kB / 0.7758 GB, free: 145.6 MB / 0.5294 GB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01753/1.36, allocations: 8.287 MB / 0.7839 GB, free: 142.2 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.701e-05/1.36, allocations: 57.3 kB / 0.784 GB, free: 142.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001072/1.36, allocations: 64.88 kB / 0.784 GB, free: 142.1 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002598/1.362, allocations: 1.003 MB / 0.785 GB, free: 141.9 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00484/1.367, allocations: 1.26 MB / 0.7862 GB, free: 141.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0118/1.379, allocations: 8.809 MB / 0.7948 GB, free: 136.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006392/1.386, allocations: 372.5 kB / 0.7952 GB, free: 136.7 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001508/1.387, allocations: 264.5 kB / 0.7955 GB, free: 136.7 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.006784/1.394, allocations: 2.891 MB / 0.7983 GB, free: 134.1 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001731/1.396, allocations: 407.4 kB / 0.7987 GB, free: 133.7 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01225/1.408, allocations: 6.19 MB / 0.8047 GB, free: 127.6 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.165e-05/1.408, allocations: 41.12 kB / 0.8047 GB, free: 127.6 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.31e-05/1.408, allocations: 12 kB / 0.8048 GB, free: 127.6 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.926e-05/1.408, allocations: 19.92 kB / 0.8048 GB, free: 127.6 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03047/1.439, allocations: 14.64 MB / 0.8191 GB, free: 112.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.626e-05/1.439, allocations: 8 kB / 0.8191 GB, free: 112.9 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002957/1.442, allocations: 0.6826 MB / 0.8198 GB, free: 112.2 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002668/1.444, allocations: 0.8772 MB / 0.8206 GB, free: 111.3 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008434/1.445, allocations: 83.98 kB / 0.8207 GB, free: 111.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01104/1.456, allocations: 7.755 MB / 0.8283 GB, free: 103.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.446e-06/1.456, allocations: 10.62 kB / 0.8283 GB, free: 103.3 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01497/1.471, allocations: 8.8 MB / 0.8369 GB, free: 94.41 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003162/1.474, allocations: 0.9317 MB / 0.8378 GB, free: 93.45 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001411/1.476, allocations: 80 kB / 0.8379 GB, free: 93.38 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003243/1.479, allocations: 191.8 kB / 0.838 GB, free: 93.19 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008158/1.48, allocations: 275.1 kB / 0.8383 GB, free: 92.92 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003735/1.48, allocations: 109.3 kB / 0.8384 GB, free: 92.81 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004926/1.485, allocations: 2.367 MB / 0.8407 GB, free: 90.45 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.4e-07/1.485, allocations: 0 / 0.8407 GB, free: 90.45 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007814/1.493, allocations: 1.453 MB / 0.8421 GB, free: 89 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.0009496/1.494, allocations: 250.4 kB / 0.8424 GB, free: 88.75 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0105/1.505, allocations: 6.488 MB / 0.8487 GB, free: 82.24 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.658e-06/1.505, allocations: 4 kB / 0.8487 GB, free: 82.23 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005187/1.51, allocations: 3.098 MB / 0.8517 GB, free: 79.11 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007423/1.517, allocations: 0.816 MB / 0.8525 GB, free: 78.34 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02763/1.545, allocations: 13.95 MB / 0.8662 GB, free: 64.27 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007074/1.552, allocations: 5.006 MB / 0.871 GB, free: 59.23 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.00533/1.558, allocations: 1.586 MB / 0.8726 GB, free: 57.64 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001589/1.559, allocations: 335.4 kB / 0.8729 GB, free: 57.31 MB / 0.5294 GB Notification: Performance of SimCode: time 1.263e-06/1.559, allocations: 0 / 0.8729 GB, free: 57.31 MB / 0.5294 GB Notification: Performance of Templates: time 0.08786/1.647, allocations: 58.97 MB / 0.9305 GB, free: 14.72 MB / 0.545 GB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe 2>&1)