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.001422/0.001422, 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.461/1.461, 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.001684/0.001684, allocations: 210 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.04143/0.04143, allocations: 8.915 MB / 374.6 MB, free: 1.883 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.002494/0.002494, allocations: 87.86 kB / 0.4892 GB, free: 7.297 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2821/0.2846, allocations: 55.6 MB / 0.5435 GB, free: 26.6 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization3): time 0.01332/0.2979, allocations: 16.57 MB / 0.5597 GB, free: 14.73 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.009012/0.307, allocations: 5.594 MB / 0.5652 GB, free: 10.64 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003277/0.3102, allocations: 114.9 kB / 0.5653 GB, free: 10.6 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004075/0.3143, allocations: 1.279 MB / 0.5666 GB, free: 9.934 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.005638/0.3199, allocations: 1.597 MB / 0.5681 GB, free: 8.879 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002859/0.3228, allocations: 1.044 MB / 0.5691 GB, free: 8.219 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006821/0.3296, allocations: 4.748 MB / 0.5738 GB, free: 5.75 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004148/0.3338, allocations: 1.99 MB / 0.5757 GB, free: 4.664 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004646/0.3384, allocations: 2.178 MB / 0.5778 GB, free: 3.586 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005895/0.3443, allocations: 2.595 MB / 0.5804 GB, free: 2.324 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002212/0.3465, allocations: 0.5708 MB / 0.5809 GB, free: 2.324 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003789/0.3503, allocations: 0.8069 MB / 0.5817 GB, free: 2.242 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002293/0.3526, allocations: 1.306 MB / 0.583 GB, free: 1.395 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006312/0.3589, allocations: 2.454 MB / 0.5854 GB, free: 15.74 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01246/0.3714, allocations: 7.571 MB / 0.5928 GB, free: 10.04 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.895e-06/0.3714, allocations: 0 / 0.5928 GB, free: 10.04 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.3714, allocations: 1.312 kB / 0.5928 GB, free: 10.04 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002686/0.3717, allocations: 3.938 kB / 0.5928 GB, free: 10.03 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.01703/0.3887, allocations: 5.051 MB / 0.5977 GB, free: 5.312 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.757e-05/0.3887, allocations: 8.031 kB / 0.5977 GB, free: 5.305 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001177/0.3899, allocations: 0.5609 MB / 0.5983 GB, free: 4.734 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005533/0.3955, allocations: 0.978 MB / 0.5992 GB, free: 3.754 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0072/0.4027, allocations: 2.81 MB / 0.602 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002392/0.4029, allocations: 275.8 kB / 0.6022 GB, free: 0.6328 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008478/0.4037, allocations: 375.9 kB / 0.6026 GB, free: 272 kB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009471/0.4132, allocations: 4.78 MB / 0.6073 GB, free: 11.44 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.358e-05/0.4133, allocations: 7.953 kB / 0.6073 GB, free: 11.43 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003519/0.4136, allocations: 151.9 kB / 0.6074 GB, free: 11.29 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001642/0.4138, allocations: 159.3 kB / 0.6076 GB, free: 11.13 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008226/0.422, allocations: 4.05 MB / 0.6115 GB, free: 7.074 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02958/0.4516, allocations: 15.13 MB / 0.6263 GB, free: 7.512 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005486/0.4571, allocations: 2.76 MB / 0.629 GB, free: 4.871 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003759/0.4608, allocations: 1.807 MB / 0.6308 GB, free: 3.066 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008972/0.4698, allocations: 4.068 MB / 0.6347 GB, free: 14.96 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.546e-05/0.4699, allocations: 51.86 kB / 0.6348 GB, free: 14.9 MB / 446.1 MB Notification: Performance of pre-optimization done (n=137): time 3.627e-06/0.4699, allocations: 0 / 0.6348 GB, free: 14.9 MB / 446.1 MB Notification: Performance of matching and sorting (n=159): time 0.01449/0.4844, allocations: 6.234 MB / 0.6409 GB, free: 8.629 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.28e-05/0.4844, allocations: 72.72 kB / 0.6409 GB, free: 8.543 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00411/0.4885, allocations: 2.216 MB / 0.6431 GB, free: 6.297 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003004/0.4888, allocations: 49.7 kB / 0.6432 GB, free: 6.242 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001463/0.4903, allocations: 1.795 MB / 0.6449 GB, free: 4.43 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006478/0.491, allocations: 0.5694 MB / 0.6455 GB, free: 3.855 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006685/0.4916, allocations: 416 kB / 0.6459 GB, free: 3.441 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001249/0.4917, allocations: 305.1 kB / 0.6461 GB, free: 3.141 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001471/0.4932, allocations: 0.8399 MB / 0.647 GB, free: 2.297 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002041/0.4953, allocations: 1.605 MB / 0.6485 GB, free: 348 kB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00368/0.4989, allocations: 2.616 MB / 0.6511 GB, free: 13.38 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.365e-05/0.499, allocations: 8 kB / 0.6511 GB, free: 13.37 MB / 462.1 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.005465/0.5044, allocations: 3.045 MB / 0.6541 GB, free: 10.31 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.267e-05/0.5045, allocations: 16 kB / 0.6541 GB, free: 10.29 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.036e-05/0.5045, allocations: 31.88 kB / 0.6541 GB, free: 10.26 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009383/0.5054, allocations: 351 kB / 0.6545 GB, free: 9.91 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00182/0.5072, allocations: 0.4914 MB / 0.6549 GB, free: 9.418 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006009/0.5132, allocations: 5.072 MB / 0.6599 GB, free: 4.121 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001924/0.5152, allocations: 104 kB / 0.66 GB, free: 4.02 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001902/0.5154, allocations: 112 kB / 0.6601 GB, free: 3.91 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.002058/0.5174, allocations: 1.133 MB / 0.6612 GB, free: 2.77 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004417/0.5179, allocations: 250.4 kB / 0.6614 GB, free: 2.523 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004444/0.5223, allocations: 2.321 MB / 0.6637 GB, free: 180 kB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.64e-05/0.5223, allocations: 16 kB / 0.6637 GB, free: 164 kB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.058e-05/0.5223, allocations: 8 kB / 0.6637 GB, free: 156 kB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.649e-05/0.5223, allocations: 7.969 kB / 0.6637 GB, free: 148 kB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01059/0.5329, allocations: 5.649 MB / 0.6693 GB, free: 10.41 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.817e-06/0.5329, allocations: 4 kB / 0.6693 GB, free: 10.4 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001216/0.5342, allocations: 267.8 kB / 0.6695 GB, free: 10.14 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009729/0.5351, allocations: 366.8 kB / 0.6699 GB, free: 9.773 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001098/0.5352, allocations: 35.98 kB / 0.6699 GB, free: 9.738 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008046/0.5433, allocations: 7.113 MB / 0.6768 GB, free: 2.289 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.619e-06/0.5433, allocations: 4.109 kB / 0.6768 GB, free: 2.285 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006196/0.5495, allocations: 3.445 MB / 0.6802 GB, free: 14.8 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001461/0.551, allocations: 450.2 kB / 0.6806 GB, free: 14.36 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005295/0.5515, allocations: 28 kB / 0.6807 GB, free: 14.33 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001219/0.5527, allocations: 71.95 kB / 0.6807 GB, free: 14.26 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002867/0.553, allocations: 117.1 kB / 0.6808 GB, free: 14.14 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000103/0.5531, allocations: 43.98 kB / 0.6809 GB, free: 14.1 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002495/0.5556, allocations: 1.492 MB / 0.6823 GB, free: 12.59 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5556, allocations: 0 / 0.6823 GB, free: 12.59 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003115/0.5587, allocations: 0.6601 MB / 0.683 GB, free: 11.93 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.006364/0.5651, allocations: 4.061 MB / 0.687 GB, free: 7.812 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.004275/0.5693, allocations: 2.338 MB / 0.6892 GB, free: 5.449 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.332e-06/0.5693, allocations: 0 / 0.6892 GB, free: 5.449 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002307/0.5717, allocations: 1.37 MB / 0.6906 GB, free: 4.043 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003022/0.5747, allocations: 0.5802 MB / 0.6911 GB, free: 3.465 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2538/0.8285, allocations: 23.8 MB / 0.7144 GB, free: 114.2 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002095/0.8306, allocations: 2.523 MB / 0.7169 GB, free: 113.2 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001646/0.8322, allocations: 0.516 MB / 0.7174 GB, free: 113.1 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001413/0.8336, allocations: 1.364 MB / 0.7187 GB, free: 112 MB / 494.1 MB Notification: Performance of SimCode: time 7.71e-07/0.8336, allocations: 0.9688 kB / 0.7187 GB, free: 112 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1069/0.9405, allocations: 60.76 MB / 0.778 GB, free: 64.86 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.15/18.09, allocations: 8 kB / 0.778 GB, free: 64.85 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 & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3_res.csv --start-time 0 --stop-time 0.3 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.000100033 HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization3.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 20.9767969789973] Failed to read output from testmodel.py, exit status != 0: 18.229896333003126 18.239395107 17.865439601 Calling exit ...