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.001761/0.001761, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.409/2.409, allocations: 222.9 MB / 239.5 MB, free: 4.734 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.001965/0.001965, allocations: 188.4 kB / 289.8 MB, free: 2.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0486/0.0486, allocations: 8.783 MB / 348.7 MB, free: 4.891 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002421/0.002421, allocations: 77.44 kB / 411.1 MB, free: 42.36 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1469/0.1494, allocations: 51.56 MB / 462.6 MB, free: 14.88 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve1): time 0.02915/0.1786, allocations: 25 MB / 487.6 MB, free: 5.758 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02273/0.2014, allocations: 7.871 MB / 495.5 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007247/0.2088, allocations: 167.5 kB / 495.7 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02015/0.229, allocations: 7.225 MB / 0.4911 GB, free: 6.461 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01286/0.2419, allocations: 2.794 MB / 0.4938 GB, free: 3.66 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007437/0.2493, allocations: 1.906 MB / 0.4957 GB, free: 1.762 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.02145/0.2708, allocations: 9.364 MB / 0.5048 GB, free: 8.367 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04339/0.3142, allocations: 14.37 MB / 0.5189 GB, free: 9.859 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0106/0.3249, allocations: 4.066 MB / 0.5228 GB, free: 5.781 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01019/0.3352, allocations: 4.986 MB / 0.5277 GB, free: 0.7773 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.2806/0.6158, allocations: 0.8543 MB / 0.5285 GB, free: 23.48 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007046/0.6229, allocations: 1.21 MB / 0.5297 GB, free: 23.48 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006259/0.6292, allocations: 2.164 MB / 0.5318 GB, free: 23.48 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01792/0.6472, allocations: 4.567 MB / 0.5363 GB, free: 22.91 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0313/0.6786, allocations: 15.76 MB / 0.5517 GB, free: 20.15 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.017e-05/0.6786, allocations: 0 / 0.5517 GB, free: 20.15 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.394e-06/0.6787, allocations: 0 / 0.5517 GB, free: 20.15 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000705/0.6794, allocations: 1.906 kB / 0.5517 GB, free: 20.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.05281/0.7322, allocations: 10.81 MB / 0.5622 GB, free: 15.39 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.281e-05/0.7323, allocations: 10.75 kB / 0.5623 GB, free: 15.39 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05702/0.7894, allocations: 5.626 MB / 0.5678 GB, free: 13.27 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02411/0.8135, allocations: 5.665 MB / 0.5733 GB, free: 10.89 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001434/0.815, allocations: 0.5863 MB / 0.5739 GB, free: 10.62 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00737/0.8224, allocations: 0.7651 MB / 0.5746 GB, free: 10.37 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05741/0.8799, allocations: 12.76 MB / 0.5871 GB, free: 1.434 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006469/0.8806, allocations: 17.09 kB / 0.5871 GB, free: 1.422 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005302/0.8859, allocations: 332.7 kB / 0.5874 GB, free: 1.109 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008382/0.8868, allocations: 0.489 MB / 0.5879 GB, free: 0.6172 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05138/0.9382, allocations: 12.24 MB / 0.5998 GB, free: 4.363 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1456/1.084, allocations: 43.72 MB / 0.6425 GB, free: 8.059 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0415/1.125, allocations: 25.18 MB / 0.6671 GB, free: 12 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00959/1.135, allocations: 2.971 MB / 0.67 GB, free: 9.031 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001001/1.136, allocations: 243.9 kB / 0.6702 GB, free: 8.766 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.009148/1.145, allocations: 2.585 MB / 0.6728 GB, free: 6.117 MB / 462.1 MB Notification: Performance of pre-optimization done (n=391): time 2.406e-05/1.145, allocations: 0 / 0.6728 GB, free: 6.117 MB / 462.1 MB Notification: Performance of matching and sorting (n=397): time 0.07956/1.225, allocations: 18.1 MB / 0.6905 GB, free: 3.91 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002834/1.225, allocations: 354.9 kB / 0.6908 GB, free: 3.492 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01076/1.236, allocations: 3.518 MB / 0.6942 GB, free: 15.97 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001103/1.237, allocations: 93.7 kB / 0.6943 GB, free: 15.87 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004424/1.242, allocations: 3.365 MB / 0.6976 GB, free: 12.48 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0029/1.245, allocations: 1.351 MB / 0.6989 GB, free: 11.14 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003378/1.248, allocations: 1.081 MB / 0.7 GB, free: 10.05 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001564/1.248, allocations: 313 kB / 0.7003 GB, free: 9.746 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007147/1.255, allocations: 2.549 MB / 0.7028 GB, free: 7.191 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01064/1.266, allocations: 4.507 MB / 0.7072 GB, free: 1.832 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.4016/1.668, allocations: 7.443 MB / 0.7144 GB, free: 165.8 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001214/1.668, allocations: 17.41 kB / 0.7144 GB, free: 165.8 MB / 494.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.03409/1.702, allocations: 8.276 MB / 0.7225 GB, free: 165.2 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001941/1.702, allocations: 63.25 kB / 0.7226 GB, free: 165.2 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002204/1.703, allocations: 59.34 kB / 0.7226 GB, free: 165.2 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005251/1.708, allocations: 1 MB / 0.7236 GB, free: 165.2 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008577/1.717, allocations: 1.261 MB / 0.7249 GB, free: 165.1 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02062/1.737, allocations: 8.228 MB / 0.7329 GB, free: 160.9 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009321/1.747, allocations: 366.1 kB / 0.7332 GB, free: 160.8 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002195/1.749, allocations: 264.2 kB / 0.7335 GB, free: 160.7 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.0146/1.764, allocations: 2.906 MB / 0.7363 GB, free: 159.2 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003689/1.767, allocations: 388.5 kB / 0.7367 GB, free: 159.2 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0232/1.79, allocations: 6.181 MB / 0.7427 GB, free: 156.7 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.785e-05/1.791, allocations: 37.94 kB / 0.7428 GB, free: 156.7 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.057e-05/1.791, allocations: 11.19 kB / 0.7428 GB, free: 156.7 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001363/1.791, allocations: 18.98 kB / 0.7428 GB, free: 156.7 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04956/1.84, allocations: 14.92 MB / 0.7574 GB, free: 145.8 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.903e-05/1.841, allocations: 4 kB / 0.7574 GB, free: 145.8 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005361/1.846, allocations: 0.6874 MB / 0.758 GB, free: 145.2 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004668/1.851, allocations: 0.872 MB / 0.7589 GB, free: 144.5 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001161/1.852, allocations: 87.47 kB / 0.759 GB, free: 144.5 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01741/1.869, allocations: 7.193 MB / 0.766 GB, free: 137.7 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.148e-05/1.869, allocations: 8.031 kB / 0.766 GB, free: 137.7 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02461/1.894, allocations: 8.773 MB / 0.7746 GB, free: 128.8 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004398/1.898, allocations: 0.9101 MB / 0.7755 GB, free: 127.8 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002485/1.901, allocations: 76 kB / 0.7755 GB, free: 127.8 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005358/1.906, allocations: 195.8 kB / 0.7757 GB, free: 127.6 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001513/1.908, allocations: 277.3 kB / 0.776 GB, free: 127.3 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005854/1.909, allocations: 119.9 kB / 0.7761 GB, free: 127.2 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.007084/1.916, allocations: 2.359 MB / 0.7784 GB, free: 124.8 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.332e-06/1.916, allocations: 0 / 0.7784 GB, free: 124.8 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0124/1.928, allocations: 1.453 MB / 0.7798 GB, free: 123.4 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.001688/1.93, allocations: 243.5 kB / 0.7801 GB, free: 123.1 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01878/1.949, allocations: 6.473 MB / 0.7864 GB, free: 116.7 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.072e-05/1.949, allocations: 4 kB / 0.7864 GB, free: 116.6 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01024/1.959, allocations: 3.082 MB / 0.7894 GB, free: 113.6 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009876/1.969, allocations: 0.7716 MB / 0.7902 GB, free: 112.8 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04658/2.016, allocations: 16.99 MB / 0.8067 GB, free: 95.73 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01228/2.028, allocations: 4.859 MB / 0.8115 GB, free: 90.83 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003022/2.031, allocations: 375.3 kB / 0.8118 GB, free: 90.46 MB / 494.1 MB Notification: Performance of SimCode: time 1.914e-06/2.031, allocations: 0 / 0.8118 GB, free: 90.46 MB / 494.1 MB Notification: Performance of Templates: time 0.5872/2.618, allocations: 131.6 MB / 0.9403 GB, free: 122.2 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)