Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2.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.001571/0.001571, allocations: 114.8 kB / 17.16 MB, free: 5.895 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.406/1.406, allocations: 230.6 MB / 250.5 MB, free: 9.395 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.001565/0.001565, allocations: 201.8 kB / 306.7 MB, free: 4.352 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.0416/0.0416, allocations: 8.905 MB / 371.7 MB, free: 3.488 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_ShortCircuit2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_ShortCircuit2",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_ShortCircuit2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_ShortCircuit2",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.002403/0.002403, allocations: 79.89 kB / 496.5 MB, free: 9.812 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2576/0.26, allocations: 55.57 MB / 0.5391 GB, free: 26.63 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_ShortCircuit2): time 0.0128/0.2728, allocations: 16.63 MB / 0.5554 GB, free: 14.71 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.009476/0.2823, allocations: 5.599 MB / 0.5608 GB, free: 10.6 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003258/0.2856, allocations: 115.7 kB / 0.5609 GB, free: 10.56 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003669/0.2892, allocations: 1.278 MB / 0.5622 GB, free: 9.898 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/SynchronousMachines/Templates/SMEE_ShortCircuit.mo:18:3-19:30:writable] Warning: Conditional component 'ir' is used in a non-connect context. Notification: Performance of NFTyping.typeBindings: time 0.005264/0.2945, allocations: 1.556 MB / 0.5637 GB, free: 8.863 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00264/0.2971, allocations: 1.026 MB / 0.5647 GB, free: 8.215 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005846/0.303, allocations: 4.648 MB / 0.5693 GB, free: 5.781 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003454/0.3064, allocations: 2.427 MB / 0.5716 GB, free: 4.625 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003688/0.3101, allocations: 2.119 MB / 0.5737 GB, free: 3.578 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004433/0.3146, allocations: 2.482 MB / 0.5761 GB, free: 2.359 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001536/0.3161, allocations: 0.5645 MB / 0.5767 GB, free: 2.355 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003078/0.3192, allocations: 0.788 MB / 0.5774 GB, free: 2.277 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001957/0.3211, allocations: 1.248 MB / 0.5787 GB, free: 1.453 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004319/0.3254, allocations: 2.384 MB / 0.581 GB, free: 15.86 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0113/0.3367, allocations: 7.373 MB / 0.5882 GB, free: 10.7 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.966e-06/0.3368, allocations: 7.938 kB / 0.5882 GB, free: 10.69 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.3368, allocations: 0 / 0.5882 GB, free: 10.69 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002733/0.337, allocations: 5.125 kB / 0.5882 GB, free: 10.68 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 962 * Number of variables: 962 Notification: Performance of Generate backend data structure: time 0.01708/0.3541, allocations: 4.958 MB / 0.593 GB, free: 6.734 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.156e-05/0.3542, allocations: 12.02 kB / 0.5931 GB, free: 6.723 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001474/0.3543, allocations: 110.1 kB / 0.5932 GB, free: 6.613 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001465/0.3558, allocations: 0.5491 MB / 0.5937 GB, free: 6.055 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005929/0.3617, allocations: 0.9468 MB / 0.5946 GB, free: 5.105 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008017/0.3697, allocations: 2.774 MB / 0.5973 GB, free: 2.277 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004372/0.3701, allocations: 275.6 kB / 0.5976 GB, free: 2.008 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001597/0.3717, allocations: 371.9 kB / 0.5979 GB, free: 1.645 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01169/0.3834, allocations: 4.692 MB / 0.6025 GB, free: 12.9 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.297e-05/0.3835, allocations: 7.922 kB / 0.6025 GB, free: 12.89 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005404/0.3841, allocations: 152 kB / 0.6027 GB, free: 12.75 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001599/0.3842, allocations: 151.3 kB / 0.6028 GB, free: 12.6 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00745/0.3917, allocations: 3.905 MB / 0.6066 GB, free: 8.688 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02462/0.4163, allocations: 15.48 MB / 0.6218 GB, free: 8.727 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00696/0.4233, allocations: 6.296 MB / 0.6279 GB, free: 1.617 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002846/0.4261, allocations: 1.374 MB / 0.6292 GB, free: 252 kB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008689/0.4348, allocations: 4.955 MB / 0.6341 GB, free: 10.94 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.653e-05/0.4349, allocations: 43.88 kB / 0.6341 GB, free: 10.89 MB / 446.1 MB Notification: Performance of pre-optimization done (n=127): time 2.935e-06/0.4349, allocations: 0 / 0.6341 GB, free: 10.89 MB / 446.1 MB Notification: Performance of matching and sorting (n=159): time 0.01339/0.4482, allocations: 6.097 MB / 0.6401 GB, free: 4.715 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.403e-05/0.4483, allocations: 68.72 kB / 0.6401 GB, free: 4.637 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00346/0.4518, allocations: 2.09 MB / 0.6422 GB, free: 2.512 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001436/0.4519, allocations: 57.7 kB / 0.6422 GB, free: 2.449 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001339/0.4532, allocations: 1.751 MB / 0.644 GB, free: 0.6797 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005409/0.4538, allocations: 0.5732 MB / 0.6445 GB, free: 104 kB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007042/0.4545, allocations: 416.2 kB / 0.6449 GB, free: 15.68 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001214/0.4546, allocations: 305.1 kB / 0.6452 GB, free: 15.38 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001369/0.456, allocations: 0.7852 MB / 0.646 GB, free: 14.59 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001963/0.4579, allocations: 1.544 MB / 0.6475 GB, free: 12.69 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01516/0.4731, allocations: 4.942 MB / 0.6523 GB, free: 7.379 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.008e-05/0.4731, allocations: 8 kB / 0.6523 GB, free: 7.371 MB / 462.1 MB Notification: Performance of matching and sorting (n=286) (initialization): time 0.005199/0.4783, allocations: 2.889 MB / 0.6551 GB, free: 4.469 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.127e-05/0.4784, allocations: 16 kB / 0.6551 GB, free: 4.453 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.559e-05/0.4784, allocations: 24 kB / 0.6552 GB, free: 4.43 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009762/0.4794, allocations: 360.4 kB / 0.6555 GB, free: 4.074 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00174/0.4811, allocations: 495.2 kB / 0.656 GB, free: 3.59 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005474/0.4866, allocations: 4.107 MB / 0.66 GB, free: 15.35 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001828/0.4884, allocations: 95.89 kB / 0.6601 GB, free: 15.26 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002354/0.4886, allocations: 103.9 kB / 0.6602 GB, free: 15.16 MB / 478.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: smee.is[1] = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 112 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (259): * Single equations (assignments): 257 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,23,68.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002023/0.4907, allocations: 1.098 MB / 0.6613 GB, free: 14.05 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005369/0.4912, allocations: 238.5 kB / 0.6615 GB, free: 13.81 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003917/0.4951, allocations: 1.986 MB / 0.6634 GB, free: 11.81 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.702e-05/0.4951, allocations: 16 kB / 0.6634 GB, free: 11.8 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.084e-05/0.4952, allocations: 4 kB / 0.6634 GB, free: 11.79 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.555e-05/0.4952, allocations: 7.969 kB / 0.6635 GB, free: 11.79 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01022/0.5054, allocations: 5.472 MB / 0.6688 GB, free: 6.184 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.527e-06/0.5054, allocations: 7.938 kB / 0.6688 GB, free: 6.176 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001175/0.5066, allocations: 275.9 kB / 0.6691 GB, free: 5.906 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008352/0.5074, allocations: 284.6 kB / 0.6693 GB, free: 5.625 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001296/0.5075, allocations: 35.98 kB / 0.6694 GB, free: 5.59 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00528/0.5128, allocations: 3.838 MB / 0.6731 GB, free: 1.613 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.5128, allocations: 4 kB / 0.6731 GB, free: 1.609 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005074/0.5179, allocations: 2.97 MB / 0.676 GB, free: 14.58 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001119/0.519, allocations: 483.5 kB / 0.6765 GB, free: 14.09 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004686/0.5195, allocations: 35.94 kB / 0.6765 GB, free: 14.05 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001198/0.5207, allocations: 71.89 kB / 0.6766 GB, free: 13.98 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000242/0.5209, allocations: 105.1 kB / 0.6767 GB, free: 13.88 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001122/0.521, allocations: 47.98 kB / 0.6767 GB, free: 13.83 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002512/0.5235, allocations: 1.403 MB / 0.6781 GB, free: 12.41 MB / 494.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5235, allocations: 0 / 0.6781 GB, free: 12.41 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002608/0.5262, allocations: 0.6484 MB / 0.6787 GB, free: 11.76 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 5 ($outputAlias_ie,smee.phiMechanical,smee.is[2],smee.stator.core.Phi.re,smee.stator.core.Phi.im) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (135): * Single equations (assignments): 134 * 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 {(3,22,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005744/0.5319, allocations: 3.587 MB / 0.6822 GB, free: 8.113 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.004419/0.5363, allocations: 2.211 MB / 0.6844 GB, free: 5.875 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.102e-06/0.5363, allocations: 4.125 kB / 0.6844 GB, free: 5.871 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002344/0.5387, allocations: 1.036 MB / 0.6854 GB, free: 4.824 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003691/0.5424, allocations: 0.5833 MB / 0.686 GB, free: 4.242 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2175/0.7599, allocations: 22.22 MB / 0.7077 GB, free: 136.3 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001918/0.7618, allocations: 2.45 MB / 0.7101 GB, free: 135.5 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001452/0.7632, allocations: 0.4958 MB / 0.7106 GB, free: 135.5 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001341/0.7646, allocations: 1.355 MB / 0.7119 GB, free: 135.3 MB / 0.4981 GB Notification: Performance of SimCode: time 9.12e-07/0.7646, allocations: 3.531 kB / 0.7119 GB, free: 135.3 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08701/0.8516, allocations: 57.3 MB / 0.7679 GB, free: 102.9 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.63/15.48, allocations: 8 kB / 0.7679 GB, free: 102.8 MB / 0.4981 GB " [Timeout remaining time 644] (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_ShortCircuit2_fmu --startTime=0 --stopTime=0.5 --stepSize=0.0001 --timeout=50 --tolerance=1e-08 HanserModelica_HanserModelica_SynchronousMachines_SMEE_ShortCircuit2.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 18.1212521349662] Failed to read output from testmodel.py, exit status != 0: 15.65347851900151 15.663170758 15.32390922 Calling exit ...