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.007789/0.007789, allocations: 101 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.445/1.445, 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.001472/0.001472, allocations: 184.5 kB / 289.7 MB, free: 2.285 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03367/0.03367, allocations: 8.791 MB / 348.6 MB, free: 4.641 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001546/0.001546, allocations: 84.09 kB / 464 MB, free: 13.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1151/0.1167, allocations: 51.56 MB / 0.5034 GB, free: 9.465 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve3): time 0.2673/0.3841, allocations: 25.43 MB / 0.5283 GB, free: 4.941 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0201/0.4042, allocations: 7.949 MB / 0.536 GB, free: 4.848 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006787/0.4111, allocations: 178.8 kB / 0.5362 GB, free: 4.844 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01813/0.4293, allocations: 7.684 MB / 0.5437 GB, free: 3.922 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01382/0.4431, allocations: 3.108 MB / 0.5467 GB, free: 3.062 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007296/0.4505, allocations: 2.002 MB / 0.5487 GB, free: 2.879 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01728/0.4677, allocations: 9.229 MB / 0.5577 GB, free: 15.31 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03208/0.4999, allocations: 17.26 MB / 0.5746 GB, free: 5.848 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008976/0.5089, allocations: 4.767 MB / 0.5792 GB, free: 1.195 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00973/0.5186, allocations: 5.241 MB / 0.5843 GB, free: 12.11 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004582/0.5233, allocations: 1.352 MB / 0.5857 GB, free: 10.75 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007237/0.5305, allocations: 1.723 MB / 0.5873 GB, free: 9.039 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005159/0.5357, allocations: 2.666 MB / 0.59 GB, free: 6.406 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01109/0.5468, allocations: 5.088 MB / 0.5949 GB, free: 1.34 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02413/0.571, allocations: 18.15 MB / 0.6126 GB, free: 15.51 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.571, allocations: 0 / 0.6126 GB, free: 15.51 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.571, allocations: 0 / 0.6126 GB, free: 15.51 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0005435/0.5716, allocations: 0 / 0.6126 GB, free: 15.51 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.03607/0.6077, allocations: 10.76 MB / 0.6232 GB, free: 4.738 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.482e-05/0.6077, allocations: 8.031 kB / 0.6232 GB, free: 4.73 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03331/0.641, allocations: 5.675 MB / 0.6287 GB, free: 15.11 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01358/0.6546, allocations: 5.791 MB / 0.6344 GB, free: 9.301 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007361/0.6554, allocations: 0.5777 MB / 0.6349 GB, free: 8.734 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003578/0.659, allocations: 0.7645 MB / 0.6357 GB, free: 7.977 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03288/0.6919, allocations: 12.76 MB / 0.6481 GB, free: 11.2 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002643/0.6922, allocations: 15.89 kB / 0.6481 GB, free: 11.18 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00196/0.6942, allocations: 325.8 kB / 0.6485 GB, free: 10.88 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005034/0.6947, allocations: 0.4928 MB / 0.6489 GB, free: 10.38 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02918/0.7239, allocations: 12.26 MB / 0.6609 GB, free: 14.1 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08405/0.808, allocations: 43.24 MB / 0.7031 GB, free: 1.766 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02449/0.8325, allocations: 25.19 MB / 0.7277 GB, free: 5.672 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005404/0.838, allocations: 2.992 MB / 0.7307 GB, free: 2.672 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004054/0.8384, allocations: 242.7 kB / 0.7309 GB, free: 2.41 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.5033/1.342, allocations: 2.568 MB / 0.7334 GB, free: 164.2 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=391): time 9.438e-06/1.342, allocations: 4.094 kB / 0.7334 GB, free: 164.2 MB / 0.5294 GB Notification: Performance of matching and sorting (n=397): time 0.03897/1.381, allocations: 18.1 MB / 0.7511 GB, free: 160.5 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001791/1.381, allocations: 352.5 kB / 0.7514 GB, free: 160.1 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006166/1.387, allocations: 3.523 MB / 0.7549 GB, free: 159.4 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0006257/1.388, allocations: 86.83 kB / 0.7549 GB, free: 159.3 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.001886/1.39, allocations: 3.377 MB / 0.7582 GB, free: 156.8 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001291/1.391, allocations: 1.351 MB / 0.7596 GB, free: 155.7 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001609/1.393, allocations: 1.081 MB / 0.7606 GB, free: 155.2 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.04e-05/1.393, allocations: 309.1 kB / 0.7609 GB, free: 154.9 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00367/1.396, allocations: 2.547 MB / 0.7634 GB, free: 153.9 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003958/1.4, allocations: 4.515 MB / 0.7678 GB, free: 150.5 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00742/1.408, allocations: 7.456 MB / 0.7751 GB, free: 145.4 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.942e-05/1.408, allocations: 15.75 kB / 0.7751 GB, free: 145.4 MB / 0.5294 GB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01227/1.42, allocations: 8.273 MB / 0.7832 GB, free: 142.1 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.532e-05/1.42, allocations: 61.39 kB / 0.7832 GB, free: 142 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001113/1.42, allocations: 59.03 kB / 0.7833 GB, free: 142 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002625/1.423, allocations: 0.9989 MB / 0.7843 GB, free: 141.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004508/1.427, allocations: 1.262 MB / 0.7855 GB, free: 141.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0112/1.439, allocations: 8.811 MB / 0.7941 GB, free: 136.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005012/1.444, allocations: 359.8 kB / 0.7944 GB, free: 136.6 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001088/1.445, allocations: 269.4 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.005865/1.451, allocations: 2.902 MB / 0.7975 GB, free: 134.1 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001537/1.452, allocations: 383.2 kB / 0.7979 GB, free: 133.7 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01042/1.463, allocations: 6.178 MB / 0.8039 GB, free: 127.7 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.631e-05/1.463, allocations: 40 kB / 0.804 GB, free: 127.7 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.305e-05/1.463, allocations: 12 kB / 0.804 GB, free: 127.7 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.987e-05/1.463, allocations: 19.92 kB / 0.804 GB, free: 127.6 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02217/1.485, allocations: 14.64 MB / 0.8183 GB, free: 112.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.385e-05/1.485, allocations: 4 kB / 0.8183 GB, free: 112.9 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002396/1.487, allocations: 0.6787 MB / 0.819 GB, free: 112.3 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002187/1.49, allocations: 0.8785 MB / 0.8198 GB, free: 111.4 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002771/1.49, allocations: 92.66 kB / 0.8199 GB, free: 111.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008653/1.499, allocations: 7.756 MB / 0.8275 GB, free: 103.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.629e-06/1.499, allocations: 4 kB / 0.8275 GB, free: 103.4 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01129/1.51, allocations: 8.779 MB / 0.8361 GB, free: 94.5 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002139/1.512, allocations: 0.9062 MB / 0.8369 GB, free: 93.57 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005117/1.513, allocations: 76 kB / 0.837 GB, free: 93.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001776/1.514, allocations: 195.8 kB / 0.8372 GB, free: 93.3 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004942/1.515, allocations: 275.1 kB / 0.8375 GB, free: 93.04 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001961/1.515, allocations: 116 kB / 0.8376 GB, free: 92.92 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.002767/1.518, allocations: 2.359 MB / 0.8399 GB, free: 90.57 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.91e-07/1.518, allocations: 4 kB / 0.8399 GB, free: 90.57 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004755/1.523, allocations: 1.451 MB / 0.8413 GB, free: 89.12 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.0005312/1.523, allocations: 253.8 kB / 0.8415 GB, free: 88.87 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.008861/1.532, allocations: 6.474 MB / 0.8479 GB, free: 82.38 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 8.135e-06/1.532, allocations: 320 / 0.8479 GB, free: 82.38 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004192/1.536, allocations: 3.083 MB / 0.8509 GB, free: 79.27 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003766/1.54, allocations: 0.8187 MB / 0.8517 GB, free: 78.48 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02107/1.561, allocations: 13.75 MB / 0.8651 GB, free: 64.64 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004184/1.565, allocations: 5.006 MB / 0.87 GB, free: 59.59 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004578/1.57, allocations: 1.59 MB / 0.8715 GB, free: 58 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009751/1.571, allocations: 327.4 kB / 0.8719 GB, free: 57.68 MB / 0.5294 GB Notification: Performance of SimCode: time 1.262e-06/1.571, allocations: 4 kB / 0.8719 GB, free: 57.68 MB / 0.5294 GB Notification: Performance of Templates: time 0.08629/1.657, allocations: 59 MB / 0.9295 GB, free: 15.07 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)