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.004248/0.004247, allocations: 97.62 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.276/1.276, allocations: 222.9 MB / 239.4 MB, free: 4.383 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.001189/0.001189, allocations: 184.5 kB / 289.7 MB, free: 2.113 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03368/0.03368, allocations: 8.795 MB / 348.6 MB, free: 4.57 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001302/0.001302, allocations: 75.88 kB / 464 MB, free: 12.99 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08654/0.08785, allocations: 51.56 MB / 0.5034 GB, free: 9.387 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve3): time 0.2038/0.2917, allocations: 25.44 MB / 0.5283 GB, free: 4.879 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01192/0.3036, allocations: 7.946 MB / 0.536 GB, free: 4.77 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004167/0.3078, allocations: 172.3 kB / 0.5362 GB, free: 4.77 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01448/0.3223, allocations: 7.643 MB / 0.5437 GB, free: 3.848 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00844/0.3308, allocations: 3.047 MB / 0.5466 GB, free: 2.992 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004849/0.3356, allocations: 2.016 MB / 0.5486 GB, free: 2.797 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01093/0.3466, allocations: 9.229 MB / 0.5576 GB, free: 15.35 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02054/0.3672, allocations: 17.27 MB / 0.5745 GB, free: 5.945 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007039/0.3742, allocations: 4.744 MB / 0.5791 GB, free: 1.316 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00701/0.3813, allocations: 5.236 MB / 0.5842 GB, free: 12.23 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002222/0.3835, allocations: 1.355 MB / 0.5856 GB, free: 10.87 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003491/0.387, allocations: 1.719 MB / 0.5872 GB, free: 9.164 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002058/0.3891, allocations: 2.67 MB / 0.5898 GB, free: 6.527 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005492/0.3946, allocations: 5.088 MB / 0.5948 GB, free: 1.461 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01719/0.4118, allocations: 18.19 MB / 0.6126 GB, free: 15.58 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.4118, allocations: 0 / 0.6126 GB, free: 15.58 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.4118, allocations: 0 / 0.6126 GB, free: 15.58 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003699/0.4122, allocations: 4 kB / 0.6126 GB, free: 15.58 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.02713/0.4393, allocations: 10.94 MB / 0.6233 GB, free: 4.617 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.783e-05/0.4394, allocations: 12.02 kB / 0.6233 GB, free: 4.605 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03037/0.4698, allocations: 5.714 MB / 0.6289 GB, free: 14.95 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01088/0.4807, allocations: 5.818 MB / 0.6345 GB, free: 9.117 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004378/0.4811, allocations: 0.5858 MB / 0.6351 GB, free: 8.543 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002359/0.4835, allocations: 0.76 MB / 0.6359 GB, free: 7.793 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02461/0.5081, allocations: 12.76 MB / 0.6483 GB, free: 11.01 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001729/0.5083, allocations: 11.89 kB / 0.6483 GB, free: 11 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009351/0.5093, allocations: 324.8 kB / 0.6486 GB, free: 10.7 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004334/0.5097, allocations: 0.4967 MB / 0.6491 GB, free: 10.2 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02032/0.53, allocations: 12.25 MB / 0.6611 GB, free: 13.93 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06227/0.5923, allocations: 43.35 MB / 0.7034 GB, free: 1.492 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02116/0.6135, allocations: 25.19 MB / 0.728 GB, free: 5.391 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004478/0.6181, allocations: 2.983 MB / 0.7309 GB, free: 2.402 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003487/0.6184, allocations: 236.7 kB / 0.7312 GB, free: 2.145 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.2087/0.8271, allocations: 2.58 MB / 0.7337 GB, free: 165.7 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=391): time 7.273e-06/0.8271, allocations: 0 / 0.7337 GB, free: 165.7 MB / 0.5294 GB Notification: Performance of matching and sorting (n=397): time 0.03642/0.8636, allocations: 18.41 MB / 0.7517 GB, free: 161.8 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001057/0.8637, allocations: 357.9 kB / 0.752 GB, free: 161.4 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005441/0.8692, allocations: 3.526 MB / 0.7554 GB, free: 160.8 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0005736/0.8698, allocations: 86.95 kB / 0.7555 GB, free: 160.7 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.00177/0.8715, allocations: 3.495 MB / 0.7589 GB, free: 158.1 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001185/0.8727, allocations: 1.416 MB / 0.7603 GB, free: 157 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001511/0.8743, allocations: 1.085 MB / 0.7614 GB, free: 156.5 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.015e-05/0.8743, allocations: 310.1 kB / 0.7617 GB, free: 156.2 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003395/0.8777, allocations: 2.551 MB / 0.7642 GB, free: 155.2 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00377/0.8815, allocations: 4.508 MB / 0.7686 GB, free: 151.7 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007196/0.8887, allocations: 7.457 MB / 0.7759 GB, free: 146.7 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.02e-05/0.8888, allocations: 19.72 kB / 0.7759 GB, free: 146.7 MB / 0.5294 GB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01152/0.9003, allocations: 8.29 MB / 0.784 GB, free: 143.3 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 5.909e-05/0.9004, allocations: 57.36 kB / 0.784 GB, free: 143.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.618e-05/0.9005, allocations: 62.25 kB / 0.7841 GB, free: 143.3 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002365/0.9029, allocations: 0.9971 MB / 0.7851 GB, free: 143.1 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003966/0.9068, allocations: 1.259 MB / 0.7863 GB, free: 143 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01009/0.9169, allocations: 8.822 MB / 0.7949 GB, free: 138 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004325/0.9213, allocations: 363.5 kB / 0.7953 GB, free: 137.9 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007466/0.9221, allocations: 262.3 kB / 0.7955 GB, free: 137.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.004577/0.9267, allocations: 2.902 MB / 0.7983 GB, free: 135.4 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001086/0.9277, allocations: 409.2 kB / 0.7987 GB, free: 135 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009335/0.9371, allocations: 6.18 MB / 0.8048 GB, free: 128.9 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.236e-05/0.9371, allocations: 42.56 kB / 0.8048 GB, free: 128.9 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.908e-05/0.9372, allocations: 8 kB / 0.8048 GB, free: 128.9 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.354e-05/0.9372, allocations: 25.52 kB / 0.8048 GB, free: 128.9 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02044/0.9577, allocations: 14.65 MB / 0.8191 GB, free: 114.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.517e-05/0.9577, allocations: 4 kB / 0.8191 GB, free: 114.1 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002334/0.9601, allocations: 0.6826 MB / 0.8198 GB, free: 113.5 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002112/0.9622, allocations: 0.877 MB / 0.8207 GB, free: 112.6 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002357/0.9624, allocations: 86.83 kB / 0.8207 GB, free: 112.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008322/0.9708, allocations: 7.75 MB / 0.8283 GB, free: 104.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.579e-06/0.9708, allocations: 12.03 kB / 0.8283 GB, free: 104.6 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01022/0.981, allocations: 8.8 MB / 0.8369 GB, free: 95.69 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00171/0.9827, allocations: 0.9239 MB / 0.8378 GB, free: 94.74 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005075/0.9833, allocations: 75.98 kB / 0.8379 GB, free: 94.67 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001782/0.9851, allocations: 203.6 kB / 0.8381 GB, free: 94.47 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004554/0.9855, allocations: 275.2 kB / 0.8384 GB, free: 94.2 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001906/0.9857, allocations: 112 kB / 0.8385 GB, free: 94.09 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.002574/0.9883, allocations: 2.363 MB / 0.8408 GB, free: 91.74 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.9e-07/0.9883, allocations: 4 kB / 0.8408 GB, free: 91.73 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.003853/0.9922, allocations: 1.449 MB / 0.8422 GB, free: 90.29 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.0004107/0.9926, allocations: 250.3 kB / 0.8424 GB, free: 90.04 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.007692/1, allocations: 6.484 MB / 0.8488 GB, free: 83.53 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/1, allocations: 6 kB / 0.8488 GB, free: 83.52 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003664/1.004, allocations: 3.093 MB / 0.8518 GB, free: 80.4 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003183/1.007, allocations: 0.8129 MB / 0.8526 GB, free: 79.62 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01769/1.025, allocations: 13.94 MB / 0.8662 GB, free: 65.57 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003482/1.028, allocations: 5.01 MB / 0.8711 GB, free: 60.52 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003658/1.032, allocations: 1.59 MB / 0.8726 GB, free: 58.92 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008599/1.033, allocations: 331.4 kB / 0.873 GB, free: 58.6 MB / 0.5294 GB Notification: Performance of SimCode: time 5.91e-07/1.033, allocations: 4 kB / 0.873 GB, free: 58.6 MB / 0.5294 GB Notification: Performance of Templates: time 0.07472/1.108, allocations: 59 MB / 0.9306 GB, free: 15.98 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)