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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001738/0.001738, allocations: 108.2 kB / 16.46 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.426/1.426, allocations: 225.6 MB / 244.8 MB, free: 14.18 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001724/0.001724, allocations: 191.5 kB / 299.8 MB, free: 9.82 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.04041/0.04041, allocations: 8.934 MB / 363.6 MB, free: 10.16 MB / 302.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002382/0.002382, allocations: 86.22 kB / 486.1 MB, free: 11.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1106, allocations: 54.42 MB / 0.5279 GB, free: 1.164 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve2): time 0.0312/0.1418, allocations: 25.55 MB / 0.5528 GB, free: 7.5 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01758/0.1594, allocations: 7.971 MB / 0.5606 GB, free: 15.5 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005826/0.1652, allocations: 171.5 kB / 0.5608 GB, free: 15.33 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01949/0.1847, allocations: 7.716 MB / 0.5683 GB, free: 7.598 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01118/0.1959, allocations: 3.116 MB / 0.5713 GB, free: 4.469 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006768/0.2026, allocations: 2.018 MB / 0.5733 GB, free: 2.453 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01429/0.2169, allocations: 9.225 MB / 0.5823 GB, free: 9.199 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02239/0.2393, allocations: 12.82 MB / 0.5948 GB, free: 12.25 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007746/0.2471, allocations: 4.769 MB / 0.5995 GB, free: 7.469 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009128/0.2562, allocations: 5.303 MB / 0.6047 GB, free: 2.148 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003777/0.26, allocations: 1.355 MB / 0.606 GB, free: 0.793 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005327/0.2653, allocations: 1.722 MB / 0.6077 GB, free: 15.07 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00429/0.2696, allocations: 2.689 MB / 0.6103 GB, free: 12.38 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009518/0.2791, allocations: 5.082 MB / 0.6153 GB, free: 7.273 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02558/0.3047, allocations: 18.19 MB / 0.633 GB, free: 5.027 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.663e-06/0.3047, allocations: 4 kB / 0.633 GB, free: 5.023 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.3047, allocations: 0 / 0.633 GB, free: 5.023 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004618/0.3052, allocations: 0 / 0.633 GB, free: 5.023 MB / 446.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.427/0.7321, allocations: 10.94 MB / 0.6437 GB, free: 84.9 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.07e-05/0.7322, allocations: 8.594 kB / 0.6437 GB, free: 84.9 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003201/0.7354, allocations: 1.268 MB / 0.645 GB, free: 84.29 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03016/0.7655, allocations: 5.721 MB / 0.6505 GB, free: 81.99 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01518/0.7807, allocations: 5.814 MB / 0.6562 GB, free: 78.29 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000584/0.7813, allocations: 0.5819 MB / 0.6568 GB, free: 78.03 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003248/0.7846, allocations: 0.7593 MB / 0.6575 GB, free: 77.79 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03073/0.8153, allocations: 12.77 MB / 0.67 GB, free: 65.58 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005539/0.8158, allocations: 15.88 kB / 0.67 GB, free: 65.56 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0033/0.8191, allocations: 323.5 kB / 0.6703 GB, free: 65.26 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004888/0.8196, allocations: 0.4967 MB / 0.6708 GB, free: 64.76 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02692/0.8466, allocations: 12.26 MB / 0.6828 GB, free: 52.48 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06856/0.9151, allocations: 43.36 MB / 0.7251 GB, free: 8.41 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02489/0.94, allocations: 24.81 MB / 0.7493 GB, free: 12.71 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006183/0.9462, allocations: 2.716 MB / 0.752 GB, free: 9.992 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006651/0.9469, allocations: 246.4 kB / 0.7522 GB, free: 9.727 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00609/0.9529, allocations: 2.575 MB / 0.7547 GB, free: 7.082 MB / 478.1 MB Notification: Performance of pre-optimization done (n=391): time 9.418e-06/0.953, allocations: 0 / 0.7547 GB, free: 7.082 MB / 478.1 MB Notification: Performance of matching and sorting (n=397): time 0.04659/0.9995, allocations: 18.41 MB / 0.7727 GB, free: 4.633 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002317/0.9998, allocations: 359.5 kB / 0.7731 GB, free: 4.207 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007123/1.007, allocations: 3.527 MB / 0.7765 GB, free: 0.6758 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006456/1.008, allocations: 93.7 kB / 0.7766 GB, free: 0.5781 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003023/1.011, allocations: 3.495 MB / 0.78 GB, free: 13.05 MB / 0.4982 GB Notification: Performance of collectInitialBindings (initialization): time 0.001926/1.012, allocations: 1.422 MB / 0.7814 GB, free: 11.62 MB / 0.4982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002877/1.015, allocations: 1.081 MB / 0.7825 GB, free: 10.53 MB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 0.0001322/1.015, allocations: 301.1 kB / 0.7827 GB, free: 10.23 MB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004667/1.02, allocations: 2.552 MB / 0.7852 GB, free: 7.672 MB / 0.4982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006532/1.027, allocations: 4.511 MB / 0.7896 GB, free: 2.281 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.012/1.039, allocations: 7.451 MB / 0.7969 GB, free: 9.953 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.455e-05/1.039, allocations: 16 kB / 0.7969 GB, free: 9.938 MB / 0.5138 GB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01691/1.056, allocations: 8.267 MB / 0.805 GB, free: 1.648 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001052/1.056, allocations: 67.2 kB / 0.8051 GB, free: 1.578 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001009/1.056, allocations: 60 kB / 0.8051 GB, free: 1.52 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002906/1.059, allocations: 0.9983 MB / 0.8061 GB, free: 0.5195 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004779/1.064, allocations: 1.26 MB / 0.8073 GB, free: 15.26 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01446/1.078, allocations: 8.815 MB / 0.8159 GB, free: 6.289 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004255/1.082, allocations: 355.5 kB / 0.8163 GB, free: 5.941 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009359/1.083, allocations: 272 kB / 0.8165 GB, free: 5.676 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.006092/1.089, allocations: 2.895 MB / 0.8194 GB, free: 2.762 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001336/1.091, allocations: 413.3 kB / 0.8198 GB, free: 2.355 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01274/1.103, allocations: 6.152 MB / 0.8258 GB, free: 12.15 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.405e-05/1.103, allocations: 43.98 kB / 0.8258 GB, free: 12.11 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-05/1.103, allocations: 8 kB / 0.8258 GB, free: 12.1 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.439e-05/1.104, allocations: 23.92 kB / 0.8258 GB, free: 12.07 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03015/1.134, allocations: 14.62 MB / 0.8401 GB, free: 13.28 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.316e-05/1.134, allocations: 4 kB / 0.8401 GB, free: 13.28 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002933/1.137, allocations: 0.6832 MB / 0.8408 GB, free: 12.59 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002607/1.139, allocations: 0.8808 MB / 0.8417 GB, free: 11.71 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004341/1.14, allocations: 91.97 kB / 0.8417 GB, free: 11.62 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01274/1.152, allocations: 7.757 MB / 0.8493 GB, free: 3.715 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.893e-06/1.152, allocations: 4 kB / 0.8493 GB, free: 3.711 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2423/1.395, allocations: 8.762 MB / 0.8579 GB, free: 192.4 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00292/1.398, allocations: 0.9237 MB / 0.8588 GB, free: 192.1 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007967/1.398, allocations: 77.47 kB / 0.8589 GB, free: 192 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002154/1.401, allocations: 198.8 kB / 0.859 GB, free: 192 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005435/1.401, allocations: 274.7 kB / 0.8593 GB, free: 191.9 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002319/1.401, allocations: 115.9 kB / 0.8594 GB, free: 191.9 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.003355/1.405, allocations: 2.361 MB / 0.8617 GB, free: 191 MB / 0.5607 GB Notification: Performance of sort global known variables: time 2.3e-07/1.405, allocations: 3.281 kB / 0.8617 GB, free: 191 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.005532/1.41, allocations: 1.451 MB / 0.8631 GB, free: 190.8 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.012/1.422, allocations: 9.482 MB / 0.8724 GB, free: 186.5 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.009861/1.432, allocations: 6.209 MB / 0.8785 GB, free: 184.2 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 1.659e-05/1.432, allocations: 3.781 kB / 0.8785 GB, free: 184.2 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.005335/1.437, allocations: 2.878 MB / 0.8813 GB, free: 183 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004756/1.442, allocations: 0.8217 MB / 0.8821 GB, free: 182.7 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07/1.512, allocations: 48.2 MB / 0.9291 GB, free: 138.4 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006072/1.518, allocations: 5.008 MB / 0.934 GB, free: 133.4 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.004688/1.523, allocations: 1.586 MB / 0.9356 GB, free: 131.8 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004295/1.527, allocations: 2.753 MB / 0.9383 GB, free: 129.1 MB / 0.5607 GB Notification: Performance of SimCode: time 1.833e-06/1.527, allocations: 0 / 0.9383 GB, free: 129.1 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1581/1.685, allocations: 112.7 MB / 1.048 GB, free: 16.88 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.02/20.7, allocations: 19.33 kB / 1.048 GB, free: 16.86 MB / 0.5607 GB " [Timeout remaining time 639] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve2_fmu --startTime=0 --stopTime=200 --stepSize=0.1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve2.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 24.327178648672998] Failed to read output from testmodel.py, exit status != 0: 21.074931150767952 20.880399506 20.571636374 Calling exit ...