Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.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.001223/0.001223, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.421/1.421, allocations: 230.6 MB / 253.4 MB, free: 14.65 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.001472/0.001472, allocations: 207.5 kB / 310 MB, free: 3.039 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.0519/0.0519, allocations: 8.922 MB / 375.4 MB, free: 6.824 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_VCurve4,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve4",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_VCurve4,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve4",fmuType="cs",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.00241/0.00241, allocations: 79.88 kB / 0.49 GB, free: 44.87 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07702/0.07943, allocations: 55.62 MB / 0.5443 GB, free: 5.152 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve4): time 0.211/0.2905, allocations: 25.65 MB / 0.5694 GB, free: 9.008 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01283/0.3033, allocations: 8.082 MB / 0.5773 GB, free: 8.68 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00401/0.3073, allocations: 204.9 kB / 0.5775 GB, free: 8.617 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01541/0.3227, allocations: 7.747 MB / 0.585 GB, free: 6.887 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00867/0.3314, allocations: 3.183 MB / 0.5881 GB, free: 5.371 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004962/0.3364, allocations: 2.111 MB / 0.5902 GB, free: 4.059 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01136/0.3477, allocations: 9.404 MB / 0.5994 GB, free: 15.25 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02076/0.3685, allocations: 11.36 MB / 0.6105 GB, free: 7.828 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008234/0.3767, allocations: 4.873 MB / 0.6152 GB, free: 4.977 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009519/0.3862, allocations: 5.368 MB / 0.6205 GB, free: 0.875 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003613/0.3898, allocations: 1.352 MB / 0.6218 GB, free: 15.52 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005789/0.3956, allocations: 1.746 MB / 0.6235 GB, free: 13.78 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003942/0.3996, allocations: 2.677 MB / 0.6261 GB, free: 11.09 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009387/0.409, allocations: 5.097 MB / 0.6311 GB, free: 5.977 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02325/0.4322, allocations: 18.22 MB / 0.6489 GB, free: 3.695 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.4322, allocations: 0 / 0.6489 GB, free: 3.695 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.043e-06/0.4322, allocations: 0 / 0.6489 GB, free: 3.695 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003873/0.4326, allocations: 0 / 0.6489 GB, free: 3.695 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.03247/0.4651, allocations: 10.89 MB / 0.6595 GB, free: 8.715 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.042e-05/0.4651, allocations: 11.98 kB / 0.6595 GB, free: 8.703 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0002674/0.4654, allocations: 240 kB / 0.6598 GB, free: 8.469 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00404/0.4694, allocations: 1.272 MB / 0.661 GB, free: 7.188 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03242/0.5018, allocations: 5.66 MB / 0.6665 GB, free: 1.516 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01351/0.5154, allocations: 5.856 MB / 0.6723 GB, free: 11.6 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000591/0.5159, allocations: 0.5781 MB / 0.6728 GB, free: 11.02 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00291/0.5189, allocations: 0.7655 MB / 0.6736 GB, free: 10.25 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02976/0.5486, allocations: 12.82 MB / 0.6861 GB, free: 13.38 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003112/0.5489, allocations: 23.88 kB / 0.6861 GB, free: 13.36 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002119/0.5511, allocations: 324 kB / 0.6864 GB, free: 13.04 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006072/0.5517, allocations: 0.5006 MB / 0.6869 GB, free: 12.54 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02626/0.5779, allocations: 12.3 MB / 0.6989 GB, free: 216 kB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07445/0.6524, allocations: 41.46 MB / 0.7394 GB, free: 5.766 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01874/0.6711, allocations: 9.029 MB / 0.7482 GB, free: 13.71 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005126/0.6762, allocations: 2.746 MB / 0.7509 GB, free: 10.97 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004396/0.6767, allocations: 118.9 kB / 0.751 GB, free: 10.85 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004595/0.6813, allocations: 2.604 MB / 0.7536 GB, free: 8.18 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=399): time 5.971e-06/0.6813, allocations: 0 / 0.7536 GB, free: 8.18 MB / 0.5294 GB Notification: Performance of matching and sorting (n=482): time 0.4246/1.106, allocations: 29.05 MB / 0.7819 GB, free: 163.8 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02853/1.134, allocations: 18.63 MB / 0.8001 GB, free: 154.2 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005846/1.14, allocations: 3.531 MB / 0.8036 GB, free: 152.9 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0008099/1.141, allocations: 103.1 kB / 0.8037 GB, free: 152.8 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002304/1.143, allocations: 3.496 MB / 0.8071 GB, free: 150.7 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.00161/1.145, allocations: 1.711 MB / 0.8088 GB, free: 149.5 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002734/1.148, allocations: 1.211 MB / 0.8099 GB, free: 149 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 3.96e-05/1.148, allocations: 304.6 kB / 0.8102 GB, free: 148.7 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004822/1.153, allocations: 3 MB / 0.8132 GB, free: 147.5 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006128/1.159, allocations: 5.018 MB / 0.8181 GB, free: 143.9 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01007/1.169, allocations: 8.495 MB / 0.8264 GB, free: 138.3 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.791e-05/1.169, allocations: 23.75 kB / 0.8264 GB, free: 138.3 MB / 0.545 GB Notification: Performance of matching and sorting (n=807) (initialization): time 0.01764/1.187, allocations: 10.13 MB / 0.8363 GB, free: 134.1 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 7.57e-05/1.187, allocations: 57.08 kB / 0.8363 GB, free: 134.1 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.916e-05/1.187, allocations: 62.91 kB / 0.8364 GB, free: 134.1 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005147/1.192, allocations: 2.003 MB / 0.8383 GB, free: 133.2 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004796/1.197, allocations: 1.332 MB / 0.8396 GB, free: 132.9 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02164/1.218, allocations: 18.17 MB / 0.8574 GB, free: 117.7 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00479/1.223, allocations: 389.6 kB / 0.8578 GB, free: 117.3 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000877/1.224, allocations: 299.9 kB / 0.858 GB, free: 117 MB / 0.545 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 (693): * Single equations (assignments): 690 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(10,48,53.0%), (10,48,50.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004662/1.229, allocations: 2.987 MB / 0.861 GB, free: 114.1 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001137/1.23, allocations: 433.2 kB / 0.8614 GB, free: 113.7 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01278/1.243, allocations: 8.169 MB / 0.8694 GB, free: 105.5 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.26e-05/1.243, allocations: 51.94 kB / 0.8694 GB, free: 105.4 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.627e-05/1.243, allocations: 8 kB / 0.8694 GB, free: 105.4 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.89e-05/1.243, allocations: 27.91 kB / 0.8694 GB, free: 105.4 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03422/1.277, allocations: 22.25 MB / 0.8912 GB, free: 83.08 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.035e-05/1.277, allocations: 0 / 0.8912 GB, free: 83.08 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002763/1.28, allocations: 0.7334 MB / 0.8919 GB, free: 82.35 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004856/1.285, allocations: 1.934 MB / 0.8938 GB, free: 80.4 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006049/1.285, allocations: 111.9 kB / 0.8939 GB, free: 80.29 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01998/1.305, allocations: 16.87 MB / 0.9104 GB, free: 63.21 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02139/1.326, allocations: 16.91 MB / 0.9269 GB, free: 45.95 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01603/1.343, allocations: 11.32 MB / 0.9379 GB, free: 34.44 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002689/1.345, allocations: 0.9968 MB / 0.9389 GB, free: 33.44 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001009/1.346, allocations: 86.5 kB / 0.939 GB, free: 33.36 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002642/1.349, allocations: 223.8 kB / 0.9392 GB, free: 33.14 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000829/1.35, allocations: 364.1 kB / 0.9395 GB, free: 32.78 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003193/1.35, allocations: 136 kB / 0.9397 GB, free: 32.64 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.00306/1.353, allocations: 2.367 MB / 0.942 GB, free: 30.29 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.4e-07/1.353, allocations: 0 / 0.942 GB, free: 30.29 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006099/1.359, allocations: 1.703 MB / 0.9436 GB, free: 28.58 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 3 ($STATESET1.x,smee.rotorCage.port_p.reference.gamma,voltageSource.plug_p.reference.gamma) * 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 (396): * Single equations (assignments): 393 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,40,51.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(11,56)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01704/1.376, allocations: 12.07 MB / 0.9554 GB, free: 16.33 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01229/1.388, allocations: 7.91 MB / 0.9632 GB, free: 8.352 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.055e-06/1.389, allocations: 0 / 0.9632 GB, free: 8.352 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.007009/1.396, allocations: 4.079 MB / 0.9671 GB, free: 4.242 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004402/1.4, allocations: 0.8473 MB / 0.968 GB, free: 3.414 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3017/1.702, allocations: 54.76 MB / 1.021 GB, free: 174.6 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007974/1.71, allocations: 5.208 MB / 1.027 GB, free: 173.7 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.004364/1.714, allocations: 1.637 MB / 1.028 GB, free: 173.6 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003968/1.718, allocations: 2.902 MB / 1.031 GB, free: 171.7 MB / 0.5763 GB Notification: Performance of SimCode: time 1.062e-06/1.718, allocations: 3.875 kB / 1.031 GB, free: 171.7 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1819/1.9, allocations: 140.7 MB / 1.168 GB, free: 53.07 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.81/26.71, allocations: 8.062 kB / 1.168 GB, free: 53.06 MB / 0.5763 GB " [Timeout remaining time 633] (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve4_fmu --startTime=0 --stopTime=200 --stepSize=0.1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve4.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 30.031609797966667] Failed to read output from testmodel.py, exit status != 0: 26.960658841999248 26.978197545 26.542900626 Calling exit ...