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.001072/0.001072, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.235/1.235, allocations: 222.9 MB / 238.8 MB, free: 4.738 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.001245/0.001245, allocations: 192.5 kB / 289.1 MB, free: 2.477 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03185/0.03185, allocations: 8.783 MB / 348.1 MB, free: 4.863 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001266/0.001267, allocations: 72.8 kB / 410.4 MB, free: 42.38 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0903/0.09158, allocations: 51.57 MB / 462 MB, free: 14.84 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve3): time 0.02387/0.1155, allocations: 25.03 MB / 487 MB, free: 5.684 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0153/0.1309, allocations: 7.855 MB / 494.8 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004742/0.1356, allocations: 163.6 kB / 495 MB, free: 13.65 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01509/0.1507, allocations: 7.229 MB / 0.4905 GB, free: 6.406 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0092/0.16, allocations: 2.81 MB / 0.4932 GB, free: 3.59 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005208/0.1652, allocations: 1.89 MB / 0.495 GB, free: 1.707 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0107/0.1759, allocations: 9.368 MB / 0.5042 GB, free: 8.309 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0193/0.1952, allocations: 14.38 MB / 0.5182 GB, free: 9.793 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005769/0.2011, allocations: 4.073 MB / 0.5222 GB, free: 5.707 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007311/0.2084, allocations: 4.982 MB / 0.5271 GB, free: 0.707 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.172/0.3804, allocations: 0.8537 MB / 0.5279 GB, free: 23.58 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004263/0.3847, allocations: 1.21 MB / 0.5291 GB, free: 23.58 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002513/0.3873, allocations: 2.165 MB / 0.5312 GB, free: 23.58 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00721/0.3945, allocations: 4.57 MB / 0.5357 GB, free: 23.01 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01734/0.4118, allocations: 17.72 MB / 0.553 GB, free: 19.25 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.733e-06/0.4119, allocations: 0 / 0.553 GB, free: 19.25 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.4119, allocations: 1.062 kB / 0.553 GB, free: 19.25 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0007311/0.4126, allocations: 0 / 0.553 GB, free: 19.25 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.03573/0.4484, allocations: 10.81 MB / 0.5635 GB, free: 14.5 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.416e-05/0.4484, allocations: 9.688 kB / 0.5635 GB, free: 14.5 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0301/0.4785, allocations: 5.634 MB / 0.5691 GB, free: 12.38 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01285/0.4914, allocations: 5.654 MB / 0.5746 GB, free: 9.605 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005318/0.492, allocations: 0.5914 MB / 0.5752 GB, free: 9.336 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004016/0.496, allocations: 0.7627 MB / 0.5759 GB, free: 9.09 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03384/0.5299, allocations: 12.76 MB / 0.5884 GB, free: 15.45 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002423/0.5302, allocations: 11.91 kB / 0.5884 GB, free: 15.43 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001023/0.5312, allocations: 320.9 kB / 0.5887 GB, free: 15.13 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004835/0.5317, allocations: 0.4928 MB / 0.5892 GB, free: 14.64 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02533/0.5571, allocations: 12.24 MB / 0.6011 GB, free: 2.379 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08159/0.6387, allocations: 43.71 MB / 0.6438 GB, free: 6.078 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02228/0.661, allocations: 25.17 MB / 0.6684 GB, free: 10.04 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004732/0.6658, allocations: 2.98 MB / 0.6713 GB, free: 7.047 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004169/0.6662, allocations: 245.8 kB / 0.6715 GB, free: 6.785 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003977/0.6702, allocations: 2.582 MB / 0.6741 GB, free: 4.137 MB / 462.1 MB Notification: Performance of pre-optimization done (n=391): time 5.24e-06/0.6702, allocations: 0 / 0.6741 GB, free: 4.137 MB / 462.1 MB Notification: Performance of matching and sorting (n=397): time 0.03551/0.7058, allocations: 18.11 MB / 0.6917 GB, free: 1.926 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001689/0.7059, allocations: 354.9 kB / 0.6921 GB, free: 1.508 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004668/0.7106, allocations: 3.515 MB / 0.6955 GB, free: 13.99 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003483/0.711, allocations: 93.64 kB / 0.6956 GB, free: 13.89 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001938/0.7129, allocations: 3.377 MB / 0.6989 GB, free: 10.49 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001082/0.714, allocations: 1.351 MB / 0.7002 GB, free: 9.152 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001518/0.7155, allocations: 1.081 MB / 0.7013 GB, free: 8.062 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.306e-05/0.7156, allocations: 305.1 kB / 0.7016 GB, free: 7.762 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003462/0.7191, allocations: 2.556 MB / 0.7041 GB, free: 5.199 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1786/0.8977, allocations: 4.504 MB / 0.7085 GB, free: 166.1 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008627/0.9064, allocations: 7.455 MB / 0.7157 GB, free: 163.7 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.933e-05/0.9065, allocations: 16.81 kB / 0.7157 GB, free: 163.7 MB / 494.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01279/0.9193, allocations: 8.276 MB / 0.7238 GB, free: 163.1 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.149e-05/0.9194, allocations: 56.23 kB / 0.7239 GB, free: 163 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.185e-05/0.9194, allocations: 60.34 kB / 0.7239 GB, free: 163 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002412/0.9219, allocations: 0.9978 MB / 0.7249 GB, free: 163 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003836/0.9257, allocations: 1.257 MB / 0.7261 GB, free: 162.9 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01072/0.9364, allocations: 8.242 MB / 0.7342 GB, free: 159 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004331/0.9408, allocations: 352 kB / 0.7345 GB, free: 158.9 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006073/0.9414, allocations: 268.2 kB / 0.7348 GB, free: 158.9 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.004228/0.9457, allocations: 2.904 MB / 0.7376 GB, free: 157.4 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007774/0.9465, allocations: 384.6 kB / 0.738 GB, free: 157.4 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008749/0.9552, allocations: 6.177 MB / 0.744 GB, free: 154.8 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.441e-05/0.9553, allocations: 44.31 kB / 0.7441 GB, free: 154.8 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.57e-05/0.9553, allocations: 11 kB / 0.7441 GB, free: 154.8 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.079e-05/0.9553, allocations: 19.22 kB / 0.7441 GB, free: 154.8 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02259/0.9779, allocations: 14.92 MB / 0.7587 GB, free: 143.6 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.561e-05/0.978, allocations: 12.47 kB / 0.7587 GB, free: 143.6 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002353/0.9804, allocations: 0.6825 MB / 0.7593 GB, free: 143 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002176/0.9825, allocations: 0.8754 MB / 0.7602 GB, free: 142.4 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002465/0.9828, allocations: 87.89 kB / 0.7603 GB, free: 142.3 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007895/0.9907, allocations: 7.189 MB / 0.7673 GB, free: 135.6 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.479e-06/0.9907, allocations: 4 kB / 0.7673 GB, free: 135.6 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01118/1.002, allocations: 8.779 MB / 0.7759 GB, free: 126.7 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002007/1.004, allocations: 0.9062 MB / 0.7768 GB, free: 125.8 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006401/1.005, allocations: 72.69 kB / 0.7768 GB, free: 125.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001828/1.006, allocations: 199.8 kB / 0.777 GB, free: 125.5 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005346/1.007, allocations: 271.1 kB / 0.7773 GB, free: 125.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002009/1.007, allocations: 119.9 kB / 0.7774 GB, free: 125.1 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.00287/1.01, allocations: 2.367 MB / 0.7797 GB, free: 122.8 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.6e-07/1.01, allocations: 0 / 0.7797 GB, free: 122.8 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004581/1.015, allocations: 1.46 MB / 0.7811 GB, free: 121.3 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.000551/1.015, allocations: 250.9 kB / 0.7814 GB, free: 121.1 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.008469/1.024, allocations: 6.462 MB / 0.7877 GB, free: 114.6 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.095e-06/1.024, allocations: 0.9375 kB / 0.7877 GB, free: 114.6 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004136/1.028, allocations: 3.08 MB / 0.7907 GB, free: 111.5 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004099/1.032, allocations: 0.7847 MB / 0.7915 GB, free: 110.7 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02018/1.052, allocations: 17.17 MB / 0.8082 GB, free: 93.48 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003659/1.056, allocations: 5.004 MB / 0.8131 GB, free: 88.44 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004191/1.06, allocations: 1.59 MB / 0.8147 GB, free: 86.84 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009303/1.061, allocations: 331.3 kB / 0.815 GB, free: 86.52 MB / 494.1 MB Notification: Performance of SimCode: time 7.02e-07/1.061, allocations: 4 kB / 0.815 GB, free: 86.52 MB / 494.1 MB Notification: Performance of Templates: time 0.0777/1.139, allocations: 59.71 MB / 0.8733 GB, free: 27.14 MB / 494.1 MB 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)