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.001043/0.001043, 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.216/1.216, 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.001312/0.001312, allocations: 188.5 kB / 289.1 MB, free: 2.488 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.032/0.032, allocations: 8.789 MB / 348.1 MB, free: 4.879 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00127/0.00127, allocations: 73.05 kB / 410.4 MB, free: 42.41 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08626/0.08754, allocations: 51.56 MB / 462 MB, free: 14.88 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve2): time 0.02325/0.1108, allocations: 25.02 MB / 487 MB, free: 5.742 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01604/0.1269, allocations: 7.875 MB / 494.8 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005484/0.1325, allocations: 167.5 kB / 495 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01537/0.1479, allocations: 7.223 MB / 0.4905 GB, free: 6.445 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008774/0.1567, allocations: 2.798 MB / 0.4932 GB, free: 3.641 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005356/0.162, allocations: 1.898 MB / 0.495 GB, free: 1.75 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01196/0.174, allocations: 9.372 MB / 0.5042 GB, free: 8.348 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02152/0.1956, allocations: 14.37 MB / 0.5182 GB, free: 9.84 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006731/0.2024, allocations: 4.081 MB / 0.5222 GB, free: 5.746 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007716/0.2101, allocations: 4.975 MB / 0.5271 GB, free: 0.7539 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.183/0.3932, allocations: 0.8558 MB / 0.5279 GB, free: 23.46 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00437/0.3976, allocations: 1.216 MB / 0.5291 GB, free: 23.46 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002032/0.3996, allocations: 2.164 MB / 0.5312 GB, free: 23.46 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006508/0.4062, allocations: 4.565 MB / 0.5357 GB, free: 22.89 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01733/0.4235, allocations: 17.73 MB / 0.553 GB, free: 19.15 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.4235, allocations: 0.5 kB / 0.553 GB, free: 19.15 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.4235, allocations: 0.9688 kB / 0.553 GB, free: 19.15 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003858/0.4239, allocations: 0 / 0.553 GB, free: 19.15 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.03129/0.4552, allocations: 10.81 MB / 0.5635 GB, free: 14.4 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.162e-05/0.4553, allocations: 9.656 kB / 0.5635 GB, free: 14.4 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02953/0.4848, allocations: 5.631 MB / 0.569 GB, free: 12.27 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01143/0.4963, allocations: 5.662 MB / 0.5746 GB, free: 9.477 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00035/0.4967, allocations: 0.5843 MB / 0.5751 GB, free: 9.215 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003399/0.5001, allocations: 0.7653 MB / 0.5759 GB, free: 8.961 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0276/0.5277, allocations: 12.76 MB / 0.5884 GB, free: 15.46 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002182/0.5279, allocations: 15.84 kB / 0.5884 GB, free: 15.45 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00189/0.5298, allocations: 322.8 kB / 0.5887 GB, free: 15.14 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005031/0.5304, allocations: 0.489 MB / 0.5892 GB, free: 14.65 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0252/0.5556, allocations: 12.25 MB / 0.6011 GB, free: 2.391 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07813/0.6337, allocations: 43.71 MB / 0.6438 GB, free: 6.086 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0214/0.6552, allocations: 25.19 MB / 0.6684 GB, free: 10.03 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004841/0.6601, allocations: 2.967 MB / 0.6713 GB, free: 7.055 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004421/0.6605, allocations: 242.2 kB / 0.6715 GB, free: 6.793 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004149/0.6647, allocations: 2.582 MB / 0.674 GB, free: 4.145 MB / 462.1 MB Notification: Performance of pre-optimization done (n=391): time 6.032e-06/0.6647, allocations: 0 / 0.674 GB, free: 4.145 MB / 462.1 MB Notification: Performance of matching and sorting (n=397): time 0.0399/0.7046, allocations: 18.11 MB / 0.6917 GB, free: 1.934 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001593/0.7048, allocations: 351.5 kB / 0.6921 GB, free: 1.516 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004971/0.7098, allocations: 3.522 MB / 0.6955 GB, free: 13.99 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005459/0.7104, allocations: 93.7 kB / 0.6956 GB, free: 13.89 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00177/0.7121, allocations: 3.369 MB / 0.6989 GB, free: 10.5 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001225/0.7134, allocations: 1.354 MB / 0.7002 GB, free: 9.16 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001504/0.7149, allocations: 1.084 MB / 0.7013 GB, free: 8.066 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001109/0.715, allocations: 305.1 kB / 0.7016 GB, free: 7.766 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003576/0.7186, allocations: 2.549 MB / 0.704 GB, free: 5.211 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1844/0.903, allocations: 4.503 MB / 0.7084 GB, free: 166.2 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008642/0.9116, allocations: 7.458 MB / 0.7157 GB, free: 163.8 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.147e-05/0.9117, allocations: 16.72 kB / 0.7157 GB, free: 163.8 MB / 494.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01303/0.9247, allocations: 8.268 MB / 0.7238 GB, free: 163.1 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.772e-05/0.9248, allocations: 56.67 kB / 0.7239 GB, free: 163.1 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001146/0.925, allocations: 64.44 kB / 0.7239 GB, free: 163.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002454/0.9274, allocations: 0.9973 MB / 0.7249 GB, free: 163.1 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003985/0.9314, allocations: 1.264 MB / 0.7261 GB, free: 163 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009861/0.9413, allocations: 8.227 MB / 0.7342 GB, free: 159.1 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004575/0.9459, allocations: 364.6 kB / 0.7345 GB, free: 159 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008955/0.9468, allocations: 265.9 kB / 0.7348 GB, free: 159 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.004312/0.9511, allocations: 2.901 MB / 0.7376 GB, free: 157.5 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007528/0.9519, allocations: 388 kB / 0.738 GB, free: 157.5 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008394/0.9603, allocations: 6.179 MB / 0.744 GB, free: 154.9 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.634e-05/0.9603, allocations: 40.72 kB / 0.7441 GB, free: 154.9 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.673e-05/0.9604, allocations: 10.66 kB / 0.7441 GB, free: 154.9 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.152e-05/0.9604, allocations: 24.84 kB / 0.7441 GB, free: 154.9 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01873/0.9791, allocations: 14.92 MB / 0.7587 GB, free: 143.7 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.519e-05/0.9792, allocations: 12.58 kB / 0.7587 GB, free: 143.7 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002311/0.9815, allocations: 0.6781 MB / 0.7593 GB, free: 143.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002088/0.9836, allocations: 0.8756 MB / 0.7602 GB, free: 142.5 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002409/0.9839, allocations: 87.28 kB / 0.7603 GB, free: 142.4 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007892/0.9918, allocations: 7.19 MB / 0.7673 GB, free: 135.6 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.049e-06/0.9918, allocations: 17.36 kB / 0.7673 GB, free: 135.6 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01038/1.002, allocations: 8.768 MB / 0.7759 GB, free: 126.7 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002118/1.004, allocations: 0.914 MB / 0.7768 GB, free: 125.8 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005476/1.005, allocations: 72 kB / 0.7768 GB, free: 125.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001765/1.007, allocations: 196.5 kB / 0.777 GB, free: 125.5 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005139/1.007, allocations: 275.1 kB / 0.7773 GB, free: 125.3 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002026/1.007, allocations: 115.9 kB / 0.7774 GB, free: 125.1 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002778/1.01, allocations: 2.363 MB / 0.7797 GB, free: 122.8 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.51e-07/1.01, allocations: 0 / 0.7797 GB, free: 122.8 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004742/1.015, 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.0005537/1.015, allocations: 261 kB / 0.7814 GB, free: 121.1 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.008328/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 7.504e-06/1.024, allocations: 2.297 kB / 0.7877 GB, free: 114.6 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003834/1.028, allocations: 3.083 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.004059/1.032, allocations: 0.7772 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.02336/1.055, allocations: 17.17 MB / 0.8082 GB, free: 93.5 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004195/1.059, allocations: 5.011 MB / 0.8131 GB, free: 88.45 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.00455/1.064, allocations: 1.586 MB / 0.8147 GB, free: 86.86 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001028/1.065, allocations: 327.4 kB / 0.815 GB, free: 86.54 MB / 494.1 MB Notification: Performance of SimCode: time 7.82e-07/1.065, allocations: 0 / 0.815 GB, free: 86.54 MB / 494.1 MB Notification: Performance of Templates: time 0.08311/1.148, allocations: 59.72 MB / 0.8733 GB, free: 27.15 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 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe 2>&1)