Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.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.001345/0.001345, allocations: 97.31 kB / 19.73 MB, free: 2.117 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.413/1.413, allocations: 230.6 MB / 253.5 MB, free: 14.48 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.001527/0.001527, allocations: 209.4 kB / 310 MB, free: 3.051 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.05986/0.05986, allocations: 8.908 MB / 375.4 MB, free: 6.605 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_Synchronization2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization2",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Synchronization2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization2",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.002382/0.002382, allocations: 91.86 kB / 0.4899 GB, free: 44.72 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08381/0.08619, allocations: 55.62 MB / 0.5442 GB, free: 5.012 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization2): time 0.01756/0.1038, allocations: 14.31 MB / 0.5582 GB, free: 6.633 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01131/0.1151, allocations: 5.255 MB / 0.5633 GB, free: 1.355 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002815/0.1179, allocations: 115.4 kB / 0.5635 GB, free: 1.242 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004054/0.1219, allocations: 1.212 MB / 0.5646 GB, free: 20 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2011/0.323, allocations: 1.576 MB / 0.5662 GB, free: 9.871 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002599/0.3256, allocations: 1.002 MB / 0.5672 GB, free: 9.863 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005541/0.3312, allocations: 4.755 MB / 0.5718 GB, free: 9.859 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003237/0.3344, allocations: 1.991 MB / 0.5737 GB, free: 9.613 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003392/0.3378, allocations: 2.177 MB / 0.5759 GB, free: 9.328 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004562/0.3424, allocations: 2.593 MB / 0.5784 GB, free: 8.617 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001508/0.3439, allocations: 0.5717 MB / 0.579 GB, free: 8.617 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002728/0.3466, allocations: 0.7921 MB / 0.5797 GB, free: 8.555 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00154/0.3481, allocations: 1.307 MB / 0.581 GB, free: 7.754 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004426/0.3526, allocations: 1.953 MB / 0.5829 GB, free: 6.66 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00936/0.3619, allocations: 7.611 MB / 0.5904 GB, free: 3.719 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.592e-06/0.3619, allocations: 1.031 kB / 0.5904 GB, free: 3.719 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3619, allocations: 3.938 kB / 0.5904 GB, free: 3.715 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002098/0.3621, allocations: 0 / 0.5904 GB, free: 3.715 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 965 * Number of variables: 965 Notification: Performance of Generate backend data structure: time 0.01468/0.3768, allocations: 5.042 MB / 0.5953 GB, free: 376 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.78e-05/0.3769, allocations: 13.77 kB / 0.5953 GB, free: 372 kB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001773/0.377, allocations: 108.7 kB / 0.5954 GB, free: 352 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001444/0.3785, allocations: 0.5744 MB / 0.596 GB, free: 15.99 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006083/0.3846, allocations: 0.9826 MB / 0.5969 GB, free: 15.52 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007418/0.392, allocations: 2.811 MB / 0.5997 GB, free: 13.62 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003433/0.3923, allocations: 276.5 kB / 0.5999 GB, free: 13.5 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001207/0.3935, allocations: 370.8 kB / 0.6003 GB, free: 13.37 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009881/0.4034, allocations: 4.934 MB / 0.6051 GB, free: 10.38 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.498e-05/0.4035, allocations: 14.42 kB / 0.6051 GB, free: 10.36 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003903/0.4039, allocations: 145.7 kB / 0.6053 GB, free: 10.25 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000126/0.404, allocations: 157 kB / 0.6054 GB, free: 10.23 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007416/0.4114, allocations: 4.064 MB / 0.6094 GB, free: 8.082 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02702/0.4385, allocations: 13.81 MB / 0.6229 GB, free: 10.35 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005341/0.4438, allocations: 2.731 MB / 0.6255 GB, free: 7.773 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003628/0.4474, allocations: 1.818 MB / 0.6273 GB, free: 5.969 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008161/0.4556, allocations: 3.685 MB / 0.6309 GB, free: 2.289 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.852e-05/0.4556, allocations: 48.38 kB / 0.6309 GB, free: 2.234 MB / 414.1 MB Notification: Performance of pre-optimization done (n=137): time 4.208e-06/0.4556, allocations: 7.938 kB / 0.631 GB, free: 2.227 MB / 414.1 MB Notification: Performance of matching and sorting (n=159): time 0.01461/0.4702, allocations: 6.236 MB / 0.637 GB, free: 11.96 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.666e-05/0.4703, allocations: 72.72 kB / 0.6371 GB, free: 11.87 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003752/0.4741, allocations: 2.217 MB / 0.6393 GB, free: 9.625 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002485/0.4743, allocations: 57.64 kB / 0.6393 GB, free: 9.562 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001493/0.4758, allocations: 1.799 MB / 0.6411 GB, free: 7.758 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006056/0.4764, allocations: 0.5738 MB / 0.6416 GB, free: 7.191 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006753/0.4771, allocations: 412.1 kB / 0.642 GB, free: 6.781 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001185/0.4772, allocations: 305.1 kB / 0.6423 GB, free: 6.48 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00144/0.4786, allocations: 0.8399 MB / 0.6432 GB, free: 5.637 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002069/0.4807, allocations: 1.637 MB / 0.6448 GB, free: 3.645 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003753/0.4845, allocations: 2.624 MB / 0.6473 GB, free: 0.6836 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.067e-05/0.4845, allocations: 8 kB / 0.6473 GB, free: 0.6758 MB / 430.1 MB Notification: Performance of matching and sorting (n=285) (initialization): time 0.005582/0.4901, allocations: 3.058 MB / 0.6503 GB, free: 13.6 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.995e-05/0.4901, allocations: 16 kB / 0.6503 GB, free: 13.59 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.328e-05/0.4901, allocations: 24 kB / 0.6503 GB, free: 13.56 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009508/0.4911, allocations: 347 kB / 0.6507 GB, free: 13.21 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00184/0.4929, allocations: 0.4953 MB / 0.6512 GB, free: 12.72 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005694/0.4986, allocations: 5.017 MB / 0.6561 GB, free: 7.488 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002082/0.5007, allocations: 103.8 kB / 0.6562 GB, free: 7.387 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002347/0.5009, allocations: 104 kB / 0.6563 GB, free: 7.285 MB / 446.1 MB 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 (262): * Single equations (assignments): 259 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * 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): 2 systems {(2,13,100.0%), (1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002121/0.5031, allocations: 1.134 MB / 0.6574 GB, free: 6.141 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005339/0.5036, allocations: 258.3 kB / 0.6576 GB, free: 5.887 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004247/0.5078, allocations: 2.319 MB / 0.6599 GB, free: 3.543 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.669e-05/0.5079, allocations: 12 kB / 0.6599 GB, free: 3.531 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.071e-05/0.5079, allocations: 8 kB / 0.6599 GB, free: 3.523 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.59e-05/0.5079, allocations: 7.969 kB / 0.6599 GB, free: 3.516 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009903/0.5178, allocations: 5.292 MB / 0.6651 GB, free: 14.18 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.853e-06/0.5178, allocations: 4 kB / 0.6651 GB, free: 14.17 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001292/0.5191, allocations: 271.6 kB / 0.6653 GB, free: 13.91 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000997/0.5201, allocations: 371.6 kB / 0.6657 GB, free: 13.54 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001555/0.5202, allocations: 39.98 kB / 0.6657 GB, free: 13.5 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007668/0.5279, allocations: 7.019 MB / 0.6726 GB, free: 6.148 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.5279, allocations: 4.031 kB / 0.6726 GB, free: 6.145 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00607/0.534, allocations: 3.447 MB / 0.676 GB, free: 2.652 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001414/0.5354, allocations: 446.2 kB / 0.6764 GB, free: 2.215 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005935/0.536, allocations: 40 kB / 0.6764 GB, free: 2.176 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001362/0.5374, allocations: 64.08 kB / 0.6765 GB, free: 2.113 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003336/0.5377, allocations: 125 kB / 0.6766 GB, free: 1.988 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001106/0.5378, allocations: 43.98 kB / 0.6766 GB, free: 1.945 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002679/0.5405, allocations: 1.492 MB / 0.6781 GB, free: 448 kB / 462.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5405, allocations: 0 / 0.6781 GB, free: 448 kB / 462.1 MB Notification: Performance of remove unused functions: time 0.003161/0.5436, allocations: 0.6641 MB / 0.6787 GB, free: 15.77 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (smee.inertiaRotor.w,smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.stator.stray.Phi.re,smee.stator.stray.Phi.im,constantTorque.phi) * 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 (130): * Single equations (assignments): 127 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,12,100.0%), (1,8,100.0%), (1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.006611/0.5503, allocations: 4.068 MB / 0.6827 GB, free: 11.66 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004347/0.5546, allocations: 2.341 MB / 0.685 GB, free: 9.289 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 9.528e-06/0.5546, allocations: 4 kB / 0.685 GB, free: 9.285 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002447/0.5571, allocations: 1.359 MB / 0.6863 GB, free: 7.887 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003318/0.5604, allocations: 0.5932 MB / 0.6869 GB, free: 7.301 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04106/0.6014, allocations: 23.83 MB / 0.7102 GB, free: 14.4 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002616/0.604, allocations: 1.983 MB / 0.7121 GB, free: 12.38 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001796/0.6058, allocations: 0.5122 MB / 0.7126 GB, free: 11.87 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002145/0.608, allocations: 1.366 MB / 0.714 GB, free: 10.5 MB / 0.4981 GB Notification: Performance of SimCode: time 1.022e-06/0.608, allocations: 4 kB / 0.714 GB, free: 10.5 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3227/0.9306, allocations: 62.12 MB / 0.7746 GB, free: 175.1 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.99/16.92, allocations: 9.312 kB / 0.7746 GB, free: 175.1 MB / 0.545 GB " [Timeout remaining time 643] (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization2_fmu --startTime=0 --stopTime=0.3 --stepSize=0.000100033 --timeout=50 --tolerance=1e-08 HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization2.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 20.205286823911592] Failed to read output from testmodel.py, exit status != 0: 17.121726632933132 17.140713776 16.775526096 Calling exit ...