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.004844/0.004844, allocations: 95.61 kB / 15.73 MB, free: 6.043 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.276/1.276, allocations: 222.9 MB / 239.4 MB, free: 4.559 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.001271/0.001271, allocations: 188.4 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.0329/0.0329, allocations: 8.796 MB / 348.6 MB, free: 4.625 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001424/0.001424, allocations: 75.88 kB / 464 MB, free: 13.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08909/0.09052, allocations: 51.56 MB / 0.5034 GB, free: 9.582 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve2): time 0.02297/0.1135, allocations: 25.46 MB / 0.5283 GB, free: 8 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2036/0.3172, allocations: 7.936 MB / 0.536 GB, free: 4.754 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00451/0.3217, allocations: 177.8 kB / 0.5362 GB, free: 4.75 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.016/0.3378, allocations: 7.641 MB / 0.5437 GB, free: 3.848 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008834/0.3466, allocations: 3.044 MB / 0.5466 GB, free: 2.992 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004979/0.3516, allocations: 2.009 MB / 0.5486 GB, free: 2.801 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0112/0.3629, allocations: 9.228 MB / 0.5576 GB, free: 15.31 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02136/0.3843, allocations: 17.27 MB / 0.5745 GB, free: 5.91 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00698/0.3913, allocations: 4.749 MB / 0.5791 GB, free: 1.273 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007878/0.3992, allocations: 5.238 MB / 0.5842 GB, free: 12.18 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002486/0.4017, allocations: 1.355 MB / 0.5856 GB, free: 10.83 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003911/0.4056, allocations: 1.715 MB / 0.5872 GB, free: 9.125 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002259/0.4079, allocations: 2.673 MB / 0.5898 GB, free: 6.484 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006237/0.4141, allocations: 5.087 MB / 0.5948 GB, free: 1.418 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01769/0.4318, allocations: 18.19 MB / 0.6126 GB, free: 15.54 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.4319, allocations: 0 / 0.6126 GB, free: 15.54 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.4319, allocations: 0 / 0.6126 GB, free: 15.54 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003532/0.4322, allocations: 4 kB / 0.6126 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.02784/0.4601, allocations: 10.95 MB / 0.6233 GB, free: 4.574 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.047e-05/0.4601, allocations: 8.031 kB / 0.6233 GB, free: 4.566 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03056/0.4907, allocations: 5.711 MB / 0.6289 GB, free: 14.91 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01106/0.5018, allocations: 5.818 MB / 0.6345 GB, free: 9.082 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004425/0.5023, allocations: 0.5884 MB / 0.6351 GB, free: 8.5 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002218/0.5045, allocations: 0.7612 MB / 0.6359 GB, free: 7.75 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02186/0.5264, allocations: 12.76 MB / 0.6483 GB, free: 10.97 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001631/0.5265, allocations: 15.95 kB / 0.6483 GB, free: 10.96 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008312/0.5274, allocations: 323.3 kB / 0.6486 GB, free: 10.65 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004338/0.5278, allocations: 0.4967 MB / 0.6491 GB, free: 10.15 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02203/0.5499, allocations: 12.25 MB / 0.6611 GB, free: 13.88 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0653/0.6152, allocations: 43.35 MB / 0.7034 GB, free: 1.445 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02187/0.6371, allocations: 25.19 MB / 0.728 GB, free: 5.348 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004935/0.6421, allocations: 2.976 MB / 0.7309 GB, free: 2.363 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005167/0.6426, allocations: 243.7 kB / 0.7312 GB, free: 2.102 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.3705/1.013, allocations: 2.573 MB / 0.7337 GB, free: 164.2 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=391): time 7.163e-06/1.013, allocations: 0.5938 kB / 0.7337 GB, free: 164.2 MB / 0.5294 GB Notification: Performance of matching and sorting (n=397): time 0.03454/1.048, allocations: 18.41 MB / 0.7517 GB, free: 160.5 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001134/1.048, allocations: 359.4 kB / 0.752 GB, free: 160.2 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005264/1.053, allocations: 3.523 MB / 0.7554 GB, free: 159.3 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0004342/1.054, allocations: 91.89 kB / 0.7555 GB, free: 159.3 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.001828/1.055, allocations: 3.493 MB / 0.7589 GB, free: 157.1 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001101/1.057, allocations: 1.416 MB / 0.7603 GB, free: 156 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001407/1.058, allocations: 1.086 MB / 0.7614 GB, free: 155.5 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 3.33e-05/1.058, allocations: 310 kB / 0.7617 GB, free: 155.2 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003254/1.061, allocations: 2.549 MB / 0.7642 GB, free: 154.2 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003558/1.065, allocations: 4.51 MB / 0.7686 GB, free: 150.7 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006768/1.072, allocations: 7.449 MB / 0.7758 GB, free: 145.7 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.217e-05/1.072, allocations: 19.78 kB / 0.7759 GB, free: 145.7 MB / 0.5294 GB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01085/1.083, allocations: 8.294 MB / 0.784 GB, free: 142.3 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 5.163e-05/1.083, allocations: 59.81 kB / 0.784 GB, free: 142.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.839e-05/1.083, allocations: 57.56 kB / 0.7841 GB, free: 142.3 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002246/1.085, allocations: 0.9973 MB / 0.7851 GB, free: 142.1 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003587/1.089, allocations: 1.262 MB / 0.7863 GB, free: 141.9 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009772/1.098, allocations: 8.816 MB / 0.7949 GB, free: 137 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003927/1.102, allocations: 371.5 kB / 0.7952 GB, free: 136.8 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000551/1.103, allocations: 261.8 kB / 0.7955 GB, free: 136.8 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.003878/1.107, allocations: 2.9 MB / 0.7983 GB, free: 134.2 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008748/1.108, allocations: 405.4 kB / 0.7987 GB, free: 133.8 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008282/1.116, allocations: 6.184 MB / 0.8048 GB, free: 127.7 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.15e-05/1.116, allocations: 44 kB / 0.8048 GB, free: 127.6 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.323e-05/1.116, allocations: 11.98 kB / 0.8048 GB, free: 127.6 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.048e-05/1.116, allocations: 19.92 kB / 0.8048 GB, free: 127.6 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01771/1.134, allocations: 14.65 MB / 0.8191 GB, free: 112.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.228e-05/1.134, allocations: 4 kB / 0.8191 GB, free: 112.9 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002313/1.136, allocations: 0.6826 MB / 0.8198 GB, free: 112.2 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002007/1.138, allocations: 0.8772 MB / 0.8207 GB, free: 111.3 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000204/1.138, allocations: 85.16 kB / 0.8207 GB, free: 111.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008359/1.147, allocations: 7.752 MB / 0.8283 GB, free: 103.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/1.147, allocations: 8.031 kB / 0.8283 GB, free: 103.3 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01005/1.157, allocations: 8.8 MB / 0.8369 GB, free: 94.41 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001687/1.158, allocations: 0.9278 MB / 0.8378 GB, free: 93.46 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00048/1.159, allocations: 72 kB / 0.8379 GB, free: 93.39 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001785/1.161, allocations: 199.8 kB / 0.8381 GB, free: 93.2 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004375/1.161, allocations: 273 kB / 0.8383 GB, free: 92.93 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001902/1.161, allocations: 115.8 kB / 0.8385 GB, free: 92.82 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.002574/1.164, allocations: 2.363 MB / 0.8408 GB, free: 90.47 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.2e-07/1.164, allocations: 0 / 0.8408 GB, free: 90.47 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.003862/1.168, allocations: 1.457 MB / 0.8422 GB, free: 89.01 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.000389/1.168, allocations: 247.4 kB / 0.8424 GB, free: 88.77 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.007782/1.176, allocations: 6.485 MB / 0.8488 GB, free: 82.26 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/1.176, allocations: 0 / 0.8488 GB, free: 82.26 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003693/1.18, allocations: 3.104 MB / 0.8518 GB, free: 79.13 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003264/1.183, allocations: 0.8137 MB / 0.8526 GB, free: 78.35 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01738/1.2, allocations: 13.95 MB / 0.8662 GB, free: 64.29 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004279/1.205, allocations: 5.002 MB / 0.8711 GB, free: 59.25 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003832/1.209, allocations: 1.59 MB / 0.8726 GB, free: 57.66 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008735/1.209, allocations: 335.4 kB / 0.873 GB, free: 57.33 MB / 0.5294 GB Notification: Performance of SimCode: time 7.41e-07/1.209, allocations: 0 / 0.873 GB, free: 57.33 MB / 0.5294 GB Notification: Performance of Templates: time 0.07602/1.285, allocations: 59 MB / 0.9306 GB, free: 14.72 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)