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.001209/0.001209, allocations: 106.7 kB / 16.41 MB, free: 6.512 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.34/1.34, allocations: 222.9 MB / 240.1 MB, free: 4.355 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.001277/0.001277, allocations: 188.5 kB / 290.4 MB, free: 2.094 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03426/0.03426, allocations: 8.796 MB / 349.3 MB, free: 4.562 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001628/0.001628, allocations: 79.88 kB / 464.6 MB, free: 12.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09676/0.0984, allocations: 51.56 MB / 0.5041 GB, free: 9.379 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve2): time 0.2546/0.353, allocations: 25.44 MB / 0.5289 GB, free: 4.926 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01587/0.3689, allocations: 7.943 MB / 0.5367 GB, free: 4.832 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006243/0.3752, allocations: 178 kB / 0.5369 GB, free: 4.828 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01769/0.3929, allocations: 7.645 MB / 0.5443 GB, free: 3.914 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01084/0.4038, allocations: 3.048 MB / 0.5473 GB, free: 3.059 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006435/0.4102, allocations: 2.014 MB / 0.5493 GB, free: 2.867 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01485/0.4251, allocations: 9.227 MB / 0.5583 GB, free: 15.36 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03312/0.4583, allocations: 17.27 MB / 0.5752 GB, free: 5.906 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01068/0.469, allocations: 4.763 MB / 0.5798 GB, free: 1.258 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01023/0.4793, allocations: 5.237 MB / 0.5849 GB, free: 12.17 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004503/0.4838, allocations: 1.352 MB / 0.5862 GB, free: 10.82 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00694/0.4908, allocations: 1.71 MB / 0.5879 GB, free: 9.117 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004909/0.4957, allocations: 2.684 MB / 0.5905 GB, free: 6.469 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01026/0.506, allocations: 5.083 MB / 0.5955 GB, free: 1.406 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02252/0.5286, allocations: 18.15 MB / 0.6132 GB, free: 15.57 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.728e-06/0.5286, allocations: 0 / 0.6132 GB, free: 15.57 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.958e-06/0.5287, allocations: 0 / 0.6132 GB, free: 15.57 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0004938/0.5292, allocations: 0 / 0.6132 GB, free: 15.57 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.03324/0.5624, allocations: 10.76 MB / 0.6237 GB, free: 4.809 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.712e-05/0.5625, allocations: 8.031 kB / 0.6237 GB, free: 4.801 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03284/0.5953, allocations: 5.679 MB / 0.6293 GB, free: 15.18 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01292/0.6083, allocations: 5.787 MB / 0.6349 GB, free: 9.371 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000646/0.609, allocations: 0.5849 MB / 0.6355 GB, free: 8.797 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003156/0.6121, allocations: 0.7677 MB / 0.6363 GB, free: 8.039 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0324/0.6446, allocations: 12.75 MB / 0.6487 GB, free: 11.26 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002972/0.6449, allocations: 7.906 kB / 0.6487 GB, free: 11.25 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002385/0.6473, allocations: 330.4 kB / 0.649 GB, free: 10.94 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000587/0.6479, allocations: 0.5045 MB / 0.6495 GB, free: 10.43 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02831/0.6762, allocations: 12.25 MB / 0.6615 GB, free: 14.17 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0696/0.7458, allocations: 43.26 MB / 0.7037 GB, free: 1.816 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02326/0.7691, allocations: 25.18 MB / 0.7283 GB, free: 5.727 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004932/0.7741, allocations: 2.979 MB / 0.7312 GB, free: 2.742 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003991/0.7746, allocations: 243.9 kB / 0.7315 GB, free: 2.477 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.4245/1.199, allocations: 2.58 MB / 0.734 GB, free: 164.2 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=391): time 1.051e-05/1.199, allocations: 0 / 0.734 GB, free: 164.2 MB / 0.5294 GB Notification: Performance of matching and sorting (n=397): time 0.0409/1.24, allocations: 18.1 MB / 0.7517 GB, free: 160.5 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001291/1.24, allocations: 355.6 kB / 0.752 GB, free: 160.1 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006482/1.247, allocations: 3.52 MB / 0.7554 GB, free: 159.3 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0007856/1.247, allocations: 89.42 kB / 0.7555 GB, free: 159.3 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002402/1.25, allocations: 3.374 MB / 0.7588 GB, free: 156.7 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001681/1.252, allocations: 1.353 MB / 0.7601 GB, free: 155.7 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001714/1.253, allocations: 1.076 MB / 0.7612 GB, free: 155.2 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 5.991e-05/1.253, allocations: 309.1 kB / 0.7615 GB, free: 154.9 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003945/1.257, allocations: 2.551 MB / 0.764 GB, free: 153.9 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004347/1.262, allocations: 4.508 MB / 0.7684 GB, free: 150.4 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008286/1.27, allocations: 7.455 MB / 0.7757 GB, free: 145.4 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.262e-05/1.27, allocations: 15.81 kB / 0.7757 GB, free: 145.4 MB / 0.5294 GB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01337/1.284, allocations: 8.279 MB / 0.7838 GB, free: 142 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.251e-05/1.284, allocations: 61.34 kB / 0.7838 GB, free: 142 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001086/1.284, allocations: 59.94 kB / 0.7839 GB, free: 142 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002483/1.286, allocations: 1 MB / 0.7848 GB, free: 141.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004463/1.291, allocations: 1.256 MB / 0.7861 GB, free: 141.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01082/1.302, allocations: 8.812 MB / 0.7947 GB, free: 136.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005224/1.307, allocations: 356.8 kB / 0.795 GB, free: 136.6 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00105/1.308, allocations: 269.4 kB / 0.7953 GB, free: 136.5 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.005967/1.314, allocations: 2.901 MB / 0.7981 GB, free: 134.1 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001191/1.315, allocations: 388.2 kB / 0.7985 GB, free: 133.7 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009051/1.324, allocations: 6.176 MB / 0.8045 GB, free: 127.7 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.514e-05/1.324, allocations: 40 kB / 0.8046 GB, free: 127.7 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.522e-05/1.324, allocations: 12 kB / 0.8046 GB, free: 127.7 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.229e-05/1.324, allocations: 22.73 kB / 0.8046 GB, free: 127.7 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0204/1.345, allocations: 14.64 MB / 0.8189 GB, free: 113 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.41e-05/1.345, allocations: 4 kB / 0.8189 GB, free: 113 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002411/1.347, allocations: 0.6859 MB / 0.8196 GB, free: 112.3 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002162/1.349, allocations: 0.8811 MB / 0.8204 GB, free: 111.4 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002453/1.35, allocations: 83.98 kB / 0.8205 GB, free: 111.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008956/1.359, allocations: 7.749 MB / 0.8281 GB, free: 103.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.992e-06/1.359, allocations: 8.031 kB / 0.8281 GB, free: 103.4 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01178/1.37, allocations: 8.775 MB / 0.8366 GB, free: 94.52 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002284/1.373, allocations: 0.91 MB / 0.8375 GB, free: 93.59 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007993/1.374, allocations: 76 kB / 0.8376 GB, free: 93.52 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002118/1.376, allocations: 195.8 kB / 0.8378 GB, free: 93.32 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005817/1.376, allocations: 271.1 kB / 0.838 GB, free: 93.06 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002014/1.376, allocations: 120 kB / 0.8382 GB, free: 92.94 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003206/1.38, allocations: 2.359 MB / 0.8405 GB, free: 90.59 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.7e-07/1.38, allocations: 0 / 0.8405 GB, free: 90.59 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005533/1.385, allocations: 1.454 MB / 0.8419 GB, free: 89.14 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.0005842/1.386, allocations: 251 kB / 0.8421 GB, free: 88.89 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.009159/1.395, allocations: 6.48 MB / 0.8485 GB, free: 82.39 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.508e-06/1.395, allocations: 4.062 kB / 0.8485 GB, free: 82.39 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004393/1.399, allocations: 3.086 MB / 0.8515 GB, free: 79.29 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004402/1.404, allocations: 0.813 MB / 0.8523 GB, free: 78.5 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02314/1.427, allocations: 13.55 MB / 0.8655 GB, free: 64.86 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004138/1.431, allocations: 4.859 MB / 0.8702 GB, free: 59.96 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001756/1.433, allocations: 375.3 kB / 0.8706 GB, free: 59.6 MB / 0.5294 GB Notification: Performance of SimCode: time 9.92e-07/1.433, allocations: 0 / 0.8706 GB, free: 59.6 MB / 0.5294 GB Notification: Performance of Templates: time 0.4033/1.836, allocations: 132.3 MB / 0.9998 GB, free: 134.9 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)