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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001367/0.001367, allocations: 114.3 kB / 18.94 MB, free: 2.934 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.466/1.466, allocations: 230.6 MB / 252.6 MB, free: 8.332 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001765/0.001765, allocations: 215.2 kB / 309.2 MB, free: 3.176 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo): time 0.0441/0.0441, allocations: 8.918 MB / 374.6 MB, free: 1.926 MB / 302.1 MB " [Timeout remaining time 180] Using package HanserModelica with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_VCurve3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_VCurve3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve3",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: HanserModelica requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: HanserModelica requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002676/0.002676, allocations: 90.59 kB / 0.4893 GB, free: 4.551 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1117/0.1143, allocations: 55.61 MB / 0.5436 GB, free: 5.027 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve3): time 0.03149/0.1458, allocations: 25.67 MB / 0.5686 GB, free: 11.25 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02016/0.166, allocations: 8.084 MB / 0.5765 GB, free: 3.137 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005078/0.1711, allocations: 199.1 kB / 0.5767 GB, free: 2.941 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0199/0.191, allocations: 7.758 MB / 0.5843 GB, free: 11.16 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01058/0.2016, allocations: 3.17 MB / 0.5874 GB, free: 7.977 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006971/0.2085, allocations: 2.095 MB / 0.5894 GB, free: 5.883 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01504/0.2236, allocations: 9.407 MB / 0.5986 GB, free: 12.45 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02437/0.2479, allocations: 11.35 MB / 0.6097 GB, free: 0.9531 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008941/0.2569, allocations: 4.882 MB / 0.6145 GB, free: 12.06 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009883/0.2668, allocations: 5.365 MB / 0.6197 GB, free: 6.676 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004156/0.2709, allocations: 1.352 MB / 0.621 GB, free: 5.324 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00706/0.278, allocations: 1.75 MB / 0.6227 GB, free: 3.574 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005188/0.2832, allocations: 2.673 MB / 0.6253 GB, free: 0.8945 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009288/0.2925, allocations: 5.094 MB / 0.6303 GB, free: 11.78 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02455/0.317, allocations: 18.23 MB / 0.6481 GB, free: 9.492 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.317, allocations: 0 / 0.6481 GB, free: 9.492 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.317, allocations: 0 / 0.6481 GB, free: 9.492 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0004517/0.3175, allocations: 0 / 0.6481 GB, free: 9.492 MB / 462.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.4439/0.7614, allocations: 10.88 MB / 0.6587 GB, free: 89.64 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.02e-05/0.7614, allocations: 9.781 kB / 0.6588 GB, free: 89.64 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004368/0.7658, allocations: 1.268 MB / 0.66 GB, free: 89.09 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03294/0.7987, allocations: 5.664 MB / 0.6655 GB, free: 88.23 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01182/0.8105, allocations: 5.86 MB / 0.6712 GB, free: 85.27 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005559/0.8111, allocations: 0.5782 MB / 0.6718 GB, free: 85.02 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002919/0.814, allocations: 0.7701 MB / 0.6726 GB, free: 84.76 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02898/0.843, allocations: 12.8 MB / 0.6851 GB, free: 77.26 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002658/0.8433, allocations: 20.81 kB / 0.6851 GB, free: 77.24 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002034/0.8453, allocations: 320.6 kB / 0.6854 GB, free: 76.95 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003733/0.8457, allocations: 0.4967 MB / 0.6859 GB, free: 76.45 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02226/0.8679, allocations: 12.29 MB / 0.6979 GB, free: 64.14 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0687/0.9366, allocations: 41.41 MB / 0.7383 GB, free: 22.44 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01531/0.9519, allocations: 9.021 MB / 0.7471 GB, free: 14.41 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004619/0.9566, allocations: 2.714 MB / 0.7498 GB, free: 11.7 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004452/0.957, allocations: 120.5 kB / 0.7499 GB, free: 11.6 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003841/0.9608, allocations: 2.588 MB / 0.7524 GB, free: 8.945 MB / 462.1 MB Notification: Performance of pre-optimization done (n=391): time 8.566e-06/0.9608, allocations: 0 / 0.7524 GB, free: 8.945 MB / 462.1 MB Notification: Performance of matching and sorting (n=397): time 0.04182/1.003, allocations: 18.29 MB / 0.7703 GB, free: 6.688 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002776/1.003, allocations: 351.5 kB / 0.7706 GB, free: 6.27 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006909/1.01, allocations: 3.539 MB / 0.7741 GB, free: 2.727 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008074/1.011, allocations: 93.64 kB / 0.7742 GB, free: 2.629 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003221/1.014, allocations: 3.492 MB / 0.7776 GB, free: 15.12 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002114/1.016, allocations: 1.427 MB / 0.779 GB, free: 13.72 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002778/1.019, allocations: 1.101 MB / 0.7801 GB, free: 12.61 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001465/1.019, allocations: 305.1 kB / 0.7803 GB, free: 12.31 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005068/1.024, allocations: 2.556 MB / 0.7828 GB, free: 9.746 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007371/1.031, allocations: 4.508 MB / 0.7872 GB, free: 4.355 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01232/1.044, allocations: 7.467 MB / 0.7945 GB, free: 12.02 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.398e-05/1.044, allocations: 16 kB / 0.7945 GB, free: 12 MB / 0.4982 GB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01968/1.063, allocations: 8.297 MB / 0.8027 GB, free: 3.68 MB / 0.4982 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001115/1.064, allocations: 57.7 kB / 0.8027 GB, free: 3.617 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000127/1.064, allocations: 60 kB / 0.8028 GB, free: 3.559 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003063/1.067, allocations: 1.001 MB / 0.8037 GB, free: 2.562 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005448/1.072, allocations: 1.263 MB / 0.805 GB, free: 1.297 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01525/1.087, allocations: 8.721 MB / 0.8135 GB, free: 8.457 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004922/1.092, allocations: 355.5 kB / 0.8138 GB, free: 8.109 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001144/1.094, allocations: 272 kB / 0.8141 GB, free: 7.844 MB / 0.5138 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.006889/1.1, allocations: 2.904 MB / 0.8169 GB, free: 4.922 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00125/1.102, allocations: 405.4 kB / 0.8173 GB, free: 4.523 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01329/1.115, allocations: 6.14 MB / 0.8233 GB, free: 14.33 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.841e-05/1.115, allocations: 40 kB / 0.8233 GB, free: 14.29 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.89e-05/1.115, allocations: 12 kB / 0.8234 GB, free: 14.28 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.131e-05/1.115, allocations: 19.92 kB / 0.8234 GB, free: 14.26 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03281/1.148, allocations: 14.66 MB / 0.8377 GB, free: 15.42 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.208e-05/1.148, allocations: 4 kB / 0.8377 GB, free: 15.42 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003282/1.151, allocations: 0.6948 MB / 0.8384 GB, free: 14.72 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002741/1.154, allocations: 0.8716 MB / 0.8392 GB, free: 13.85 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006286/1.155, allocations: 91.97 kB / 0.8393 GB, free: 13.76 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01234/1.167, allocations: 7.649 MB / 0.8468 GB, free: 5.988 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.848e-06/1.167, allocations: 12.03 kB / 0.8468 GB, free: 5.977 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01695/1.184, allocations: 8.785 MB / 0.8554 GB, free: 13.06 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003319/1.187, allocations: 0.8603 MB / 0.8562 GB, free: 12.2 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001096/1.188, allocations: 80 kB / 0.8563 GB, free: 12.12 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002654/1.191, allocations: 195.7 kB / 0.8565 GB, free: 11.93 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00087/1.192, allocations: 291 kB / 0.8568 GB, free: 11.64 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003332/1.192, allocations: 124 kB / 0.8569 GB, free: 11.52 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.004517/1.197, allocations: 2.367 MB / 0.8592 GB, free: 9.164 MB / 0.5607 GB Notification: Performance of sort global known variables: time 1.8e-07/1.197, allocations: 0 / 0.8592 GB, free: 9.164 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.00677/1.203, allocations: 1.457 MB / 0.8606 GB, free: 7.707 MB / 0.5607 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.01757/1.221, allocations: 9.494 MB / 0.8699 GB, free: 14.07 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01376/1.235, allocations: 6.226 MB / 0.876 GB, free: 7.824 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.43e-05/1.235, allocations: 4 kB / 0.876 GB, free: 7.82 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.006977/1.242, allocations: 2.888 MB / 0.8788 GB, free: 4.906 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005758/1.248, allocations: 0.8185 MB / 0.8796 GB, free: 4.109 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3365/1.584, allocations: 48.25 MB / 0.9267 GB, free: 183.7 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005343/1.589, allocations: 5.008 MB / 0.9316 GB, free: 178.6 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.004502/1.594, allocations: 1.59 MB / 0.9332 GB, free: 177.1 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004314/1.598, allocations: 2.78 MB / 0.9359 GB, free: 174.3 MB / 0.5763 GB Notification: Performance of SimCode: time 1.482e-06/1.598, allocations: 0 / 0.9359 GB, free: 174.3 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1807/1.779, allocations: 118 MB / 1.051 GB, free: 56.88 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.4/23.18, allocations: 0 / 1.051 GB, free: 56.88 MB / 0.5763 GB " [Timeout remaining time 637] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve3_fmu --startTime=0 --stopTime=200 --stepSize=0.1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve3.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 26.52868731901981] Failed to read output from testmodel.py, exit status != 0: 23.365523715969175 23.387438894 23.066080089 Calling exit ...