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.001404/0.001404, allocations: 119 kB / 17.17 MB, free: 5.906 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.434/1.434, allocations: 230.6 MB / 250.5 MB, free: 9.246 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.001757/0.001757, allocations: 208.2 kB / 306.7 MB, free: 4.309 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.04196/0.04196, allocations: 8.913 MB / 371.7 MB, free: 3.438 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_VCurve3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve3",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.002495/0.002495, allocations: 83.86 kB / 496.5 MB, free: 9.801 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2813/0.2838, allocations: 55.57 MB / 0.5391 GB, free: 26.64 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve3): time 0.01895/0.3027, allocations: 25.6 MB / 0.5641 GB, free: 8.184 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01532/0.318, allocations: 8.061 MB / 0.572 GB, free: 2.371 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006026/0.3241, allocations: 201.2 kB / 0.5722 GB, free: 2.312 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02015/0.3442, allocations: 7.741 MB / 0.5797 GB, free: 13.71 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01242/0.3566, allocations: 3.098 MB / 0.5828 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007414/0.364, allocations: 2.048 MB / 0.5848 GB, free: 10.3 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01471/0.3788, allocations: 9.314 MB / 0.5939 GB, free: 4.613 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02514/0.4039, allocations: 12.82 MB / 0.6064 GB, free: 9.039 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01017/0.4141, allocations: 4.851 MB / 0.6111 GB, free: 4.176 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0106/0.4247, allocations: 5.346 MB / 0.6163 GB, free: 14.81 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003926/0.4286, allocations: 1.352 MB / 0.6177 GB, free: 13.46 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005771/0.4344, allocations: 1.734 MB / 0.6193 GB, free: 11.73 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004305/0.4387, allocations: 2.689 MB / 0.622 GB, free: 9.031 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009088/0.4478, allocations: 5.086 MB / 0.6269 GB, free: 3.926 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02479/0.4726, allocations: 18.22 MB / 0.6447 GB, free: 1.645 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.114e-06/0.4726, allocations: 0 / 0.6447 GB, free: 1.645 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.4726, allocations: 0 / 0.6447 GB, free: 1.645 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005525/0.4731, allocations: 4 kB / 0.6447 GB, free: 1.641 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.03615/0.5093, allocations: 10.96 MB / 0.6554 GB, free: 6.57 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.026e-05/0.5093, allocations: 12.03 kB / 0.6555 GB, free: 6.559 MB / 462.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0002841/0.5096, allocations: 248 kB / 0.6557 GB, free: 6.316 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004482/0.5141, allocations: 1.264 MB / 0.6569 GB, free: 5.043 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03451/0.5486, allocations: 5.672 MB / 0.6625 GB, free: 15.36 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01285/0.5614, allocations: 5.83 MB / 0.6682 GB, free: 9.473 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006257/0.5621, allocations: 0.5858 MB / 0.6687 GB, free: 8.887 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002944/0.565, allocations: 0.7694 MB / 0.6695 GB, free: 8.117 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03235/0.5974, allocations: 12.81 MB / 0.682 GB, free: 11.25 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003809/0.5977, allocations: 23.84 kB / 0.682 GB, free: 11.23 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003207/0.6009, allocations: 320 kB / 0.6823 GB, free: 10.92 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006803/0.6016, allocations: 0.5046 MB / 0.6828 GB, free: 10.41 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4697/1.071, allocations: 12.3 MB / 0.6948 GB, free: 106.1 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06337/1.135, allocations: 45.21 MB / 0.739 GB, free: 78.56 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02138/1.156, allocations: 24.84 MB / 0.7632 GB, free: 54.87 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004603/1.161, allocations: 2.74 MB / 0.7659 GB, free: 53.45 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003669/1.161, allocations: 352.1 kB / 0.7662 GB, free: 53.12 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003259/1.164, allocations: 2.609 MB / 0.7688 GB, free: 51.5 MB / 494.1 MB Notification: Performance of pre-optimization done (n=399): time 5.641e-06/1.164, allocations: 0 / 0.7688 GB, free: 51.5 MB / 494.1 MB Notification: Performance of matching and sorting (n=482): time 0.05405/1.218, allocations: 29.29 MB / 0.7974 GB, free: 28.7 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02439/1.243, allocations: 18.93 MB / 0.8159 GB, free: 9.246 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004212/1.247, allocations: 3.532 MB / 0.8193 GB, free: 5.754 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007396/1.248, allocations: 101.7 kB / 0.8194 GB, free: 5.648 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001398/1.249, allocations: 3.495 MB / 0.8228 GB, free: 2.25 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001286/1.25, allocations: 1.71 MB / 0.8245 GB, free: 0.5625 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001825/1.252, allocations: 1.205 MB / 0.8257 GB, free: 15.35 MB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 0.000127/1.252, allocations: 313.1 kB / 0.826 GB, free: 15.04 MB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00493/1.257, allocations: 3.007 MB / 0.8289 GB, free: 12.03 MB / 0.4982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007383/1.265, allocations: 5.005 MB / 0.8338 GB, free: 6.141 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01357/1.278, allocations: 8.506 MB / 0.8421 GB, free: 12.71 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.403e-05/1.278, allocations: 16 kB / 0.8421 GB, free: 12.7 MB / 0.5138 GB Notification: Performance of matching and sorting (n=807) (initialization): time 0.02088/1.299, allocations: 10.13 MB / 0.852 GB, free: 2.469 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 8.467e-05/1.299, allocations: 53.7 kB / 0.8521 GB, free: 2.41 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.406e-05/1.299, allocations: 60 kB / 0.8521 GB, free: 2.352 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005863/1.305, allocations: 2.013 MB / 0.8541 GB, free: 344 kB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005315/1.311, allocations: 1.33 MB / 0.8554 GB, free: 15 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02868/1.339, allocations: 18.41 MB / 0.8734 GB, free: 12.33 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004772/1.344, allocations: 394.4 kB / 0.8737 GB, free: 11.95 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007448/1.345, allocations: 299.9 kB / 0.874 GB, free: 11.65 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.004882/1.35, allocations: 2.984 MB / 0.8769 GB, free: 8.648 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001075/1.351, allocations: 437.2 kB / 0.8774 GB, free: 8.219 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01604/1.367, allocations: 8.169 MB / 0.8853 GB, free: 4 kB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.135e-05/1.367, allocations: 48.05 kB / 0.8854 GB, free: 15.95 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.722e-05/1.367, allocations: 12 kB / 0.8854 GB, free: 15.94 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.282e-05/1.367, allocations: 27.86 kB / 0.8854 GB, free: 15.92 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04166/1.409, allocations: 22.59 MB / 0.9075 GB, free: 9.172 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.674e-05/1.409, allocations: 8.031 kB / 0.9075 GB, free: 9.164 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003393/1.412, allocations: 0.7255 MB / 0.9082 GB, free: 8.438 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005892/1.418, allocations: 1.935 MB / 0.9101 GB, free: 6.492 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006642/1.419, allocations: 99.97 kB / 0.9102 GB, free: 6.395 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2578/1.676, allocations: 17.08 MB / 0.9269 GB, free: 185.9 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02276/1.699, allocations: 17.21 MB / 0.9437 GB, free: 175.7 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01891/1.718, allocations: 11.33 MB / 0.9547 GB, free: 171 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002418/1.72, allocations: 1.05 MB / 0.9558 GB, free: 170.6 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007174/1.721, allocations: 90.11 kB / 0.9558 GB, free: 170.5 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002501/1.724, allocations: 225.5 kB / 0.9561 GB, free: 170.5 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008839/1.725, allocations: 343.2 kB / 0.9564 GB, free: 170.4 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002751/1.725, allocations: 134.7 kB / 0.9565 GB, free: 170.4 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.003265/1.728, allocations: 2.372 MB / 0.9588 GB, free: 169.5 MB / 0.5763 GB Notification: Performance of sort global known variables: time 1.71e-07/1.728, allocations: 0 / 0.9588 GB, free: 169.5 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.005822/1.734, allocations: 1.703 MB / 0.9605 GB, free: 169.3 MB / 0.5763 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.01563/1.75, allocations: 12.06 MB / 0.9723 GB, free: 163.9 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.0118/1.761, allocations: 7.928 MB / 0.98 GB, free: 160.1 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 9.648e-06/1.761, allocations: 4 kB / 0.98 GB, free: 160.1 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.007345/1.769, allocations: 4.068 MB / 0.984 GB, free: 156.6 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004197/1.773, allocations: 0.8423 MB / 0.9848 GB, free: 155.9 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08005/1.853, allocations: 54.66 MB / 1.038 GB, free: 100.5 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005203/1.858, allocations: 5.205 MB / 1.043 GB, free: 95.29 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.003916/1.862, allocations: 1.64 MB / 1.045 GB, free: 93.64 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003604/1.866, allocations: 2.901 MB / 1.048 GB, free: 90.74 MB / 0.5763 GB Notification: Performance of SimCode: time 1.372e-06/1.866, allocations: 0 / 1.048 GB, free: 90.74 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4112/2.277, allocations: 135 MB / 1.18 GB, free: 169 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.46/25.74, allocations: 6.688 kB / 1.18 GB, free: 169 MB / 0.5763 GB " [Timeout remaining time 634] (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: 28.74536388902925] Failed to read output from testmodel.py, exit status != 0: 25.96607268898515 25.982130472 25.505467821 Calling exit ...