Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.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.001388/0.001388, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.393/1.393, allocations: 230.6 MB / 252.7 MB, free: 14.26 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.001588/0.001588, allocations: 208.4 kB / 309.2 MB, free: 3.133 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.04159/0.04159, allocations: 8.929 MB / 374.6 MB, free: 6.57 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_Slip2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Slip2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip2",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.002482/0.002482, allocations: 87.86 kB / 0.4892 GB, free: 44.71 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07797/0.08045, allocations: 55.61 MB / 0.5435 GB, free: 5.004 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip2): time 0.2117/0.2921, allocations: 21.98 MB / 0.5649 GB, free: 9.336 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01286/0.305, allocations: 7.765 MB / 0.5725 GB, free: 9.223 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004487/0.3095, allocations: 205.3 kB / 0.5727 GB, free: 9.223 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01335/0.3228, allocations: 5.722 MB / 0.5783 GB, free: 8.23 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008726/0.3315, allocations: 2.77 MB / 0.581 GB, free: 7.02 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004578/0.3361, allocations: 1.605 MB / 0.5826 GB, free: 6.254 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.008829/0.3449, allocations: 7.39 MB / 0.5898 GB, free: 2.695 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01599/0.3609, allocations: 8.992 MB / 0.5986 GB, free: 13.8 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007248/0.3682, allocations: 3.852 MB / 0.6023 GB, free: 11.89 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00853/0.3767, allocations: 4.027 MB / 0.6063 GB, free: 9.426 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003141/0.3798, allocations: 1.074 MB / 0.6073 GB, free: 9.422 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004766/0.3846, allocations: 1.442 MB / 0.6087 GB, free: 9.246 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003446/0.3881, allocations: 2.15 MB / 0.6108 GB, free: 7.508 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007073/0.3951, allocations: 3.209 MB / 0.614 GB, free: 5.305 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02143/0.4166, allocations: 14.56 MB / 0.6282 GB, free: 6.934 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.111e-06/0.4166, allocations: 0 / 0.6282 GB, free: 6.934 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.4166, allocations: 0 / 0.6282 GB, free: 6.934 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003827/0.4169, allocations: 0 / 0.6282 GB, free: 6.934 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1800 * Number of variables: 1800 Notification: Performance of Generate backend data structure: time 0.02838/0.4453, allocations: 8.892 MB / 0.6369 GB, free: 13.96 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.513e-05/0.4454, allocations: 11.98 kB / 0.6369 GB, free: 13.95 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003628/0.449, allocations: 1.041 MB / 0.6379 GB, free: 12.9 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02618/0.4752, allocations: 4.421 MB / 0.6422 GB, free: 8.473 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01136/0.4866, allocations: 4.625 MB / 0.6467 GB, free: 3.797 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005391/0.4871, allocations: 493.1 kB / 0.6472 GB, free: 3.312 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002527/0.4896, allocations: 0.621 MB / 0.6478 GB, free: 2.691 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02526/0.5149, allocations: 10.49 MB / 0.658 GB, free: 8.102 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002405/0.5151, allocations: 19.88 kB / 0.6581 GB, free: 8.082 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001608/0.5167, allocations: 264 kB / 0.6583 GB, free: 7.824 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005006/0.5172, allocations: 417.7 kB / 0.6587 GB, free: 7.414 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02165/0.5389, allocations: 9.853 MB / 0.6683 GB, free: 13.55 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06213/0.601, allocations: 30.8 MB / 0.6984 GB, free: 13.92 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01512/0.6161, allocations: 6.685 MB / 0.7049 GB, free: 7.945 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004034/0.6202, allocations: 2.109 MB / 0.707 GB, free: 5.832 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003385/0.6205, allocations: 82.25 kB / 0.7071 GB, free: 5.75 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.94e-05/0.6206, allocations: 56.89 kB / 0.7071 GB, free: 5.684 MB / 494.1 MB Notification: Performance of pre-optimization done (n=295): time 5.881e-06/0.6206, allocations: 4 kB / 0.7071 GB, free: 5.68 MB / 494.1 MB Notification: Performance of matching and sorting (n=301): time 0.024/0.6446, allocations: 10.81 MB / 0.7177 GB, free: 10.77 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.983e-05/0.6446, allocations: 81.78 kB / 0.7178 GB, free: 10.67 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005278/0.6499, allocations: 3.134 MB / 0.7208 GB, free: 7.52 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0004606/0.6504, allocations: 73.7 kB / 0.7209 GB, free: 7.441 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.00249/0.6529, allocations: 2.978 MB / 0.7238 GB, free: 4.438 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001405/0.6543, allocations: 1.081 MB / 0.7249 GB, free: 3.348 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001724/0.656, allocations: 0.9255 MB / 0.7258 GB, free: 2.41 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001369/0.6561, allocations: 301.1 kB / 0.7261 GB, free: 2.113 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003579/0.6597, allocations: 2.031 MB / 0.728 GB, free: 76 kB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005517/0.6652, allocations: 3.757 MB / 0.7317 GB, free: 11.52 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009608/0.6748, allocations: 6.058 MB / 0.7376 GB, free: 4.656 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.882e-05/0.6749, allocations: 16 kB / 0.7376 GB, free: 4.641 MB / 0.5137 GB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01367/0.6886, allocations: 6.651 MB / 0.7441 GB, free: 13.95 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 6.334e-05/0.6886, allocations: 29.88 kB / 0.7442 GB, free: 13.92 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001107/0.6888, allocations: 56 kB / 0.7442 GB, free: 13.87 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001935/0.6907, allocations: 0.6604 MB / 0.7449 GB, free: 13.2 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004102/0.6948, allocations: 1.076 MB / 0.7459 GB, free: 12.12 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009869/0.7047, allocations: 6.026 MB / 0.7518 GB, free: 5.977 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003567/0.7082, allocations: 279.5 kB / 0.7521 GB, free: 5.703 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007112/0.7089, allocations: 243.9 kB / 0.7523 GB, free: 5.465 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 251 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (560): * Single equations (assignments): 559 * Array equations: 0 * Algorithm blocks: 0 * 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 {(8,28,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004456/0.7134, allocations: 2.315 MB / 0.7546 GB, free: 3.137 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008681/0.7143, allocations: 337.8 kB / 0.7549 GB, free: 2.805 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008943/0.7232, allocations: 4.614 MB / 0.7594 GB, free: 14.13 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.035e-05/0.7232, allocations: 28 kB / 0.7594 GB, free: 14.11 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.208e-05/0.7232, allocations: 11.94 kB / 0.7594 GB, free: 14.09 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.44e-05/0.7233, allocations: 15.94 kB / 0.7594 GB, free: 14.08 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02253/0.7458, allocations: 10.58 MB / 0.7698 GB, free: 3.316 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.709e-05/0.7458, allocations: 4 kB / 0.7698 GB, free: 3.312 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002353/0.7482, allocations: 0.5349 MB / 0.7703 GB, free: 2.777 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001796/0.75, allocations: 0.5632 MB / 0.7709 GB, free: 2.211 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004118/0.7504, allocations: 71.97 kB / 0.7709 GB, free: 2.141 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.207/0.9574, allocations: 5.248 MB / 0.7761 GB, free: 166.8 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.091e-06/0.9574, allocations: 9.625 kB / 0.7761 GB, free: 166.8 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01034/0.9677, allocations: 6.594 MB / 0.7825 GB, free: 165.6 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002177/0.9699, allocations: 0.662 MB / 0.7831 GB, free: 165.4 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006585/0.9705, allocations: 58.31 kB / 0.7832 GB, free: 165.4 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001778/0.9723, allocations: 144.3 kB / 0.7833 GB, free: 165.3 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004845/0.9728, allocations: 224.4 kB / 0.7836 GB, free: 165.3 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001942/0.973, allocations: 91.38 kB / 0.7836 GB, free: 165.3 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003418/0.9764, allocations: 2.016 MB / 0.7856 GB, free: 164.5 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.91e-07/0.9764, allocations: 0.5469 kB / 0.7856 GB, free: 164.5 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.004581/0.981, allocations: 1.183 MB / 0.7868 GB, free: 164.4 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 2 (smee.short.port_p.reference.gamma,mechanicalPowerSensor.relSpeedSensor.phi_rel) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (291): * Single equations (assignments): 290 * Array equations: 0 * Algorithm blocks: 0 * 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 {(8,26,62.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01088/0.9919, allocations: 7.275 MB / 0.7939 GB, free: 161 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.009061/1.001, allocations: 4.831 MB / 0.7986 GB, free: 159.2 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.235e-05/1.001, allocations: 2.312 kB / 0.7986 GB, free: 159.2 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004485/1.005, allocations: 2.118 MB / 0.8007 GB, free: 158.3 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003977/1.009, allocations: 0.6488 MB / 0.8013 GB, free: 158.1 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05948/1.069, allocations: 39.06 MB / 0.8394 GB, free: 130.9 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004709/1.074, allocations: 3.652 MB / 0.843 GB, free: 127.4 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003545/1.077, allocations: 1.334 MB / 0.8443 GB, free: 126.1 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003246/1.08, allocations: 2.26 MB / 0.8465 GB, free: 123.9 MB / 0.545 GB Notification: Performance of SimCode: time 1.663e-06/1.08, allocations: 0 / 0.8465 GB, free: 123.9 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1303/1.211, allocations: 91.57 MB / 0.9359 GB, free: 32.81 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.21/16.42, allocations: 10.73 kB / 0.9359 GB, free: 32.8 MB / 0.545 GB " [Timeout remaining time 643] (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip2_fmu --startTime=0 --stopTime=30 --stepSize=0.001 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip2.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 22.889255645219237] Failed to read output from testmodel.py, exit status != 0: 16.581961791962385 16.59456098 16.175123054 Calling exit ...