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.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.001583/0.001583, allocations: 113.8 kB / 19.73 MB, free: 2.242 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.452/1.452, 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.001642/0.001642, allocations: 215.3 kB / 310 MB, free: 3.012 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.04141/0.04141, allocations: 8.911 MB / 375.4 MB, free: 6.805 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_VCurve2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve2",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_VCurve2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve2",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.002428/0.002428, allocations: 83.88 kB / 0.49 GB, free: 44.88 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08341/0.08584, allocations: 55.61 MB / 0.5443 GB, free: 5.172 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve2): time 0.2434/0.3293, allocations: 25.67 MB / 0.5694 GB, free: 9.457 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01479/0.344, allocations: 8.08 MB / 0.5773 GB, free: 9.133 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005557/0.3496, allocations: 204.9 kB / 0.5775 GB, free: 9.07 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0175/0.3671, allocations: 7.747 MB / 0.585 GB, free: 7.039 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01008/0.3772, allocations: 3.174 MB / 0.5881 GB, free: 5.547 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00698/0.3842, allocations: 2.101 MB / 0.5902 GB, free: 4.238 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01414/0.3983, allocations: 9.414 MB / 0.5994 GB, free: 15.42 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02333/0.4216, allocations: 11.36 MB / 0.6105 GB, free: 7.969 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009888/0.4315, allocations: 4.878 MB / 0.6152 GB, free: 5.113 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01214/0.4436, allocations: 5.368 MB / 0.6205 GB, free: 1.035 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004026/0.4477, allocations: 1.356 MB / 0.6218 GB, free: 15.68 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006144/0.4538, allocations: 1.742 MB / 0.6235 GB, free: 13.94 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005209/0.459, allocations: 2.681 MB / 0.6261 GB, free: 11.25 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01087/0.4699, allocations: 5.09 MB / 0.6311 GB, free: 6.141 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02747/0.4974, allocations: 18.23 MB / 0.6489 GB, free: 3.855 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.4974, allocations: 0 / 0.6489 GB, free: 3.855 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.245e-06/0.4974, allocations: 0 / 0.6489 GB, free: 3.855 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0005254/0.4979, allocations: 0 / 0.6489 GB, free: 3.855 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.03962/0.5375, allocations: 10.88 MB / 0.6595 GB, free: 8.887 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.074e-05/0.5376, allocations: 19.98 kB / 0.6595 GB, free: 8.867 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0003208/0.5379, allocations: 244 kB / 0.6598 GB, free: 8.629 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004578/0.5425, allocations: 1.268 MB / 0.661 GB, free: 7.352 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03322/0.5757, allocations: 5.672 MB / 0.6666 GB, free: 1.668 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01311/0.5888, allocations: 5.848 MB / 0.6723 GB, free: 11.75 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006272/0.5894, allocations: 0.5819 MB / 0.6728 GB, free: 11.18 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0031/0.5925, allocations: 0.7655 MB / 0.6736 GB, free: 10.41 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03414/0.6267, allocations: 12.82 MB / 0.6861 GB, free: 13.54 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004412/0.6271, allocations: 23.83 kB / 0.6861 GB, free: 13.51 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003457/0.6306, allocations: 324 kB / 0.6864 GB, free: 13.2 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007058/0.6313, allocations: 0.4929 MB / 0.6869 GB, free: 12.7 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03178/0.6631, allocations: 12.32 MB / 0.6989 GB, free: 372 kB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08754/0.7506, allocations: 41.45 MB / 0.7394 GB, free: 5.93 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01945/0.77, allocations: 9.025 MB / 0.7482 GB, free: 13.88 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005088/0.7751, allocations: 2.742 MB / 0.7509 GB, free: 11.14 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004545/0.7756, allocations: 134.8 kB / 0.751 GB, free: 11.01 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004592/0.7802, allocations: 2.6 MB / 0.7536 GB, free: 8.34 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=399): time 7.634e-06/0.7802, allocations: 0 / 0.7536 GB, free: 8.34 MB / 0.5294 GB Notification: Performance of matching and sorting (n=482): time 0.465/1.245, allocations: 29.05 MB / 0.7819 GB, free: 164.3 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.03009/1.275, allocations: 18.62 MB / 0.8001 GB, free: 154.4 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006256/1.282, allocations: 3.534 MB / 0.8036 GB, free: 153.1 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0007738/1.282, allocations: 102.9 kB / 0.8037 GB, free: 153 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002254/1.285, allocations: 3.498 MB / 0.8071 GB, free: 150.9 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001752/1.286, allocations: 1.704 MB / 0.8088 GB, free: 149.8 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002472/1.289, allocations: 1.213 MB / 0.8099 GB, free: 149.2 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 4.521e-05/1.289, allocations: 301.1 kB / 0.8102 GB, free: 148.9 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005092/1.294, allocations: 3.01 MB / 0.8132 GB, free: 147.8 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007139/1.301, allocations: 5.014 MB / 0.8181 GB, free: 144.1 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01224/1.313, allocations: 8.499 MB / 0.8264 GB, free: 138.5 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001298/1.313, allocations: 15.81 kB / 0.8264 GB, free: 138.5 MB / 0.545 GB Notification: Performance of matching and sorting (n=807) (initialization): time 0.01947/1.333, allocations: 10.13 MB / 0.8363 GB, free: 134.4 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 8.349e-05/1.333, allocations: 60.45 kB / 0.8363 GB, free: 134.3 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.688e-05/1.333, allocations: 57.66 kB / 0.8364 GB, free: 134.3 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005405/1.339, allocations: 2.002 MB / 0.8383 GB, free: 133.4 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004978/1.344, allocations: 1.33 MB / 0.8396 GB, free: 133.1 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02392/1.367, allocations: 18.17 MB / 0.8574 GB, free: 118 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005321/1.373, allocations: 395.5 kB / 0.8578 GB, free: 117.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00109/1.374, allocations: 299.9 kB / 0.8581 GB, free: 117.4 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.005135/1.379, allocations: 2.981 MB / 0.861 GB, free: 114.4 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001183/1.38, allocations: 445.2 kB / 0.8614 GB, free: 114 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01395/1.394, allocations: 8.164 MB / 0.8694 GB, free: 105.8 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.073e-05/1.394, allocations: 50.19 kB / 0.8694 GB, free: 105.7 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.173e-05/1.394, allocations: 23.77 kB / 0.8694 GB, free: 105.7 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.54e-05/1.394, allocations: 23.91 kB / 0.8695 GB, free: 105.7 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03806/1.432, allocations: 22.24 MB / 0.8912 GB, free: 83.39 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.111e-05/1.432, allocations: 4 kB / 0.8912 GB, free: 83.39 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002986/1.435, allocations: 0.7224 MB / 0.8919 GB, free: 82.66 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005041/1.44, allocations: 1.938 MB / 0.8938 GB, free: 80.71 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006752/1.441, allocations: 99.97 kB / 0.8939 GB, free: 80.61 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02091/1.462, allocations: 16.88 MB / 0.9104 GB, free: 63.53 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02298/1.485, allocations: 16.91 MB / 0.9269 GB, free: 46.27 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0178/1.503, allocations: 11.33 MB / 0.9379 GB, free: 34.75 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003141/1.506, allocations: 0.989 MB / 0.9389 GB, free: 33.76 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001592/1.507, allocations: 88 kB / 0.939 GB, free: 33.67 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003363/1.511, allocations: 223.8 kB / 0.9392 GB, free: 33.45 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001354/1.512, allocations: 360.1 kB / 0.9395 GB, free: 33.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007203/1.513, allocations: 140 kB / 0.9397 GB, free: 32.96 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004758/1.518, allocations: 2.363 MB / 0.942 GB, free: 30.61 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.61e-07/1.518, allocations: 0 / 0.942 GB, free: 30.61 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008042/1.526, allocations: 1.707 MB / 0.9436 GB, free: 28.9 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.01985/1.546, allocations: 12.07 MB / 0.9554 GB, free: 16.64 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01346/1.559, allocations: 7.911 MB / 0.9632 GB, free: 8.668 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.606e-06/1.559, allocations: 4 kB / 0.9632 GB, free: 8.664 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.007656/1.567, allocations: 4.078 MB / 0.9671 GB, free: 4.555 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005454/1.572, allocations: 0.8462 MB / 0.968 GB, free: 3.73 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3114/1.884, allocations: 54.76 MB / 1.021 GB, free: 175.4 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008214/1.892, allocations: 5.207 MB / 1.027 GB, free: 174.5 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.005047/1.897, allocations: 1.632 MB / 1.028 GB, free: 174.5 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004672/1.902, allocations: 2.903 MB / 1.031 GB, free: 172.3 MB / 0.5763 GB Notification: Performance of SimCode: time 1.272e-06/1.902, allocations: 1.156 kB / 1.031 GB, free: 172.3 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1874/2.089, allocations: 140.7 MB / 1.168 GB, free: 54.03 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.88/26.97, allocations: 6.797 kB / 1.168 GB, free: 54.02 MB / 0.5763 GB " [Timeout remaining time 633] (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: 30.63889843202196] Failed to read output from testmodel.py, exit status != 0: 27.221813180018216 27.240950776 26.739054793 Calling exit ...