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.001309/0.001309, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.45/1.45, allocations: 230.6 MB / 252.6 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.0017/0.0017, allocations: 221.3 kB / 309.2 MB, free: 3.133 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.04162/0.04162, allocations: 8.916 MB / 374.6 MB, free: 1.887 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Synchronization2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization2",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.00247/0.00247, allocations: 87.88 kB / 0.4892 GB, free: 7.297 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2756/0.2781, allocations: 55.6 MB / 0.5435 GB, free: 26.79 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization2): time 0.01582/0.2939, allocations: 16.57 MB / 0.5597 GB, free: 14.93 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00935/0.3032, allocations: 5.602 MB / 0.5652 GB, free: 10.82 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002721/0.3059, allocations: 114.6 kB / 0.5653 GB, free: 10.79 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003126/0.3091, allocations: 1.279 MB / 0.5666 GB, free: 10.12 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.004479/0.3136, allocations: 1.6 MB / 0.5681 GB, free: 9.059 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002406/0.316, allocations: 1.04 MB / 0.5691 GB, free: 8.402 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006446/0.3224, allocations: 4.756 MB / 0.5738 GB, free: 5.926 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003071/0.3255, allocations: 1.986 MB / 0.5757 GB, free: 4.844 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003619/0.3291, allocations: 2.174 MB / 0.5778 GB, free: 3.77 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004733/0.3338, allocations: 2.598 MB / 0.5804 GB, free: 2.504 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001363/0.3352, allocations: 0.5706 MB / 0.5809 GB, free: 2.504 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002441/0.3376, allocations: 0.8067 MB / 0.5817 GB, free: 2.422 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001109/0.3387, allocations: 1.301 MB / 0.583 GB, free: 1.578 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003212/0.342, allocations: 2.455 MB / 0.5854 GB, free: 15.87 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01053/0.3525, allocations: 7.567 MB / 0.5928 GB, free: 10.17 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.3525, allocations: 0 / 0.5928 GB, free: 10.17 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.885e-06/0.3525, allocations: 5.125 kB / 0.5928 GB, free: 10.17 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002272/0.3527, allocations: 0 / 0.5928 GB, free: 10.17 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.01668/0.3694, allocations: 5.057 MB / 0.5977 GB, free: 5.441 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.853e-05/0.3695, allocations: 8.031 kB / 0.5977 GB, free: 5.434 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001182/0.3706, allocations: 0.557 MB / 0.5983 GB, free: 4.867 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005455/0.3761, allocations: 0.978 MB / 0.5992 GB, free: 3.887 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007407/0.3835, allocations: 2.81 MB / 0.602 GB, free: 1.035 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002723/0.3838, allocations: 275.8 kB / 0.6022 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009912/0.3848, allocations: 375.9 kB / 0.6026 GB, free: 408 kB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01049/0.3953, allocations: 4.776 MB / 0.6073 GB, free: 11.58 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.659e-05/0.3954, allocations: 3.953 kB / 0.6073 GB, free: 11.57 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004124/0.3958, allocations: 160 kB / 0.6074 GB, free: 11.42 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001841/0.396, allocations: 159.3 kB / 0.6076 GB, free: 11.26 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008358/0.4043, allocations: 4.054 MB / 0.6115 GB, free: 7.203 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02851/0.4328, allocations: 15.14 MB / 0.6263 GB, free: 7.637 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005452/0.4383, allocations: 2.748 MB / 0.629 GB, free: 5.008 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003609/0.4419, allocations: 1.807 MB / 0.6308 GB, free: 3.203 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00847/0.4504, allocations: 4.08 MB / 0.6347 GB, free: 15.08 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.231e-05/0.4504, allocations: 47.88 kB / 0.6348 GB, free: 15.02 MB / 446.1 MB Notification: Performance of pre-optimization done (n=137): time 4.148e-06/0.4504, allocations: 0 / 0.6348 GB, free: 15.02 MB / 446.1 MB Notification: Performance of matching and sorting (n=159): time 0.01455/0.465, allocations: 6.23 MB / 0.6409 GB, free: 8.762 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.688e-05/0.465, allocations: 68.72 kB / 0.6409 GB, free: 8.68 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003774/0.4688, allocations: 2.216 MB / 0.6431 GB, free: 6.434 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001416/0.4689, allocations: 53.7 kB / 0.6432 GB, free: 6.375 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001492/0.4704, allocations: 1.795 MB / 0.6449 GB, free: 4.562 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005951/0.471, allocations: 0.5733 MB / 0.6455 GB, free: 3.984 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006741/0.4717, allocations: 412 kB / 0.6459 GB, free: 3.574 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001612/0.4719, allocations: 301.1 kB / 0.6461 GB, free: 3.277 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001544/0.4734, allocations: 0.8438 MB / 0.647 GB, free: 2.43 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002133/0.4755, allocations: 1.601 MB / 0.6485 GB, free: 488 kB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003717/0.4792, allocations: 2.616 MB / 0.6511 GB, free: 13.52 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.21e-05/0.4793, allocations: 4 kB / 0.6511 GB, free: 13.51 MB / 462.1 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.005574/0.4848, allocations: 3.049 MB / 0.6541 GB, free: 10.45 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.568e-05/0.4849, allocations: 19.98 kB / 0.6541 GB, free: 10.43 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.934e-05/0.4849, allocations: 27.94 kB / 0.6541 GB, free: 10.4 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009597/0.4859, allocations: 342.5 kB / 0.6544 GB, free: 10.05 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001856/0.4877, allocations: 0.4953 MB / 0.6549 GB, free: 9.559 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005992/0.4937, allocations: 5.081 MB / 0.6599 GB, free: 4.254 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002055/0.4958, allocations: 107.9 kB / 0.66 GB, free: 4.148 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002169/0.496, allocations: 99.98 kB / 0.6601 GB, free: 4.051 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.002107/0.4981, allocations: 1.137 MB / 0.6612 GB, free: 2.902 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004926/0.4986, allocations: 250.4 kB / 0.6614 GB, free: 2.656 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00444/0.503, allocations: 2.321 MB / 0.6637 GB, free: 316 kB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.635e-05/0.503, allocations: 16 kB / 0.6637 GB, free: 300 kB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.272e-05/0.5031, allocations: 8 kB / 0.6637 GB, free: 292 kB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.579e-05/0.5031, allocations: 7.969 kB / 0.6637 GB, free: 284 kB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01019/0.5133, allocations: 5.657 MB / 0.6693 GB, free: 10.53 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.664e-06/0.5133, allocations: 0 / 0.6693 GB, free: 10.53 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00122/0.5145, allocations: 267.6 kB / 0.6695 GB, free: 10.27 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009948/0.5155, allocations: 370.4 kB / 0.6699 GB, free: 9.898 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001109/0.5156, allocations: 39.98 kB / 0.6699 GB, free: 9.859 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008132/0.5237, allocations: 7.1 MB / 0.6768 GB, free: 2.418 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.388e-06/0.5237, allocations: 3.984 kB / 0.6768 GB, free: 2.414 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006216/0.53, allocations: 3.437 MB / 0.6802 GB, free: 14.93 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001547/0.5315, allocations: 450.2 kB / 0.6806 GB, free: 14.49 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003551/0.5319, allocations: 32 kB / 0.6807 GB, free: 14.46 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001094/0.5329, allocations: 59.95 kB / 0.6807 GB, free: 14.4 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003491/0.5333, allocations: 121.1 kB / 0.6808 GB, free: 14.28 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001015/0.5334, allocations: 47.98 kB / 0.6809 GB, free: 14.23 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002394/0.5358, allocations: 1.492 MB / 0.6823 GB, free: 12.73 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.5358, allocations: 384 / 0.6823 GB, free: 12.73 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.00268/0.5385, allocations: 0.664 MB / 0.683 GB, free: 12.06 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.006348/0.5448, allocations: 4.068 MB / 0.687 GB, free: 7.941 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.004447/0.5493, allocations: 2.338 MB / 0.6892 GB, free: 5.578 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.402e-06/0.5493, allocations: 0 / 0.6892 GB, free: 5.578 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002357/0.5516, allocations: 1.37 MB / 0.6906 GB, free: 4.172 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003117/0.5547, allocations: 0.5764 MB / 0.6911 GB, free: 3.598 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2566/0.8114, allocations: 23.8 MB / 0.7144 GB, free: 114.4 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002223/0.8136, allocations: 2.529 MB / 0.7169 GB, free: 113.3 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0019/0.8155, allocations: 0.5183 MB / 0.7174 GB, free: 113.2 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001535/0.817, allocations: 1.368 MB / 0.7187 GB, free: 112.1 MB / 494.1 MB Notification: Performance of SimCode: time 1.302e-06/0.817, allocations: 1.438 kB / 0.7187 GB, free: 112.1 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1056/0.9227, allocations: 60.75 MB / 0.778 GB, free: 65.15 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.21/18.13, allocations: 11.02 kB / 0.778 GB, free: 65.14 MB / 494.1 MB " [Timeout remaining time 642] (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 & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2_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_Synchronization2.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 21.070434622000903] Failed to read output from testmodel.py, exit status != 0: 18.280803196001216 18.300524018 17.944009478 Calling exit ...