Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.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.0013/0.0013, allocations: 116.8 kB / 17.17 MB, free: 5.977 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.435/1.435, allocations: 230.6 MB / 250.5 MB, free: 9.215 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.001477/0.001477, allocations: 212.1 kB / 306.7 MB, free: 4.289 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.04113/0.04113, allocations: 8.91 MB / 371.7 MB, free: 3.418 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_Synchronization3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization3",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Synchronization3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization3",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.002422/0.002422, allocations: 91.86 kB / 496.5 MB, free: 9.781 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2733/0.2757, allocations: 55.56 MB / 0.5391 GB, free: 26.62 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization3): time 0.01215/0.2879, allocations: 16.53 MB / 0.5552 GB, free: 14.77 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.008267/0.2961, allocations: 5.587 MB / 0.5607 GB, free: 10.67 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002671/0.2988, allocations: 118.7 kB / 0.5608 GB, free: 10.62 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003167/0.302, allocations: 1.269 MB / 0.5621 GB, free: 9.965 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/SynchronousMachines/SMEE_Synchronization1.mo:18:3-19:30:writable] Warning: Conditional component 'ir' is used in a non-connect context. Notification: Performance of NFTyping.typeBindings: time 0.004525/0.3065, allocations: 1.588 MB / 0.5636 GB, free: 8.914 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002756/0.3092, allocations: 1.021 MB / 0.5646 GB, free: 8.27 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006128/0.3154, allocations: 4.746 MB / 0.5692 GB, free: 5.805 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004355/0.3197, allocations: 2.463 MB / 0.5716 GB, free: 4.641 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003494/0.3232, allocations: 2.171 MB / 0.5738 GB, free: 3.57 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004887/0.3281, allocations: 2.596 MB / 0.5763 GB, free: 2.309 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00183/0.3299, allocations: 0.5712 MB / 0.5769 GB, free: 2.309 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003241/0.3332, allocations: 0.8046 MB / 0.5776 GB, free: 2.227 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001984/0.3352, allocations: 1.302 MB / 0.5789 GB, free: 1.383 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005142/0.3403, allocations: 2.449 MB / 0.5813 GB, free: 15.75 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01149/0.3518, allocations: 7.57 MB / 0.5887 GB, free: 10.39 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/0.3518, allocations: 1.094 kB / 0.5887 GB, free: 10.39 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3518, allocations: 4 kB / 0.5887 GB, free: 10.39 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002072/0.352, allocations: 0 / 0.5887 GB, free: 10.39 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: 965 * Number of variables: 965 Notification: Performance of Generate backend data structure: time 0.01644/0.3684, allocations: 5.135 MB / 0.5937 GB, free: 6.004 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.524e-05/0.3685, allocations: 12.03 kB / 0.5937 GB, free: 5.992 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001539/0.3687, allocations: 106.2 kB / 0.5938 GB, free: 5.887 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001637/0.3703, allocations: 0.5531 MB / 0.5944 GB, free: 5.324 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006194/0.3765, allocations: 0.978 MB / 0.5953 GB, free: 4.344 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007291/0.3838, allocations: 2.889 MB / 0.5981 GB, free: 1.402 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003041/0.3841, allocations: 287.6 kB / 0.5984 GB, free: 1.121 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001168/0.3853, allocations: 364 kB / 0.5988 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01157/0.3968, allocations: 4.784 MB / 0.6034 GB, free: 11.94 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.241e-05/0.3969, allocations: 0 / 0.6034 GB, free: 11.94 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005617/0.3975, allocations: 152 kB / 0.6036 GB, free: 11.79 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001715/0.3976, allocations: 163.3 kB / 0.6037 GB, free: 11.63 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009908/0.4075, allocations: 4.054 MB / 0.6077 GB, free: 7.57 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02961/0.4372, allocations: 15.96 MB / 0.6233 GB, free: 7.047 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007597/0.4447, allocations: 7.037 MB / 0.6301 GB, free: 15.08 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00401/0.4488, allocations: 1.822 MB / 0.6319 GB, free: 13.26 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008647/0.4574, allocations: 4.722 MB / 0.6365 GB, free: 8.332 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.482e-05/0.4575, allocations: 47.88 kB / 0.6366 GB, free: 8.273 MB / 446.1 MB Notification: Performance of pre-optimization done (n=137): time 3.116e-06/0.4575, allocations: 0 / 0.6366 GB, free: 8.273 MB / 446.1 MB Notification: Performance of matching and sorting (n=159): time 0.01557/0.473, allocations: 6.694 MB / 0.6431 GB, free: 1.43 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.358e-05/0.4731, allocations: 68.72 kB / 0.6432 GB, free: 1.352 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003937/0.477, allocations: 2.217 MB / 0.6454 GB, free: 15.1 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002837/0.4773, allocations: 53.7 kB / 0.6454 GB, free: 15.04 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001609/0.4789, allocations: 1.799 MB / 0.6472 GB, free: 13.23 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000701/0.4796, allocations: 0.5733 MB / 0.6477 GB, free: 12.65 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007386/0.4804, allocations: 416.1 kB / 0.6481 GB, free: 12.23 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001446/0.4805, allocations: 305.1 kB / 0.6484 GB, free: 11.93 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001599/0.4821, allocations: 0.836 MB / 0.6492 GB, free: 11.09 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002323/0.4844, allocations: 1.614 MB / 0.6508 GB, free: 9.125 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004147/0.4886, allocations: 2.621 MB / 0.6534 GB, free: 6.16 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.211e-05/0.4886, allocations: 8 kB / 0.6534 GB, free: 6.152 MB / 462.1 MB Notification: Performance of matching and sorting (n=285) (initialization): time 0.00661/0.4952, allocations: 3.136 MB / 0.6564 GB, free: 2.98 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.217e-05/0.4952, allocations: 22.28 kB / 0.6565 GB, free: 2.961 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.31e-05/0.4953, allocations: 24 kB / 0.6565 GB, free: 2.938 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001019/0.4963, allocations: 350.9 kB / 0.6568 GB, free: 2.586 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001992/0.4983, allocations: 499.2 kB / 0.6573 GB, free: 2.098 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006254/0.5046, allocations: 5.288 MB / 0.6624 GB, free: 12.53 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0025/0.5071, allocations: 108 kB / 0.6626 GB, free: 12.43 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000356/0.5074, allocations: 104 kB / 0.6627 GB, free: 12.32 MB / 478.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.00232/0.5097, allocations: 1.134 MB / 0.6638 GB, free: 11.18 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006521/0.5104, allocations: 250.4 kB / 0.664 GB, free: 10.93 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004652/0.515, allocations: 2.468 MB / 0.6664 GB, free: 8.406 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.409e-05/0.515, allocations: 12 kB / 0.6664 GB, free: 8.395 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.027e-05/0.5151, allocations: 8 kB / 0.6664 GB, free: 8.387 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.751e-05/0.5151, allocations: 11.97 kB / 0.6664 GB, free: 8.375 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01058/0.5257, allocations: 5.821 MB / 0.6721 GB, free: 2.422 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.019e-05/0.5257, allocations: 4 kB / 0.6721 GB, free: 2.418 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001263/0.5269, allocations: 271.8 kB / 0.6724 GB, free: 2.152 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001032/0.528, allocations: 374.1 kB / 0.6727 GB, free: 1.781 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000124/0.5281, allocations: 39.98 kB / 0.6728 GB, free: 1.742 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008408/0.5365, allocations: 7.42 MB / 0.68 GB, free: 9.902 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.305e-06/0.5365, allocations: 4.031 kB / 0.68 GB, free: 9.898 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006794/0.5433, allocations: 3.595 MB / 0.6835 GB, free: 6.215 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001726/0.545, allocations: 0.4955 MB / 0.684 GB, free: 5.699 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005137/0.5455, allocations: 32 kB / 0.6841 GB, free: 5.668 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00121/0.5467, allocations: 59.95 kB / 0.6841 GB, free: 5.609 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003192/0.5471, allocations: 125.1 kB / 0.6842 GB, free: 5.488 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000106/0.5472, allocations: 43.98 kB / 0.6843 GB, free: 5.445 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002646/0.5498, allocations: 1.492 MB / 0.6857 GB, free: 3.938 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.5498, allocations: 0 / 0.6857 GB, free: 3.938 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002999/0.5528, allocations: 0.6678 MB / 0.6864 GB, free: 3.27 MB / 494.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.006628/0.5594, allocations: 4.214 MB / 0.6905 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.004425/0.5639, allocations: 2.417 MB / 0.6929 GB, free: 12.5 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 6.392e-06/0.5639, allocations: 0 / 0.6929 GB, free: 12.5 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002507/0.5664, allocations: 1.374 MB / 0.6942 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003268/0.5696, allocations: 0.5724 MB / 0.6948 GB, free: 10.52 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2577/0.8273, allocations: 23.96 MB / 0.7182 GB, free: 131.8 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002664/0.83, allocations: 2.528 MB / 0.7206 GB, free: 130.8 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001812/0.8318, allocations: 0.5138 MB / 0.7211 GB, free: 130.8 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001947/0.8338, allocations: 1.374 MB / 0.7225 GB, free: 129.6 MB / 0.4981 GB Notification: Performance of SimCode: time 1.253e-06/0.8338, allocations: 3.844 kB / 0.7225 GB, free: 129.6 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1019/0.9357, allocations: 59.11 MB / 0.7802 GB, free: 89.18 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.31/16.25, allocations: 3.094 kB / 0.7802 GB, free: 89.18 MB / 0.4981 GB " [Timeout remaining time 644] (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization3_fmu --startTime=0 --stopTime=0.3 --stepSize=0.000100033 --timeout=50 --tolerance=1e-08 HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization3.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 18.928690136992373] Failed to read output from testmodel.py, exit status != 0: 16.424628042965196 16.434843683 16.080659155 Calling exit ...