Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.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_VCurve1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1") translateModel(HanserModelica.SynchronousMachines.SMEE_VCurve1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009588/0.0009588, 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.214/1.214, allocations: 222.9 MB / 238.9 MB, free: 4.742 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.001105/0.001105, allocations: 188.5 kB / 289.1 MB, free: 2.496 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03166/0.03166, allocations: 8.785 MB / 348.1 MB, free: 4.875 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001286/0.001286, allocations: 76.31 kB / 410.4 MB, free: 42.46 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07638/0.07768, allocations: 51.56 MB / 462 MB, free: 14.88 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve1): time 0.02194/0.09965, allocations: 25 MB / 487 MB, free: 5.758 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01381/0.1135, allocations: 7.878 MB / 494.8 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004697/0.1182, allocations: 163.5 kB / 495 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01446/0.1327, allocations: 7.225 MB / 0.4904 GB, free: 6.457 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009582/0.1423, allocations: 2.793 MB / 0.4932 GB, free: 3.656 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005415/0.1477, allocations: 1.906 MB / 0.495 GB, free: 1.758 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01265/0.1604, allocations: 9.375 MB / 0.5042 GB, free: 8.355 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0191/0.1795, allocations: 14.36 MB / 0.5182 GB, free: 9.859 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005866/0.1854, allocations: 4.077 MB / 0.5222 GB, free: 5.77 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006863/0.1923, allocations: 4.979 MB / 0.5271 GB, free: 0.7734 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.1885/0.3808, allocations: 0.8528 MB / 0.5279 GB, free: 23.61 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004499/0.3853, allocations: 1.219 MB / 0.5291 GB, free: 23.61 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002871/0.3882, allocations: 2.164 MB / 0.5312 GB, free: 23.61 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008064/0.3963, allocations: 4.571 MB / 0.5357 GB, free: 23.04 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02002/0.4164, allocations: 17.72 MB / 0.553 GB, free: 19.28 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.993e-06/0.4164, allocations: 1.188 kB / 0.553 GB, free: 19.28 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.4164, allocations: 0.9688 kB / 0.553 GB, free: 19.28 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004808/0.4169, allocations: 0 / 0.553 GB, free: 19.28 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.03464/0.4516, allocations: 10.8 MB / 0.5635 GB, free: 14.53 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.42e-05/0.4516, allocations: 12.75 kB / 0.5635 GB, free: 14.53 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03044/0.4821, allocations: 5.639 MB / 0.569 GB, free: 12.4 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01158/0.4937, allocations: 5.655 MB / 0.5746 GB, free: 9.582 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003859/0.4941, allocations: 0.582 MB / 0.5751 GB, free: 9.32 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003401/0.4975, allocations: 0.7718 MB / 0.5759 GB, free: 9.07 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02816/0.5257, allocations: 12.76 MB / 0.5883 GB, free: 15.51 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004159/0.5261, allocations: 11.56 kB / 0.5883 GB, free: 15.5 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003883/0.53, allocations: 326.5 kB / 0.5887 GB, free: 15.19 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005454/0.5306, allocations: 0.4895 MB / 0.5891 GB, free: 14.7 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02588/0.5565, allocations: 12.24 MB / 0.6011 GB, free: 2.445 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0744/0.6309, allocations: 43.71 MB / 0.6438 GB, free: 6.137 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02271/0.6537, allocations: 25.18 MB / 0.6684 GB, free: 10.09 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005064/0.6588, allocations: 2.968 MB / 0.6713 GB, free: 7.113 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004677/0.6593, allocations: 243.6 kB / 0.6715 GB, free: 6.852 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004275/0.6636, allocations: 2.582 MB / 0.674 GB, free: 4.203 MB / 462.1 MB Notification: Performance of pre-optimization done (n=391): time 7.194e-06/0.6636, allocations: 0 / 0.674 GB, free: 4.203 MB / 462.1 MB Notification: Performance of matching and sorting (n=397): time 0.03968/0.7033, allocations: 18.11 MB / 0.6917 GB, free: 1.988 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001543/0.7035, allocations: 358.9 kB / 0.692 GB, free: 1.566 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006358/0.7098, allocations: 3.515 MB / 0.6955 GB, free: 14.05 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005271/0.7104, allocations: 93.7 kB / 0.6956 GB, free: 13.95 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00223/0.7126, allocations: 3.376 MB / 0.6989 GB, free: 10.55 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001431/0.7141, allocations: 1.347 MB / 0.7002 GB, free: 9.219 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002393/0.7165, allocations: 1.084 MB / 0.7012 GB, free: 8.125 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001003/0.7166, allocations: 305.1 kB / 0.7015 GB, free: 7.824 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004019/0.7206, allocations: 2.549 MB / 0.704 GB, free: 5.27 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1931/0.9137, allocations: 4.504 MB / 0.7084 GB, free: 166.1 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009838/0.9236, allocations: 7.453 MB / 0.7157 GB, free: 163.7 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.706e-05/0.9237, allocations: 17 kB / 0.7157 GB, free: 163.7 MB / 494.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01398/0.9377, allocations: 8.278 MB / 0.7238 GB, free: 163 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.344e-05/0.9378, allocations: 60.16 kB / 0.7239 GB, free: 163 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.927e-05/0.9379, allocations: 58.91 kB / 0.7239 GB, free: 163 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00244/0.9404, allocations: 0.9997 MB / 0.7249 GB, free: 163 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003862/0.9442, allocations: 1.259 MB / 0.7261 GB, free: 162.9 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009517/0.9538, allocations: 8.232 MB / 0.7342 GB, free: 159 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003865/0.9576, allocations: 351.9 kB / 0.7345 GB, free: 158.9 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005146/0.9582, allocations: 272.7 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.003833/0.962, allocations: 2.904 MB / 0.7376 GB, free: 157.4 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006918/0.9627, allocations: 387.6 kB / 0.738 GB, free: 157.4 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008317/0.971, allocations: 6.181 MB / 0.744 GB, free: 154.8 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.301e-05/0.9711, allocations: 39.81 kB / 0.744 GB, free: 154.8 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.254e-05/0.9711, allocations: 10.5 kB / 0.744 GB, free: 154.8 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-05/0.9711, allocations: 22.69 kB / 0.7441 GB, free: 154.8 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.019/0.9901, allocations: 14.92 MB / 0.7586 GB, free: 143.7 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.704e-05/0.9902, allocations: 4.062 kB / 0.7586 GB, free: 143.7 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002267/0.9925, allocations: 0.6873 MB / 0.7593 GB, free: 143.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002066/0.9945, allocations: 0.8762 MB / 0.7602 GB, free: 142.4 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002318/0.9948, allocations: 91.22 kB / 0.7602 GB, free: 142.3 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007743/1.003, allocations: 7.186 MB / 0.7673 GB, free: 135.6 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.279e-06/1.003, allocations: 12.03 kB / 0.7673 GB, free: 135.6 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01036/1.013, allocations: 8.773 MB / 0.7758 GB, free: 126.7 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001869/1.015, allocations: 0.9062 MB / 0.7767 GB, free: 125.8 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005722/1.015, allocations: 76.86 kB / 0.7768 GB, free: 125.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001781/1.017, allocations: 199.8 kB / 0.777 GB, free: 125.5 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005033/1.018, allocations: 271.1 kB / 0.7773 GB, free: 125.3 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002037/1.018, allocations: 115.9 kB / 0.7774 GB, free: 125.1 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.00282/1.021, allocations: 2.363 MB / 0.7797 GB, free: 122.8 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.1e-07/1.021, allocations: 0 / 0.7797 GB, free: 122.8 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004617/1.025, allocations: 1.453 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.0004756/1.026, allocations: 262.8 kB / 0.7813 GB, free: 121.1 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.008054/1.034, allocations: 6.465 MB / 0.7877 GB, free: 114.6 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.239e-06/1.034, allocations: 0 / 0.7877 GB, free: 114.6 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003762/1.038, allocations: 3.076 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.004176/1.042, allocations: 0.7794 MB / 0.7914 GB, free: 110.8 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02046/1.062, allocations: 17.18 MB / 0.8082 GB, free: 93.5 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003917/1.066, allocations: 5.015 MB / 0.8131 GB, free: 88.44 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004208/1.071, allocations: 1.59 MB / 0.8146 GB, free: 86.85 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009275/1.072, allocations: 331.4 kB / 0.815 GB, free: 86.52 MB / 494.1 MB Notification: Performance of SimCode: time 6.51e-07/1.072, allocations: 0 / 0.815 GB, free: 86.52 MB / 494.1 MB Notification: Performance of Templates: time 0.07784/1.149, allocations: 59.69 MB / 0.8732 GB, free: 27.17 MB / 494.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe 2>&1)