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.002044/0.002044, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.515/1.515, allocations: 230.6 MB / 252.7 MB, free: 8.281 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.001574/0.001574, allocations: 212.8 kB / 309.2 MB, free: 3.129 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.04271/0.04271, allocations: 8.918 MB / 374.6 MB, free: 1.879 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Synchronization3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization3",fmuType="me",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.002523/0.002523, allocations: 83.88 kB / 0.4892 GB, free: 7.297 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2786/0.2811, allocations: 55.6 MB / 0.5435 GB, free: 26.8 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization3): time 0.01461/0.2957, allocations: 16.58 MB / 0.5597 GB, free: 14.93 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.009452/0.3052, allocations: 5.588 MB / 0.5652 GB, free: 10.84 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002649/0.3078, allocations: 120.2 kB / 0.5653 GB, free: 10.8 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002869/0.3107, allocations: 1.273 MB / 0.5665 GB, free: 10.14 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.004184/0.3149, allocations: 1.602 MB / 0.5681 GB, free: 9.078 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002368/0.3172, allocations: 1.043 MB / 0.5691 GB, free: 8.418 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005549/0.3228, allocations: 4.75 MB / 0.5738 GB, free: 5.949 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00282/0.3256, allocations: 1.998 MB / 0.5757 GB, free: 4.855 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003183/0.3288, allocations: 2.169 MB / 0.5778 GB, free: 3.785 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004268/0.3331, allocations: 2.599 MB / 0.5804 GB, free: 2.52 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001266/0.3343, allocations: 0.5755 MB / 0.5809 GB, free: 2.516 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002274/0.3366, allocations: 0.8054 MB / 0.5817 GB, free: 2.434 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001111/0.3377, allocations: 1.306 MB / 0.583 GB, free: 1.586 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0035/0.3412, allocations: 2.452 MB / 0.5854 GB, free: 15.86 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01105/0.3523, allocations: 7.571 MB / 0.5928 GB, free: 10.15 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.204e-06/0.3523, allocations: 1.062 kB / 0.5928 GB, free: 10.15 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.3523, allocations: 0 / 0.5928 GB, free: 10.15 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.000242/0.3525, allocations: 0 / 0.5928 GB, free: 10.15 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.01545/0.368, allocations: 5.058 MB / 0.5977 GB, free: 5.422 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.478e-05/0.368, allocations: 8.031 kB / 0.5977 GB, free: 5.414 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001144/0.3692, allocations: 0.5492 MB / 0.5983 GB, free: 4.855 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005536/0.3747, allocations: 0.9819 MB / 0.5992 GB, free: 3.871 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006966/0.3817, allocations: 2.81 MB / 0.602 GB, free: 1.02 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002534/0.3819, allocations: 279.8 kB / 0.6022 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00088/0.3828, allocations: 371.9 kB / 0.6026 GB, free: 392 kB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009805/0.3926, allocations: 4.784 MB / 0.6073 GB, free: 11.55 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.963e-05/0.3927, allocations: 3.953 kB / 0.6073 GB, free: 11.55 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003675/0.393, allocations: 152 kB / 0.6074 GB, free: 11.4 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001596/0.3932, allocations: 155.3 kB / 0.6076 GB, free: 11.25 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007739/0.4009, allocations: 4.054 MB / 0.6115 GB, free: 7.191 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02849/0.4294, allocations: 15.14 MB / 0.6263 GB, free: 7.625 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005476/0.4349, allocations: 2.748 MB / 0.629 GB, free: 4.996 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003665/0.4386, allocations: 1.811 MB / 0.6308 GB, free: 3.188 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008712/0.4473, allocations: 4.083 MB / 0.6347 GB, free: 15.06 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.791e-05/0.4473, allocations: 43.88 kB / 0.6348 GB, free: 15.01 MB / 446.1 MB Notification: Performance of pre-optimization done (n=137): time 3.145e-06/0.4473, allocations: 4 kB / 0.6348 GB, free: 15.01 MB / 446.1 MB Notification: Performance of matching and sorting (n=159): time 0.01471/0.4621, allocations: 6.234 MB / 0.6409 GB, free: 8.738 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.215e-05/0.4621, allocations: 64.72 kB / 0.6409 GB, free: 8.66 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003459/0.4656, allocations: 2.216 MB / 0.6431 GB, free: 6.414 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001602/0.4657, allocations: 49.7 kB / 0.6432 GB, free: 6.359 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001523/0.4672, allocations: 1.799 MB / 0.6449 GB, free: 4.543 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005561/0.4678, allocations: 0.5733 MB / 0.6455 GB, free: 3.965 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006529/0.4685, allocations: 416 kB / 0.6459 GB, free: 3.551 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001336/0.4686, allocations: 305.1 kB / 0.6462 GB, free: 3.25 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001509/0.4701, allocations: 0.8359 MB / 0.647 GB, free: 2.41 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002108/0.4722, allocations: 1.601 MB / 0.6485 GB, free: 468 kB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003997/0.4762, allocations: 2.62 MB / 0.6511 GB, free: 13.49 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-05/0.4762, allocations: 4 kB / 0.6511 GB, free: 13.49 MB / 462.1 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.005809/0.482, allocations: 3.049 MB / 0.6541 GB, free: 10.42 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.578e-05/0.4821, allocations: 18.34 kB / 0.6541 GB, free: 10.41 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.603e-05/0.4821, allocations: 27.98 kB / 0.6541 GB, free: 10.38 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009988/0.4831, allocations: 351 kB / 0.6545 GB, free: 10.03 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001928/0.485, allocations: 0.4914 MB / 0.6549 GB, free: 9.535 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006143/0.4912, allocations: 5.074 MB / 0.6599 GB, free: 4.234 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002287/0.4935, allocations: 112 kB / 0.66 GB, free: 4.125 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002109/0.4937, allocations: 99.98 kB / 0.6601 GB, free: 4.027 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 111 * 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 (261): * Single equations (assignments): 258 * 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.002378/0.4961, allocations: 1.133 MB / 0.6612 GB, free: 2.883 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004785/0.4965, allocations: 254.4 kB / 0.6614 GB, free: 2.633 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004416/0.501, allocations: 2.317 MB / 0.6637 GB, free: 296 kB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.621e-05/0.501, allocations: 16 kB / 0.6637 GB, free: 280 kB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.929e-06/0.501, allocations: 4 kB / 0.6637 GB, free: 276 kB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.566e-05/0.501, allocations: 11.97 kB / 0.6637 GB, free: 264 kB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01056/0.5116, allocations: 5.653 MB / 0.6693 GB, free: 10.52 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.703e-06/0.5116, allocations: 0 / 0.6693 GB, free: 10.52 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001301/0.5129, allocations: 267.8 kB / 0.6695 GB, free: 10.25 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001079/0.5139, allocations: 370.7 kB / 0.6699 GB, free: 9.883 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001218/0.5141, allocations: 39.98 kB / 0.6699 GB, free: 9.844 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008282/0.5223, allocations: 7.097 MB / 0.6768 GB, free: 2.406 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.095e-06/0.5224, allocations: 0 / 0.6768 GB, free: 2.406 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006371/0.5287, allocations: 3.449 MB / 0.6802 GB, free: 14.91 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001462/0.5302, allocations: 446.3 kB / 0.6806 GB, free: 14.48 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003649/0.5305, allocations: 32 kB / 0.6807 GB, free: 14.45 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001085/0.5316, allocations: 59.95 kB / 0.6807 GB, free: 14.39 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002857/0.5319, allocations: 125 kB / 0.6808 GB, free: 14.26 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001024/0.532, allocations: 47.98 kB / 0.6809 GB, free: 14.21 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.00243/0.5345, allocations: 1.488 MB / 0.6823 GB, free: 12.71 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5345, allocations: 0 / 0.6823 GB, free: 12.71 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002454/0.5369, allocations: 0.664 MB / 0.683 GB, free: 12.05 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.006329/0.5432, allocations: 4.047 MB / 0.6869 GB, free: 7.941 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.004257/0.5475, allocations: 2.346 MB / 0.6892 GB, free: 5.57 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.017e-06/0.5475, allocations: 0 / 0.6892 GB, free: 5.57 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002356/0.5499, allocations: 1.374 MB / 0.6906 GB, free: 4.16 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003046/0.5529, allocations: 0.5791 MB / 0.6911 GB, free: 3.586 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2619/0.8148, allocations: 23.82 MB / 0.7144 GB, free: 114.4 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002192/0.817, allocations: 2.52 MB / 0.7169 GB, free: 113.3 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001912/0.8189, allocations: 0.516 MB / 0.7174 GB, free: 113.3 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00155/0.8204, allocations: 1.368 MB / 0.7187 GB, free: 112.1 MB / 494.1 MB Notification: Performance of SimCode: time 8.71e-07/0.8204, allocations: 2.734 kB / 0.7187 GB, free: 112.1 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1073/0.9278, allocations: 60.75 MB / 0.778 GB, free: 65.07 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.66/17.59, allocations: 7.109 kB / 0.778 GB, free: 65.07 MB / 494.1 MB " [Timeout remaining time 642] (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 sys.exit(0), Time elapsed: 20.758267469936982] Failed to read output from testmodel.py, exit status != 0: 17.738423032918945 17.756984813 17.401413137 Calling exit ...