Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.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_VCurve4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4") translateModel(HanserModelica.SynchronousMachines.SMEE_VCurve4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009388/0.0009389, allocations: 92.23 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.308/1.308, allocations: 223.3 MB / 240 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.0009301/0.0009301, allocations: 176.5 kB / 291.3 MB, free: 2.145 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03534/0.03534, allocations: 8.813 MB / 351.2 MB, free: 4.574 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003396/0.0003396, allocations: 11.97 kB / 414.5 MB, free: 42.73 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06729/0.06764, allocations: 52.55 MB / 467 MB, free: 13.11 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve4): time 0.02212/0.0898, allocations: 23.95 MB / 491 MB, free: 5.047 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01306/0.1029, allocations: 7.798 MB / 498.8 MB, free: 13.23 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003051/0.106, allocations: 163.5 kB / 498.9 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003609/0.1096, allocations: 1.816 MB / 0.489 GB, free: 11.24 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006329/0.1159, allocations: 2.762 MB / 0.4917 GB, free: 8.473 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003414/0.1194, allocations: 1.701 MB / 0.4934 GB, free: 6.777 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.008817/0.1282, allocations: 9.355 MB / 0.5025 GB, free: 13.39 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0246/0.1528, allocations: 17.63 MB / 0.5197 GB, free: 11.63 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004214/0.1571, allocations: 3.402 MB / 0.5231 GB, free: 8.215 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004392/0.1615, allocations: 4.1 MB / 0.5271 GB, free: 4.098 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007565/0.1622, allocations: 0.5195 MB / 0.5276 GB, free: 3.578 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001802/0.164, allocations: 0.8902 MB / 0.5284 GB, free: 2.688 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001305/0.1654, allocations: 1.693 MB / 0.5301 GB, free: 0.9883 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.163/0.3284, allocations: 4.029 MB / 0.534 GB, free: 21.39 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01105/0.3395, allocations: 15.32 MB / 0.549 GB, free: 17.62 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.3395, allocations: 0.5625 kB / 0.549 GB, free: 17.62 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.3395, allocations: 3.219 kB / 0.549 GB, free: 17.62 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003014/0.3398, allocations: 1.438 kB / 0.549 GB, free: 17.62 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.02338/0.3632, allocations: 9.044 MB / 0.5578 GB, free: 13.09 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.66e-05/0.3632, allocations: 9.5 kB / 0.5578 GB, free: 13.09 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03209/0.3953, allocations: 5.657 MB / 0.5634 GB, free: 10.96 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01056/0.4059, allocations: 5.676 MB / 0.5689 GB, free: 9.355 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003178/0.4063, allocations: 0.5808 MB / 0.5695 GB, free: 9.336 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001688/0.408, allocations: 0.7737 MB / 0.5702 GB, free: 9.324 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01987/0.4278, allocations: 12.76 MB / 0.5827 GB, free: 6.172 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001798/0.428, allocations: 14.19 kB / 0.5827 GB, free: 6.164 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008584/0.4289, allocations: 326 kB / 0.583 GB, free: 5.922 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003938/0.4293, allocations: 0.4895 MB / 0.5835 GB, free: 5.82 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01942/0.4487, allocations: 12.26 MB / 0.5955 GB, free: 10.3 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06398/0.5128, allocations: 43.85 MB / 0.6383 GB, free: 13.86 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02273/0.5355, allocations: 25.16 MB / 0.6628 GB, free: 1.82 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004458/0.54, allocations: 2.988 MB / 0.6658 GB, free: 14.83 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003334/0.5404, allocations: 244.8 kB / 0.666 GB, free: 14.56 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003881/0.5443, allocations: 2.582 MB / 0.6685 GB, free: 11.91 MB / 462.1 MB Notification: Performance of pre-optimization done (n=391): time 6.181e-06/0.5443, allocations: 0 / 0.6685 GB, free: 11.91 MB / 462.1 MB Notification: Performance of matching and sorting (n=397): time 0.03846/0.5827, allocations: 18.17 MB / 0.6863 GB, free: 9.645 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001387/0.5829, allocations: 355.1 kB / 0.6866 GB, free: 9.227 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004959/0.5879, allocations: 3.519 MB / 0.69 GB, free: 5.703 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002305/0.5881, allocations: 89.7 kB / 0.6901 GB, free: 5.609 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002028/0.5902, allocations: 3.379 MB / 0.6934 GB, free: 2.211 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001036/0.5912, allocations: 1.345 MB / 0.6947 GB, free: 0.8789 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006158/0.5918, allocations: 450.2 kB / 0.6952 GB, free: 444 kB / 478.1 MB Notification: Performance of setup shared object (initialization): time 7.804e-05/0.5919, allocations: 309.1 kB / 0.6955 GB, free: 132 kB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003954/0.5959, allocations: 2.555 MB / 0.698 GB, free: 13.57 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005112/0.601, allocations: 4.514 MB / 0.7024 GB, free: 8.203 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009322/0.6103, allocations: 7.459 MB / 0.7096 GB, free: 128 kB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.534e-05/0.6104, allocations: 24 kB / 0.7097 GB, free: 104 kB / 494.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.1865/0.7969, allocations: 8.273 MB / 0.7177 GB, free: 172.6 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.852e-05/0.797, allocations: 58.95 kB / 0.7178 GB, free: 172.6 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001032/0.7971, allocations: 60.5 kB / 0.7179 GB, free: 172.6 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00301/0.8002, allocations: 0.9988 MB / 0.7188 GB, free: 172.4 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004422/0.8046, allocations: 1.264 MB / 0.7201 GB, free: 172.3 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01092/0.8155, allocations: 8.241 MB / 0.7281 GB, free: 167.8 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004102/0.8197, allocations: 371.8 kB / 0.7285 GB, free: 167.7 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005991/0.8203, allocations: 264.8 kB / 0.7287 GB, free: 167.7 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 (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.004398/0.8247, allocations: 2.902 MB / 0.7316 GB, free: 166.2 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007364/0.8254, allocations: 390.8 kB / 0.7319 GB, free: 166.2 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009754/0.8352, allocations: 6.188 MB / 0.738 GB, free: 163.6 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.474e-05/0.8352, allocations: 43.92 kB / 0.738 GB, free: 163.6 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.858e-05/0.8352, allocations: 11.75 kB / 0.738 GB, free: 163.6 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.228e-05/0.8353, allocations: 19.22 kB / 0.738 GB, free: 163.6 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02017/0.8555, allocations: 14.93 MB / 0.7526 GB, free: 153 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.355e-05/0.8555, allocations: 4 kB / 0.7526 GB, free: 153 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002666/0.8582, allocations: 0.6916 MB / 0.7533 GB, free: 152.4 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002277/0.8604, allocations: 0.867 MB / 0.7542 GB, free: 151.8 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002338/0.8607, allocations: 86.66 kB / 0.7542 GB, free: 151.7 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009031/0.8697, allocations: 7.201 MB / 0.7613 GB, free: 144.9 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.631e-06/0.8698, allocations: 16.03 kB / 0.7613 GB, free: 144.9 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01123/0.881, allocations: 8.789 MB / 0.7699 GB, free: 136 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001701/0.8827, allocations: 0.9295 MB / 0.7708 GB, free: 135 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007785/0.8835, allocations: 75.98 kB / 0.7708 GB, free: 134.9 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002333/0.8858, allocations: 207.8 kB / 0.771 GB, free: 134.7 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004827/0.8863, allocations: 271.1 kB / 0.7713 GB, free: 134.5 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002179/0.8866, allocations: 115.9 kB / 0.7714 GB, free: 134.4 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003393/0.89, allocations: 2.363 MB / 0.7737 GB, free: 132 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.89, allocations: 0 / 0.7737 GB, free: 132 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004377/0.8943, allocations: 1.46 MB / 0.7751 GB, free: 130.5 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 (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.0004671/0.8948, allocations: 248.6 kB / 0.7754 GB, free: 130.3 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.008613/0.9034, allocations: 6.478 MB / 0.7817 GB, free: 123.8 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.849e-06/0.9035, allocations: 2.719 kB / 0.7817 GB, free: 123.8 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00412/0.9076, allocations: 3.091 MB / 0.7847 GB, free: 120.7 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005432/0.913, allocations: 0.7741 MB / 0.7855 GB, free: 119.9 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01996/0.933, allocations: 17.07 MB / 0.8022 GB, free: 102.8 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004811/0.9378, allocations: 4.857 MB / 0.8069 GB, free: 97.87 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001638/0.9395, allocations: 375.3 kB / 0.8073 GB, free: 97.5 MB / 494.1 MB Notification: Performance of SimCode: time 1.062e-06/0.9395, allocations: 0 / 0.8073 GB, free: 97.5 MB / 494.1 MB Notification: Performance of Templates: time 0.2979/1.237, allocations: 130.5 MB / 0.9347 GB, free: 134.6 MB / 494.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.pipe 2>&1)