Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.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.002007/0.002007, allocations: 101.3 kB / 19.73 MB, free: 2.133 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.426/1.426, allocations: 230.6 MB / 253.5 MB, free: 14.29 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.001681/0.001681, allocations: 208.8 kB / 310 MB, free: 3.07 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.04175/0.04175, allocations: 8.92 MB / 375.4 MB, free: 6.59 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_Synchronization1,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization1",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Synchronization1,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization1",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.002421/0.002421, allocations: 79.89 kB / 0.4899 GB, free: 44.75 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08282/0.08524, allocations: 55.61 MB / 0.5442 GB, free: 5.043 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization1): time 0.01762/0.1029, allocations: 14.29 MB / 0.5582 GB, free: 6.688 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01124/0.1141, allocations: 5.263 MB / 0.5633 GB, free: 1.402 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00327/0.1174, allocations: 115.4 kB / 0.5634 GB, free: 1.289 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004189/0.1216, allocations: 1.208 MB / 0.5646 GB, free: 72 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2092/0.3307, allocations: 1.569 MB / 0.5661 GB, free: 9.316 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002755/0.3335, allocations: 1.013 MB / 0.5671 GB, free: 9.309 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005864/0.3393, allocations: 4.745 MB / 0.5718 GB, free: 9.305 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00465/0.344, allocations: 1.988 MB / 0.5737 GB, free: 9.062 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004447/0.3484, allocations: 2.183 MB / 0.5758 GB, free: 8.773 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005387/0.3538, allocations: 2.595 MB / 0.5784 GB, free: 8.348 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002092/0.3559, allocations: 0.5758 MB / 0.5789 GB, free: 8.348 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005367/0.3613, allocations: 0.7966 MB / 0.5797 GB, free: 8.34 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002765/0.3641, allocations: 1.302 MB / 0.581 GB, free: 7.602 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005236/0.3693, allocations: 1.949 MB / 0.5829 GB, free: 6.512 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01039/0.3797, allocations: 7.609 MB / 0.5903 GB, free: 3.586 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.673e-06/0.3797, allocations: 4.906 kB / 0.5903 GB, free: 3.582 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.3797, allocations: 0 / 0.5903 GB, free: 3.582 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002564/0.3799, allocations: 3.844 kB / 0.5903 GB, free: 3.582 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.0162/0.3961, allocations: 5.046 MB / 0.5953 GB, free: 236 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.299e-05/0.3962, allocations: 13.2 kB / 0.5953 GB, free: 232 kB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0002262/0.3964, allocations: 108.5 kB / 0.5954 GB, free: 212 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002279/0.3987, allocations: 0.5592 MB / 0.5959 GB, free: 15.81 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006929/0.4056, allocations: 0.9829 MB / 0.5969 GB, free: 15.34 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009946/0.4156, allocations: 2.81 MB / 0.5996 GB, free: 13.46 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005519/0.4161, allocations: 285.2 kB / 0.5999 GB, free: 13.33 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002141/0.4183, allocations: 370.5 kB / 0.6002 GB, free: 13.21 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01383/0.4321, allocations: 4.933 MB / 0.6051 GB, free: 10.21 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000151/0.4322, allocations: 8.078 kB / 0.6051 GB, free: 10.21 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001044/0.4333, allocations: 150.6 kB / 0.6052 GB, free: 10.09 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001652/0.4335, allocations: 158.1 kB / 0.6054 GB, free: 10.07 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009845/0.4433, allocations: 4.053 MB / 0.6093 GB, free: 7.93 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03337/0.4767, allocations: 13.83 MB / 0.6228 GB, free: 10.19 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006097/0.4828, allocations: 2.735 MB / 0.6255 GB, free: 7.613 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004464/0.4872, allocations: 1.804 MB / 0.6273 GB, free: 5.82 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01023/0.4975, allocations: 3.701 MB / 0.6309 GB, free: 2.125 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.292e-05/0.4975, allocations: 47.88 kB / 0.6309 GB, free: 2.07 MB / 414.1 MB Notification: Performance of pre-optimization done (n=137): time 3.987e-06/0.4975, allocations: 0 / 0.6309 GB, free: 2.07 MB / 414.1 MB Notification: Performance of matching and sorting (n=159): time 0.01609/0.5136, allocations: 6.243 MB / 0.637 GB, free: 11.8 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.536e-05/0.5137, allocations: 72.66 kB / 0.6371 GB, free: 11.71 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004872/0.5186, allocations: 2.221 MB / 0.6393 GB, free: 9.465 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002839/0.5188, allocations: 49.7 kB / 0.6393 GB, free: 9.41 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00157/0.5204, allocations: 1.796 MB / 0.6411 GB, free: 7.605 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007611/0.5212, allocations: 0.5801 MB / 0.6416 GB, free: 7.035 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009462/0.5221, allocations: 412.1 kB / 0.642 GB, free: 6.625 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001185/0.5222, allocations: 301.1 kB / 0.6423 GB, free: 6.328 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001583/0.5238, allocations: 0.8438 MB / 0.6431 GB, free: 5.48 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002253/0.5261, allocations: 1.641 MB / 0.6447 GB, free: 3.484 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004075/0.5301, allocations: 2.62 MB / 0.6473 GB, free: 0.5273 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.44e-05/0.5302, allocations: 8 kB / 0.6473 GB, free: 0.5195 MB / 430.1 MB Notification: Performance of matching and sorting (n=285) (initialization): time 0.006502/0.5367, allocations: 3.053 MB / 0.6503 GB, free: 13.45 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.329e-05/0.5367, allocations: 19.94 kB / 0.6503 GB, free: 13.43 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.644e-05/0.5368, allocations: 28 kB / 0.6503 GB, free: 13.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001001/0.5378, allocations: 340.8 kB / 0.6506 GB, free: 13.06 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002049/0.5398, allocations: 0.4953 MB / 0.6511 GB, free: 12.57 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006053/0.5459, allocations: 5.012 MB / 0.656 GB, free: 7.332 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002614/0.5485, allocations: 99.94 kB / 0.6561 GB, free: 7.234 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004807/0.549, allocations: 107.9 kB / 0.6562 GB, free: 7.129 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.00335/0.5523, allocations: 1.126 MB / 0.6573 GB, free: 5.992 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001099/0.5534, allocations: 258.9 kB / 0.6576 GB, free: 5.738 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00597/0.5594, allocations: 2.317 MB / 0.6598 GB, free: 3.398 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.222e-05/0.5594, allocations: 20 kB / 0.6598 GB, free: 3.379 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.535e-05/0.5594, allocations: 9.125 kB / 0.6599 GB, free: 3.371 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.763e-05/0.5594, allocations: 7.969 kB / 0.6599 GB, free: 3.363 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01163/0.5711, allocations: 5.291 MB / 0.665 GB, free: 14.03 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.705e-06/0.5711, allocations: 0 / 0.665 GB, free: 14.03 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001298/0.5724, allocations: 267.6 kB / 0.6653 GB, free: 13.77 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001015/0.5734, allocations: 374.5 kB / 0.6656 GB, free: 13.39 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001666/0.5736, allocations: 39.98 kB / 0.6657 GB, free: 13.35 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008042/0.5816, allocations: 7.016 MB / 0.6725 GB, free: 6.004 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.845e-06/0.5816, allocations: 8 kB / 0.6725 GB, free: 5.996 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006401/0.588, allocations: 3.452 MB / 0.6759 GB, free: 2.5 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001739/0.5897, allocations: 450.2 kB / 0.6763 GB, free: 2.059 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000432/0.5902, allocations: 32 kB / 0.6764 GB, free: 2.027 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001133/0.5913, allocations: 63.95 kB / 0.6764 GB, free: 1.965 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003397/0.5916, allocations: 121 kB / 0.6765 GB, free: 1.844 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001073/0.5918, allocations: 47.98 kB / 0.6766 GB, free: 1.797 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002654/0.5944, allocations: 1.492 MB / 0.6781 GB, free: 296 kB / 462.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5944, allocations: 0 / 0.6781 GB, free: 296 kB / 462.1 MB Notification: Performance of remove unused functions: time 0.00297/0.5974, allocations: 0.6564 MB / 0.6787 GB, free: 15.63 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.006796/0.6042, allocations: 4.071 MB / 0.6827 GB, free: 11.51 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004524/0.6087, allocations: 2.357 MB / 0.685 GB, free: 9.125 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.625e-06/0.6087, allocations: 0 / 0.685 GB, free: 9.125 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002488/0.6112, allocations: 1.366 MB / 0.6863 GB, free: 7.723 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003725/0.6149, allocations: 0.5867 MB / 0.6869 GB, free: 7.145 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04586/0.6608, allocations: 23.81 MB / 0.7101 GB, free: 14.26 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00276/0.6635, allocations: 1.983 MB / 0.7121 GB, free: 12.24 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.00188/0.6654, allocations: 0.5161 MB / 0.7126 GB, free: 11.72 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002147/0.6676, allocations: 1.37 MB / 0.7139 GB, free: 10.35 MB / 0.4981 GB Notification: Performance of SimCode: time 1.172e-06/0.6676, allocations: 3.938 kB / 0.7139 GB, free: 10.35 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3387/1.006, allocations: 62.13 MB / 0.7746 GB, free: 174.9 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.84/16.84, allocations: 6.938 kB / 0.7746 GB, free: 174.9 MB / 0.545 GB " [Timeout remaining time 643] (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization1_fmu --startTime=0 --stopTime=0.3 --stepSize=0.000100033 --timeout=50 --tolerance=1e-08 HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization1.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 20.15275481599383] Failed to read output from testmodel.py, exit status != 0: 17.04302815697156 17.056982527 16.673966958 Calling exit ...