Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.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: "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_VCurve4,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_VCurve4,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve4",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005266/0.005272, allocations: 99.92 kB / 15.73 MB, free: 6.008 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.512/1.512, allocations: 222.9 MB / 239.4 MB, free: 4.523 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.001713/0.001712, allocations: 192.5 kB / 289.7 MB, free: 2.242 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03843/0.03843, allocations: 8.796 MB / 348.7 MB, free: 4.613 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002445/0.002446, allocations: 75.88 kB / 463.5 MB, free: 13.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.1139, allocations: 51.56 MB / 0.503 GB, free: 9.949 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve4): time 0.03151/0.1455, allocations: 25.45 MB / 0.5278 GB, free: 388 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2816/0.4272, allocations: 7.933 MB / 0.5356 GB, free: 4.34 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006297/0.4336, allocations: 172.3 kB / 0.5357 GB, free: 4.34 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01778/0.4514, allocations: 7.647 MB / 0.5432 GB, free: 3.488 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01116/0.4626, allocations: 3.048 MB / 0.5462 GB, free: 2.633 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006976/0.4696, allocations: 2.016 MB / 0.5481 GB, free: 2.438 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01591/0.4855, allocations: 9.229 MB / 0.5572 GB, free: 15.07 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03378/0.5193, allocations: 17.27 MB / 0.574 GB, free: 5.883 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01175/0.5311, allocations: 4.739 MB / 0.5786 GB, free: 1.258 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01198/0.5432, allocations: 5.236 MB / 0.5838 GB, free: 12.17 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005311/0.5485, allocations: 1.355 MB / 0.5851 GB, free: 10.81 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007607/0.5562, allocations: 1.73 MB / 0.5868 GB, free: 9.094 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006589/0.5628, allocations: 2.663 MB / 0.5894 GB, free: 6.465 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01225/0.5751, allocations: 5.092 MB / 0.5943 GB, free: 1.395 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02743/0.6026, allocations: 18.19 MB / 0.6121 GB, free: 15.53 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.334e-06/0.6026, allocations: 0 / 0.6121 GB, free: 15.53 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.6026, allocations: 0 / 0.6121 GB, free: 15.53 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0004624/0.6031, allocations: 4 kB / 0.6121 GB, free: 15.52 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.03633/0.6394, allocations: 10.94 MB / 0.6228 GB, free: 4.562 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.234e-05/0.6395, allocations: 8.031 kB / 0.6228 GB, free: 4.555 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005405/0.6449, allocations: 1.264 MB / 0.624 GB, free: 3.293 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03391/0.6789, allocations: 5.721 MB / 0.6296 GB, free: 13.63 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01507/0.694, allocations: 5.818 MB / 0.6353 GB, free: 7.793 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007799/0.6948, allocations: 0.5868 MB / 0.6359 GB, free: 7.219 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004001/0.6988, allocations: 0.7638 MB / 0.6366 GB, free: 6.465 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03651/0.7354, allocations: 12.77 MB / 0.6491 GB, free: 9.68 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003395/0.7358, allocations: 19.89 kB / 0.6491 GB, free: 9.66 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003139/0.7389, allocations: 321.2 kB / 0.6494 GB, free: 9.359 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006492/0.7396, allocations: 0.4967 MB / 0.6499 GB, free: 8.859 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03095/0.7706, allocations: 12.26 MB / 0.6619 GB, free: 12.58 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08264/0.8532, allocations: 43.36 MB / 0.7042 GB, free: 144 kB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02871/0.882, allocations: 25.19 MB / 0.7288 GB, free: 4.043 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005737/0.8878, allocations: 2.972 MB / 0.7317 GB, free: 1.066 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005298/0.8884, allocations: 239.5 kB / 0.732 GB, free: 0.8047 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.2448/1.133, allocations: 2.585 MB / 0.7345 GB, free: 166.3 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=391): time 8.676e-06/1.133, allocations: 0 / 0.7345 GB, free: 166.3 MB / 0.5294 GB Notification: Performance of matching and sorting (n=397): time 0.05004/1.183, allocations: 18.42 MB / 0.7525 GB, free: 162.4 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001417/1.183, allocations: 351.1 kB / 0.7528 GB, free: 162.1 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008742/1.192, allocations: 3.526 MB / 0.7562 GB, free: 160.9 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0007307/1.193, allocations: 91.45 kB / 0.7563 GB, free: 160.8 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.00242/1.195, allocations: 3.498 MB / 0.7598 GB, free: 158.2 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001755/1.197, allocations: 1.416 MB / 0.7611 GB, free: 157.1 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002629/1.2, allocations: 1.094 MB / 0.7622 GB, free: 156.5 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 5.022e-05/1.2, allocations: 306.2 kB / 0.7625 GB, free: 156.2 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004464/1.204, allocations: 2.553 MB / 0.765 GB, free: 155.2 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005631/1.21, allocations: 4.505 MB / 0.7694 GB, free: 151.8 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008533/1.219, allocations: 7.453 MB / 0.7767 GB, free: 146.8 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001092/1.219, allocations: 19.78 kB / 0.7767 GB, free: 146.8 MB / 0.5294 GB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01412/1.233, allocations: 8.292 MB / 0.7848 GB, free: 143.4 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.65e-05/1.233, allocations: 64.7 kB / 0.7848 GB, free: 143.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001055/1.233, allocations: 59.66 kB / 0.7849 GB, free: 143.3 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002648/1.236, allocations: 0.9934 MB / 0.7859 GB, free: 143.1 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004496/1.24, allocations: 1.267 MB / 0.7871 GB, free: 143 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01119/1.252, allocations: 8.807 MB / 0.7957 GB, free: 137.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004792/1.256, allocations: 369.1 kB / 0.7961 GB, free: 137.1 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00111/1.258, allocations: 267.1 kB / 0.7963 GB, free: 136.9 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.005751/1.263, allocations: 2.901 MB / 0.7991 GB, free: 134.3 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001324/1.265, allocations: 405.4 kB / 0.7995 GB, free: 133.9 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01072/1.275, allocations: 6.179 MB / 0.8056 GB, free: 127.7 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.571e-05/1.275, allocations: 40 kB / 0.8056 GB, free: 127.7 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.128e-05/1.275, allocations: 12 kB / 0.8056 GB, free: 127.7 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.681e-05/1.276, allocations: 21.52 kB / 0.8056 GB, free: 127.6 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02546/1.301, allocations: 14.65 MB / 0.8199 GB, free: 112.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.543e-05/1.301, allocations: 4.812 kB / 0.82 GB, free: 112.9 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002769/1.304, allocations: 0.6787 MB / 0.8206 GB, free: 112.2 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002317/1.306, allocations: 0.8775 MB / 0.8215 GB, free: 111.4 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005526/1.307, allocations: 91.97 kB / 0.8216 GB, free: 111.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008936/1.316, allocations: 7.757 MB / 0.8291 GB, free: 103.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.97e-06/1.316, allocations: 8.031 kB / 0.8291 GB, free: 103.4 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01257/1.328, allocations: 8.793 MB / 0.8377 GB, free: 94.46 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002672/1.331, allocations: 0.93 MB / 0.8386 GB, free: 93.52 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001049/1.332, allocations: 76 kB / 0.8387 GB, free: 93.44 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002698/1.335, allocations: 199.8 kB / 0.8389 GB, free: 93.25 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000649/1.336, allocations: 271.1 kB / 0.8392 GB, free: 92.98 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002145/1.336, allocations: 112 kB / 0.8393 GB, free: 92.87 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003347/1.339, allocations: 2.363 MB / 0.8416 GB, free: 90.52 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.5e-07/1.339, allocations: 4 kB / 0.8416 GB, free: 90.51 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006482/1.346, allocations: 1.453 MB / 0.843 GB, free: 89.06 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.01222/1.358, allocations: 9.513 MB / 0.8523 GB, free: 79.43 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.008881/1.367, allocations: 6.49 MB / 0.8586 GB, free: 72.91 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.217e-05/1.367, allocations: 8.062 kB / 0.8586 GB, free: 72.91 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004882/1.372, allocations: 3.084 MB / 0.8616 GB, free: 69.79 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004679/1.376, allocations: 0.813 MB / 0.8624 GB, free: 69.02 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07113/1.448, allocations: 48.24 MB / 0.9095 GB, free: 18.67 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005098/1.453, allocations: 5.005 MB / 0.9144 GB, free: 13.62 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004216/1.457, allocations: 1.59 MB / 0.916 GB, free: 12.03 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004825/1.462, allocations: 2.749 MB / 0.9187 GB, free: 9.277 MB / 0.5294 GB Notification: Performance of SimCode: time 1.483e-06/1.462, allocations: 4 kB / 0.9187 GB, free: 9.273 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3929/1.855, allocations: 111.7 MB / 1.028 GB, free: 116.8 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.05/21.91, allocations: 12.14 kB / 1.028 GB, free: 116.8 MB / 0.545 GB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4_res.csv --start-time 0 --stop-time 200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve4.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.pipe 2>&1)