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.001483/0.001483, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.449/1.449, allocations: 222.9 MB / 239.3 MB, free: 4.602 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.00132/0.00132, allocations: 187.6 kB / 289.6 MB, free: 2.324 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03399/0.03399, allocations: 8.801 MB / 348.5 MB, free: 4.703 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001546/0.001546, allocations: 77.95 kB / 411.2 MB, free: 41.98 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08802/0.08958, allocations: 51.56 MB / 462.8 MB, free: 14.26 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve2): time 0.0267/0.1163, allocations: 25.44 MB / 488.2 MB, free: 4.688 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01825/0.1346, allocations: 7.936 MB / 496.1 MB, free: 12.73 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00549/0.1402, allocations: 175.5 kB / 496.3 MB, free: 12.55 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01893/0.1591, allocations: 7.647 MB / 0.4921 GB, free: 4.887 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0126/0.1717, allocations: 3.045 MB / 0.4951 GB, free: 1.832 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006585/0.1783, allocations: 2.029 MB / 0.4971 GB, free: 15.81 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01427/0.1926, allocations: 9.162 MB / 0.506 GB, free: 6.625 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0296/0.2223, allocations: 17.33 MB / 0.523 GB, free: 5.141 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008328/0.2306, allocations: 4.742 MB / 0.5276 GB, free: 396 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2306/0.4612, allocations: 5.259 MB / 0.5327 GB, free: 23.11 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003757/0.465, allocations: 1.353 MB / 0.5341 GB, free: 23.11 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005407/0.4704, allocations: 1.724 MB / 0.5357 GB, free: 23.11 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003796/0.4743, allocations: 2.674 MB / 0.5383 GB, free: 22.88 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01212/0.4864, allocations: 5.09 MB / 0.5433 GB, free: 21.72 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02354/0.51, allocations: 18.05 MB / 0.561 GB, free: 16.4 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.13e-05/0.51, allocations: 0.625 kB / 0.561 GB, free: 16.4 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.51, allocations: 0 / 0.561 GB, free: 16.4 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0006935/0.5107, allocations: 0.9688 kB / 0.561 GB, free: 16.4 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.03959/0.5503, allocations: 10.81 MB / 0.5715 GB, free: 9.609 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.965e-05/0.5504, allocations: 10.53 kB / 0.5715 GB, free: 9.609 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007364/0.5578, allocations: 1.273 MB / 0.5728 GB, free: 8.781 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.033/0.5908, allocations: 5.633 MB / 0.5783 GB, free: 6.262 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01206/0.6029, allocations: 5.665 MB / 0.5838 GB, free: 2.484 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004613/0.6034, allocations: 0.5922 MB / 0.5844 GB, free: 2.219 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003159/0.6066, allocations: 0.7676 MB / 0.5851 GB, free: 1.852 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03151/0.6381, allocations: 12.77 MB / 0.5976 GB, free: 5.043 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002205/0.6384, allocations: 11.91 kB / 0.5976 GB, free: 5.031 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001877/0.6403, allocations: 325.9 kB / 0.5979 GB, free: 4.723 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006119/0.6409, allocations: 0.489 MB / 0.5984 GB, free: 4.23 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02852/0.6694, allocations: 12.25 MB / 0.6104 GB, free: 7.965 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0912/0.7607, allocations: 43.72 MB / 0.653 GB, free: 11.65 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02754/0.7883, allocations: 25.19 MB / 0.6776 GB, free: 15.59 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005976/0.7943, allocations: 2.971 MB / 0.6805 GB, free: 12.61 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005805/0.7949, allocations: 247.2 kB / 0.6808 GB, free: 12.35 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005285/0.8002, allocations: 2.574 MB / 0.6833 GB, free: 9.707 MB / 478.1 MB Notification: Performance of pre-optimization done (n=391): time 8.206e-06/0.8002, allocations: 0 / 0.6833 GB, free: 9.707 MB / 478.1 MB Notification: Performance of matching and sorting (n=397): time 0.04403/0.8443, allocations: 18.11 MB / 0.701 GB, free: 7.496 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001776/0.8445, allocations: 363.5 kB / 0.7013 GB, free: 7.066 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005512/0.85, allocations: 3.526 MB / 0.7048 GB, free: 3.535 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005544/0.8506, allocations: 85.7 kB / 0.7049 GB, free: 3.445 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002548/0.8531, allocations: 3.373 MB / 0.7081 GB, free: 52 kB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.2291/1.082, allocations: 1.351 MB / 0.7095 GB, free: 167 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002086/1.084, allocations: 1.085 MB / 0.7105 GB, free: 166.9 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 5.04e-05/1.084, allocations: 305.4 kB / 0.7108 GB, free: 166.6 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003627/1.088, allocations: 2.552 MB / 0.7133 GB, free: 166.6 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004771/1.093, allocations: 4.51 MB / 0.7177 GB, free: 164.3 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009257/1.102, allocations: 7.451 MB / 0.725 GB, free: 161.8 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.989e-05/1.102, allocations: 17.41 kB / 0.725 GB, free: 161.8 MB / 494.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01289/1.115, allocations: 8.271 MB / 0.7331 GB, free: 159.6 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.948e-05/1.115, allocations: 57.14 kB / 0.7331 GB, free: 159.6 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001156/1.115, allocations: 59.25 kB / 0.7332 GB, free: 159.6 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00264/1.118, allocations: 1.01 MB / 0.7342 GB, free: 159.4 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004419/1.122, allocations: 1.258 MB / 0.7354 GB, free: 159.2 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01088/1.133, allocations: 8.822 MB / 0.744 GB, free: 154.2 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00486/1.138, allocations: 359.5 kB / 0.7444 GB, free: 154.1 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006567/1.139, allocations: 262 kB / 0.7446 GB, free: 154.1 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.004662/1.144, allocations: 2.912 MB / 0.7475 GB, free: 152.5 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008529/1.144, allocations: 383.2 kB / 0.7478 GB, free: 152.3 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009154/1.154, allocations: 6.178 MB / 0.7539 GB, free: 149.1 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.677e-05/1.154, allocations: 40.69 kB / 0.7539 GB, free: 149.1 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.447e-05/1.154, allocations: 11.94 kB / 0.7539 GB, free: 149.1 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.379e-05/1.154, allocations: 26.45 kB / 0.7539 GB, free: 149.1 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02164/1.175, allocations: 14.91 MB / 0.7685 GB, free: 136.7 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.488e-05/1.175, allocations: 11.84 kB / 0.7685 GB, free: 136.7 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00242/1.178, allocations: 0.6833 MB / 0.7692 GB, free: 136.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002232/1.18, allocations: 0.8826 MB / 0.77 GB, free: 135.3 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002529/1.18, allocations: 83.98 kB / 0.7701 GB, free: 135.2 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009192/1.189, allocations: 7.764 MB / 0.7777 GB, free: 127.3 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/1.19, allocations: 7.938 kB / 0.7777 GB, free: 127.3 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01128/1.201, allocations: 8.775 MB / 0.7863 GB, free: 118.4 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002246/1.203, allocations: 0.9075 MB / 0.7872 GB, free: 117.4 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006256/1.204, allocations: 76.8 kB / 0.7872 GB, free: 117.4 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001897/1.206, allocations: 199.8 kB / 0.7874 GB, free: 117.2 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005176/1.206, allocations: 271.1 kB / 0.7877 GB, free: 116.9 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001888/1.206, allocations: 112 kB / 0.7878 GB, free: 116.8 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003152/1.21, allocations: 2.363 MB / 0.7901 GB, free: 114.4 MB / 494.1 MB Notification: Performance of sort global known variables: time 2e-07/1.21, allocations: 0 / 0.7901 GB, free: 114.4 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0048/1.214, allocations: 1.457 MB / 0.7915 GB, free: 113 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.01087/1.225, allocations: 9.496 MB / 0.8008 GB, free: 103.4 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.02476/1.25, allocations: 11.91 MB / 0.8124 GB, free: 91.5 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.045e-05/1.25, allocations: 4.375 kB / 0.8124 GB, free: 91.49 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004427/1.255, allocations: 3.074 MB / 0.8154 GB, free: 88.39 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004126/1.259, allocations: 0.8232 MB / 0.8162 GB, free: 87.61 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07693/1.336, allocations: 56.28 MB / 0.8712 GB, free: 26.7 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004726/1.34, allocations: 5.016 MB / 0.8761 GB, free: 21.64 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004699/1.345, allocations: 1.59 MB / 0.8776 GB, free: 20.04 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003707/1.349, allocations: 2.753 MB / 0.8803 GB, free: 17.29 MB / 494.1 MB Notification: Performance of SimCode: time 1.252e-06/1.349, allocations: 0 / 0.8803 GB, free: 17.29 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3831/1.732, allocations: 113.5 MB / 0.9912 GB, free: 87.64 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.71/13.44, allocations: 19.59 kB / 0.9912 GB, free: 87.62 MB / 494.1 MB (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)