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.001132/0.001132, allocations: 98.73 kB / 16.35 MB, free: 5.828 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.329/1.329, allocations: 222.9 MB / 240 MB, free: 4.516 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.001443/0.001443, allocations: 188.5 kB / 290.3 MB, free: 2.25 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03625/0.03625, allocations: 8.797 MB / 349.3 MB, free: 4.594 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001486/0.001486, allocations: 83.34 kB / 412.5 MB, free: 41.67 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08509/0.08659, allocations: 51.56 MB / 464.1 MB, free: 13.52 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve2): time 0.02366/0.1103, allocations: 25.45 MB / 489.5 MB, free: 3.941 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01496/0.1253, allocations: 7.933 MB / 497.5 MB, free: 11.98 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004332/0.1296, allocations: 171.5 kB / 497.6 MB, free: 11.82 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01677/0.1464, allocations: 7.659 MB / 0.4934 GB, free: 4.137 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008576/0.155, allocations: 3.044 MB / 0.4964 GB, free: 1.082 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005178/0.1602, allocations: 2.022 MB / 0.4984 GB, free: 15.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01123/0.1715, allocations: 9.223 MB / 0.5074 GB, free: 5.816 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02406/0.1955, allocations: 17.27 MB / 0.5243 GB, free: 4.398 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1721/0.3676, allocations: 4.743 MB / 0.5289 GB, free: 19.82 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007124/0.3748, allocations: 5.241 MB / 0.534 GB, free: 19.65 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003013/0.3778, allocations: 1.353 MB / 0.5353 GB, free: 19.65 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00443/0.3823, allocations: 1.716 MB / 0.537 GB, free: 19.65 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00258/0.3849, allocations: 2.669 MB / 0.5396 GB, free: 19.36 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008275/0.3931, allocations: 5.078 MB / 0.5446 GB, free: 18.21 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01929/0.4125, allocations: 18.16 MB / 0.5623 GB, free: 13.37 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.895e-06/0.4125, allocations: 0 / 0.5623 GB, free: 13.37 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.535e-06/0.4125, allocations: 0 / 0.5623 GB, free: 13.37 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0005225/0.413, allocations: 4.125 kB / 0.5623 GB, free: 13.37 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.03236/0.4454, allocations: 10.75 MB / 0.5728 GB, free: 7.043 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.794e-05/0.4455, allocations: 10.41 kB / 0.5728 GB, free: 7.043 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03051/0.476, allocations: 5.671 MB / 0.5784 GB, free: 4.504 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01297/0.489, allocations: 5.797 MB / 0.584 GB, free: 0.668 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003848/0.4894, allocations: 0.5796 MB / 0.5846 GB, free: 420 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003556/0.493, allocations: 0.7645 MB / 0.5853 GB, free: 144 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03458/0.5276, allocations: 12.77 MB / 0.5978 GB, free: 3.371 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002413/0.5278, allocations: 11.89 kB / 0.5978 GB, free: 3.359 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001916/0.5298, allocations: 321.6 kB / 0.5981 GB, free: 3.059 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000494/0.5303, allocations: 0.4967 MB / 0.5986 GB, free: 2.559 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02552/0.5558, allocations: 12.26 MB / 0.6106 GB, free: 6.285 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07671/0.6325, allocations: 43.23 MB / 0.6528 GB, free: 10.43 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02298/0.6556, allocations: 25.18 MB / 0.6774 GB, free: 14.43 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00524/0.6608, allocations: 2.972 MB / 0.6803 GB, free: 11.45 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006134/0.6615, allocations: 246.4 kB / 0.6805 GB, free: 11.18 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005388/0.6669, allocations: 2.582 MB / 0.683 GB, free: 8.535 MB / 478.1 MB Notification: Performance of pre-optimization done (n=391): time 9.288e-06/0.6669, allocations: 0 / 0.683 GB, free: 8.535 MB / 478.1 MB Notification: Performance of matching and sorting (n=397): time 0.04123/0.7082, allocations: 18.11 MB / 0.7007 GB, free: 6.328 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001519/0.7083, allocations: 355.5 kB / 0.7011 GB, free: 5.906 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004859/0.7132, allocations: 3.515 MB / 0.7045 GB, free: 2.387 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003555/0.7136, allocations: 93.7 kB / 0.7046 GB, free: 2.289 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.167/0.8806, allocations: 3.37 MB / 0.7079 GB, free: 166.1 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001359/0.882, allocations: 1.352 MB / 0.7092 GB, free: 165.3 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001744/0.8837, allocations: 1.078 MB / 0.7103 GB, free: 165.2 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 3.974e-05/0.8838, allocations: 310.3 kB / 0.7106 GB, free: 164.9 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003467/0.8873, allocations: 2.547 MB / 0.713 GB, free: 164.9 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004734/0.892, allocations: 4.513 MB / 0.7174 GB, free: 162.6 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009212/0.9013, allocations: 7.457 MB / 0.7247 GB, free: 160.1 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.737e-05/0.9014, allocations: 17.09 kB / 0.7247 GB, free: 160.1 MB / 494.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01314/0.9145, allocations: 8.269 MB / 0.7328 GB, free: 158.3 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.768e-05/0.9146, allocations: 62.3 kB / 0.7329 GB, free: 158.3 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001048/0.9147, allocations: 58.88 kB / 0.7329 GB, free: 158.3 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002413/0.9172, allocations: 1 MB / 0.7339 GB, free: 158.1 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004043/0.9212, allocations: 1.259 MB / 0.7351 GB, free: 157.9 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01196/0.9332, allocations: 8.814 MB / 0.7438 GB, free: 153 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004435/0.9377, allocations: 356.1 kB / 0.7441 GB, free: 152.9 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007568/0.9384, allocations: 267 kB / 0.7443 GB, free: 152.8 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.004661/0.9431, allocations: 2.906 MB / 0.7472 GB, free: 151.2 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009297/0.944, allocations: 390.7 kB / 0.7476 GB, free: 151 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009057/0.9531, allocations: 6.168 MB / 0.7536 GB, free: 147.9 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.799e-05/0.9532, allocations: 44 kB / 0.7536 GB, free: 147.8 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.641e-05/0.9532, allocations: 15.94 kB / 0.7536 GB, free: 147.8 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.641e-05/0.9532, allocations: 19.08 kB / 0.7537 GB, free: 147.8 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02507/0.9783, allocations: 14.64 MB / 0.7679 GB, free: 135.8 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.879e-05/0.9784, allocations: 8.031 kB / 0.768 GB, free: 135.8 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00278/0.9812, allocations: 0.6833 MB / 0.7686 GB, free: 135.2 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002251/0.9834, allocations: 0.8788 MB / 0.7695 GB, free: 134.5 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005628/0.984, allocations: 84.55 kB / 0.7696 GB, free: 134.4 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009066/0.9931, allocations: 7.742 MB / 0.7771 GB, free: 126.5 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.29e-06/0.9931, allocations: 7.938 kB / 0.7771 GB, free: 126.5 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01171/1.005, allocations: 8.783 MB / 0.7857 GB, free: 117.6 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002436/1.007, allocations: 0.91 MB / 0.7866 GB, free: 116.7 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008323/1.008, allocations: 79.38 kB / 0.7867 GB, free: 116.6 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002076/1.01, allocations: 191.8 kB / 0.7869 GB, free: 116.4 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005409/1.011, allocations: 275.1 kB / 0.7871 GB, free: 116.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000209/1.011, allocations: 120.5 kB / 0.7872 GB, free: 116 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003241/1.014, allocations: 2.355 MB / 0.7895 GB, free: 113.7 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.51e-07/1.014, allocations: 0 / 0.7895 GB, free: 113.7 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.006149/1.02, allocations: 1.453 MB / 0.791 GB, free: 112.2 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.0006378/1.021, allocations: 256.5 kB / 0.7912 GB, free: 112 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.009185/1.03, allocations: 6.491 MB / 0.7975 GB, free: 105.5 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.081e-05/1.03, allocations: 1.875 kB / 0.7975 GB, free: 105.5 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004339/1.035, allocations: 3.081 MB / 0.8005 GB, free: 102.4 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003772/1.039, allocations: 0.8251 MB / 0.8014 GB, free: 101.6 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02285/1.061, allocations: 13.73 MB / 0.8148 GB, free: 87.79 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005248/1.067, allocations: 5 MB / 0.8196 GB, free: 82.75 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004391/1.071, allocations: 1.593 MB / 0.8212 GB, free: 81.18 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001074/1.072, allocations: 331.4 kB / 0.8215 GB, free: 80.86 MB / 494.1 MB Notification: Performance of SimCode: time 9.22e-07/1.072, allocations: 0 / 0.8215 GB, free: 80.86 MB / 494.1 MB Notification: Performance of Templates: time 0.08572/1.158, allocations: 56.88 MB / 0.8771 GB, free: 24.43 MB / 494.1 MB 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 -s gbode -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe 2>&1)