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.006804/0.006804, allocations: 101.1 kB / 15.88 MB, free: 5.867 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.715/1.715, allocations: 222.9 MB / 239.5 MB, free: 4.832 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.001485/0.001485, allocations: 188.5 kB / 289.8 MB, free: 2.57 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03737/0.03737, allocations: 8.792 MB / 348.7 MB, free: 4.969 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003017/0.003017, allocations: 76.97 kB / 411.1 MB, free: 42.4 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1558/0.1589, allocations: 51.57 MB / 462.6 MB, free: 15.05 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve3): time 0.05094/0.2099, allocations: 25.03 MB / 487.7 MB, free: 5.898 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02942/0.2394, allocations: 7.867 MB / 495.5 MB, free: 14.01 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008399/0.2478, allocations: 167.5 kB / 495.7 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.03165/0.2796, allocations: 7.226 MB / 0.4911 GB, free: 6.605 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01845/0.2981, allocations: 2.802 MB / 0.4939 GB, free: 3.797 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01186/0.31, allocations: 1.885 MB / 0.4957 GB, free: 1.914 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.02385/0.3339, allocations: 9.371 MB / 0.5048 GB, free: 8.516 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04616/0.3801, allocations: 14.38 MB / 0.5189 GB, free: 10 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01064/0.3908, allocations: 4.077 MB / 0.5229 GB, free: 5.914 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01393/0.4048, allocations: 4.979 MB / 0.5277 GB, free: 0.918 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005396/0.4103, allocations: 0.8516 MB / 0.5286 GB, free: 68 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.3573/0.7677, allocations: 1.215 MB / 0.5298 GB, free: 23.68 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0062/0.7739, allocations: 2.168 MB / 0.5319 GB, free: 23.68 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01614/0.7901, allocations: 4.567 MB / 0.5363 GB, free: 23.11 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.028/0.8182, allocations: 15.76 MB / 0.5517 GB, free: 20.34 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.201e-05/0.8183, allocations: 5.047 kB / 0.5517 GB, free: 20.33 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.555e-06/0.8183, allocations: 3.75 kB / 0.5517 GB, free: 20.33 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0007218/0.819, allocations: 1.094 kB / 0.5517 GB, free: 20.33 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.0664/0.8855, allocations: 10.81 MB / 0.5623 GB, free: 15.59 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.876e-05/0.8856, allocations: 9.5 kB / 0.5623 GB, free: 15.59 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05948/0.945, allocations: 5.628 MB / 0.5678 GB, free: 13.46 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0255/0.9706, allocations: 5.66 MB / 0.5733 GB, free: 11.05 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001474/0.9722, allocations: 0.5838 MB / 0.5739 GB, free: 10.79 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007525/0.9797, allocations: 0.7686 MB / 0.5746 GB, free: 10.54 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05737/1.037, allocations: 12.76 MB / 0.5871 GB, free: 1.656 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006705/1.038, allocations: 15.56 kB / 0.5871 GB, free: 1.645 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005413/1.043, allocations: 322.3 kB / 0.5874 GB, free: 1.34 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008604/1.044, allocations: 0.4936 MB / 0.5879 GB, free: 0.8438 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04962/1.094, allocations: 12.24 MB / 0.5999 GB, free: 4.59 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1388/1.233, allocations: 43.71 MB / 0.6425 GB, free: 8.301 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03979/1.273, allocations: 25.17 MB / 0.6671 GB, free: 12.25 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009653/1.282, allocations: 2.987 MB / 0.67 GB, free: 9.262 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009146/1.283, allocations: 243.5 kB / 0.6703 GB, free: 9 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.009146/1.292, allocations: 2.586 MB / 0.6728 GB, free: 6.348 MB / 462.1 MB Notification: Performance of pre-optimization done (n=391): time 2.001e-05/1.293, allocations: 0 / 0.6728 GB, free: 6.348 MB / 462.1 MB Notification: Performance of matching and sorting (n=397): time 0.08022/1.373, allocations: 18.11 MB / 0.6905 GB, free: 4.137 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003271/1.373, allocations: 351.5 kB / 0.6908 GB, free: 3.719 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01257/1.386, allocations: 3.518 MB / 0.6943 GB, free: 200 kB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001232/1.387, allocations: 89.7 kB / 0.6943 GB, free: 104 kB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004663/1.392, allocations: 3.372 MB / 0.6976 GB, free: 12.71 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.003047/1.395, allocations: 1.35 MB / 0.699 GB, free: 11.37 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00637/1.401, allocations: 1.081 MB / 0.7 GB, free: 10.28 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001495/1.401, allocations: 313.1 kB / 0.7003 GB, free: 9.973 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008274/1.41, allocations: 2.549 MB / 0.7028 GB, free: 7.418 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01112/1.421, allocations: 4.509 MB / 0.7072 GB, free: 2.059 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.3767/1.798, allocations: 7.443 MB / 0.7145 GB, free: 166.3 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001159/1.798, allocations: 20.69 kB / 0.7145 GB, free: 166.3 MB / 494.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.03002/1.828, allocations: 8.28 MB / 0.7226 GB, free: 165.7 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001312/1.828, allocations: 60.95 kB / 0.7226 GB, free: 165.7 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001619/1.828, allocations: 59.47 kB / 0.7227 GB, free: 165.7 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00454/1.833, allocations: 0.999 MB / 0.7237 GB, free: 165.7 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008179/1.841, allocations: 1.258 MB / 0.7249 GB, free: 165.6 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01905/1.86, allocations: 8.23 MB / 0.7329 GB, free: 161.2 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008481/1.869, allocations: 356.5 kB / 0.7333 GB, free: 161.1 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002054/1.871, allocations: 263.5 kB / 0.7335 GB, free: 161 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.01014/1.881, allocations: 2.912 MB / 0.7364 GB, free: 159.5 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001622/1.883, allocations: 386.9 kB / 0.7367 GB, free: 159.5 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01701/1.9, allocations: 6.178 MB / 0.7428 GB, free: 157 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.376e-05/1.9, allocations: 42.75 kB / 0.7428 GB, free: 157 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.834e-05/1.9, allocations: 7.5 kB / 0.7428 GB, free: 157 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001196/1.9, allocations: 23.02 kB / 0.7428 GB, free: 157 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04545/1.945, allocations: 14.92 MB / 0.7574 GB, free: 146.1 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.649e-05/1.946, allocations: 4 kB / 0.7574 GB, free: 146.1 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005122/1.951, allocations: 0.6824 MB / 0.7581 GB, free: 145.5 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00421/1.955, allocations: 0.8783 MB / 0.7589 GB, free: 144.8 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00108/1.956, allocations: 91.03 kB / 0.759 GB, free: 144.8 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01513/1.971, allocations: 7.203 MB / 0.7661 GB, free: 138 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.424e-06/1.971, allocations: 4 kB / 0.7661 GB, free: 138 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02201/1.993, allocations: 8.764 MB / 0.7746 GB, free: 129.1 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00393/1.997, allocations: 0.9101 MB / 0.7755 GB, free: 128.2 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001977/1.999, allocations: 75.98 kB / 0.7756 GB, free: 128.1 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004647/2.004, allocations: 197.3 kB / 0.7758 GB, free: 127.9 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00123/2.005, allocations: 275.1 kB / 0.776 GB, free: 127.6 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004773/2.006, allocations: 123.9 kB / 0.7761 GB, free: 127.5 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.006478/2.012, allocations: 2.359 MB / 0.7784 GB, free: 125.2 MB / 494.1 MB Notification: Performance of sort global known variables: time 7.51e-07/2.012, allocations: 0 / 0.7784 GB, free: 125.2 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.01158/2.024, allocations: 1.455 MB / 0.7799 GB, free: 123.7 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.00155/2.026, allocations: 253.2 kB / 0.7801 GB, free: 123.5 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01664/2.042, allocations: 6.463 MB / 0.7864 GB, free: 117 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.336e-05/2.042, allocations: 4 kB / 0.7864 GB, free: 117 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.008393/2.051, allocations: 3.075 MB / 0.7894 GB, free: 113.9 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007915/2.059, allocations: 0.775 MB / 0.7902 GB, free: 113.1 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04232/2.101, allocations: 16.98 MB / 0.8068 GB, free: 96.08 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008634/2.11, allocations: 4.854 MB / 0.8115 GB, free: 91.18 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002835/2.113, allocations: 375.3 kB / 0.8119 GB, free: 90.82 MB / 494.1 MB Notification: Performance of SimCode: time 9.72e-07/2.113, allocations: 4 kB / 0.8119 GB, free: 90.81 MB / 494.1 MB Notification: Performance of Templates: time 0.5768/2.689, allocations: 131.6 MB / 0.9404 GB, free: 122.6 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)