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: "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_VCurve2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_VCurve2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve2",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.008011/0.008011, allocations: 99.34 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.495/1.495, allocations: 222.9 MB / 239.4 MB, free: 4.387 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.001618/0.001618, allocations: 188.5 kB / 289.7 MB, free: 2.121 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03795/0.03795, allocations: 8.806 MB / 348.7 MB, free: 4.57 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002485/0.002485, allocations: 79.88 kB / 463.5 MB, free: 13.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1138/0.1163, allocations: 51.57 MB / 0.503 GB, free: 10 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve2): time 0.03122/0.1476, allocations: 25.45 MB / 0.5278 GB, free: 448 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2694/0.4171, allocations: 7.93 MB / 0.5356 GB, free: 4.211 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006546/0.4237, allocations: 173.5 kB / 0.5357 GB, free: 4.211 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01858/0.4423, allocations: 7.645 MB / 0.5432 GB, free: 3.363 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01337/0.4557, allocations: 3.047 MB / 0.5462 GB, free: 2.512 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007714/0.4635, allocations: 2.019 MB / 0.5481 GB, free: 2.312 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01784/0.4814, allocations: 9.226 MB / 0.5572 GB, free: 15.03 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0318/0.5132, allocations: 17.28 MB / 0.574 GB, free: 5.848 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01033/0.5236, allocations: 4.74 MB / 0.5787 GB, free: 1.223 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01037/0.534, allocations: 5.236 MB / 0.5838 GB, free: 12.13 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004298/0.5384, allocations: 1.355 MB / 0.5851 GB, free: 10.78 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006747/0.5452, allocations: 1.731 MB / 0.5868 GB, free: 9.059 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005234/0.5505, allocations: 2.663 MB / 0.5894 GB, free: 6.43 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01245/0.563, allocations: 5.087 MB / 0.5943 GB, free: 1.363 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02988/0.5929, allocations: 18.19 MB / 0.6121 GB, free: 15.5 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.886e-06/0.5929, allocations: 0 / 0.6121 GB, free: 15.5 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.136e-06/0.593, allocations: 0 / 0.6121 GB, free: 15.5 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0005645/0.5935, allocations: 0 / 0.6121 GB, free: 15.5 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.04393/0.6375, allocations: 10.94 MB / 0.6228 GB, free: 4.531 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.739e-05/0.6376, allocations: 8.031 kB / 0.6228 GB, free: 4.523 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005858/0.6434, allocations: 1.265 MB / 0.624 GB, free: 3.262 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03427/0.6777, allocations: 5.725 MB / 0.6296 GB, free: 13.6 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01637/0.6942, allocations: 5.821 MB / 0.6353 GB, free: 7.758 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008691/0.6951, allocations: 0.5787 MB / 0.6359 GB, free: 7.188 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004307/0.6994, allocations: 0.7696 MB / 0.6366 GB, free: 6.43 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04012/0.7396, allocations: 12.77 MB / 0.6491 GB, free: 9.645 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005302/0.7402, allocations: 15.89 kB / 0.6491 GB, free: 9.629 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003664/0.7438, allocations: 324.2 kB / 0.6494 GB, free: 9.324 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007651/0.7447, allocations: 0.4967 MB / 0.6499 GB, free: 8.824 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03257/0.7772, allocations: 12.25 MB / 0.6619 GB, free: 12.55 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09128/0.8686, allocations: 43.38 MB / 0.7042 GB, free: 104 kB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0315/0.9001, allocations: 25.19 MB / 0.7288 GB, free: 4.004 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006445/0.9066, allocations: 2.968 MB / 0.7317 GB, free: 1.027 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006845/0.9074, allocations: 242.9 kB / 0.732 GB, free: 0.7656 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.2823/1.19, allocations: 2.576 MB / 0.7345 GB, free: 166.1 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=391): time 8.796e-06/1.19, allocations: 0 / 0.7345 GB, free: 166.1 MB / 0.5294 GB Notification: Performance of matching and sorting (n=397): time 0.04965/1.239, allocations: 18.42 MB / 0.7525 GB, free: 162.3 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001325/1.24, allocations: 357.5 kB / 0.7528 GB, free: 161.9 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008513/1.248, allocations: 3.522 MB / 0.7563 GB, free: 160.8 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0007922/1.249, allocations: 90.56 kB / 0.7563 GB, free: 160.7 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002596/1.252, allocations: 3.496 MB / 0.7598 GB, free: 158.1 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001866/1.253, allocations: 1.419 MB / 0.7611 GB, free: 157 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003249/1.257, allocations: 1.087 MB / 0.7622 GB, free: 156.4 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 6.248e-05/1.257, allocations: 314.6 kB / 0.7625 GB, free: 156.1 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004626/1.261, allocations: 2.548 MB / 0.765 GB, free: 155.2 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006235/1.268, allocations: 4.508 MB / 0.7694 GB, free: 151.7 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01024/1.278, allocations: 7.455 MB / 0.7767 GB, free: 146.7 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001535/1.278, allocations: 17.97 kB / 0.7767 GB, free: 146.7 MB / 0.5294 GB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01898/1.297, allocations: 8.292 MB / 0.7848 GB, free: 143.3 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001007/1.297, allocations: 60.67 kB / 0.7848 GB, free: 143.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000141/1.297, allocations: 61.66 kB / 0.7849 GB, free: 143.2 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002896/1.3, allocations: 0.996 MB / 0.7859 GB, free: 143 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005145/1.306, allocations: 1.263 MB / 0.7871 GB, free: 142.9 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0125/1.318, allocations: 8.812 MB / 0.7957 GB, free: 137.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005383/1.324, allocations: 359.8 kB / 0.7961 GB, free: 137 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001261/1.325, allocations: 275.6 kB / 0.7963 GB, free: 136.8 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.006804/1.332, allocations: 2.896 MB / 0.7991 GB, free: 134.2 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001479/1.333, allocations: 409.3 kB / 0.7995 GB, free: 133.8 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0115/1.345, allocations: 6.175 MB / 0.8056 GB, free: 127.6 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.251e-05/1.345, allocations: 40 kB / 0.8056 GB, free: 127.6 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.586e-05/1.345, allocations: 9.406 kB / 0.8056 GB, free: 127.6 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.278e-05/1.345, allocations: 23.92 kB / 0.8056 GB, free: 127.6 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02571/1.371, allocations: 14.66 MB / 0.82 GB, free: 112.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.842e-05/1.371, allocations: 4 kB / 0.82 GB, free: 112.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002911/1.374, allocations: 0.6865 MB / 0.8206 GB, free: 112.2 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002505/1.376, allocations: 0.8772 MB / 0.8215 GB, free: 111.3 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000681/1.377, allocations: 83.98 kB / 0.8216 GB, free: 111.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009896/1.387, allocations: 7.752 MB / 0.8291 GB, free: 103.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.861e-06/1.387, allocations: 8 kB / 0.8291 GB, free: 103.3 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01433/1.401, allocations: 8.798 MB / 0.8377 GB, free: 94.38 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002841/1.404, allocations: 0.9317 MB / 0.8386 GB, free: 93.43 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001326/1.405, allocations: 72 kB / 0.8387 GB, free: 93.36 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003218/1.409, allocations: 195.8 kB / 0.8389 GB, free: 93.17 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000976/1.41, allocations: 277.1 kB / 0.8392 GB, free: 92.9 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004656/1.41, allocations: 112 kB / 0.8393 GB, free: 92.79 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004361/1.414, allocations: 2.363 MB / 0.8416 GB, free: 90.43 MB / 0.5294 GB Notification: Performance of sort global known variables: time 8.51e-07/1.415, allocations: 0 / 0.8416 GB, free: 90.43 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.00771/1.422, allocations: 1.457 MB / 0.843 GB, free: 88.98 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.01583/1.438, allocations: 9.511 MB / 0.8523 GB, free: 79.34 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0118/1.45, allocations: 6.496 MB / 0.8586 GB, free: 72.83 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.485e-05/1.45, allocations: 0 / 0.8586 GB, free: 72.83 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005914/1.456, allocations: 3.084 MB / 0.8616 GB, free: 69.71 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006634/1.463, allocations: 0.8154 MB / 0.8624 GB, free: 68.94 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08678/1.549, allocations: 48.24 MB / 0.9095 GB, free: 18.59 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008647/1.558, allocations: 5.008 MB / 0.9144 GB, free: 13.54 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005867/1.564, allocations: 1.59 MB / 0.916 GB, free: 11.95 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00547/1.57, allocations: 2.753 MB / 0.9187 GB, free: 9.195 MB / 0.5294 GB Notification: Performance of SimCode: time 1.543e-06/1.57, allocations: 0 / 0.9187 GB, free: 9.195 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4147/1.984, allocations: 111.7 MB / 1.028 GB, free: 116.7 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.53/21.51, allocations: 7.859 kB / 1.028 GB, free: 116.7 MB / 0.545 GB (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 & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2_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_VCurve2.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe 2>&1)