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.001344/0.001344, allocations: 99.66 kB / 18.94 MB, free: 2.84 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.423/1.423, allocations: 230.6 MB / 252.7 MB, free: 8.102 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.001696/0.001696, allocations: 209.4 kB / 309.2 MB, free: 2.953 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.04275/0.04275, allocations: 8.918 MB / 374.6 MB, free: 1.727 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Synchronization1,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization1",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.002703/0.002703, allocations: 87.81 kB / 0.4892 GB, free: 7.191 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2617/0.2644, allocations: 55.61 MB / 0.5435 GB, free: 26.65 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization1): time 0.01355/0.278, allocations: 14.3 MB / 0.5574 GB, free: 17.18 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.009292/0.2873, allocations: 5.281 MB / 0.5626 GB, free: 13.43 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002728/0.29, allocations: 115.5 kB / 0.5627 GB, free: 13.39 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00344/0.2934, allocations: 1.215 MB / 0.5639 GB, free: 12.79 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004796/0.2982, allocations: 1.573 MB / 0.5654 GB, free: 11.75 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002779/0.301, allocations: 1.01 MB / 0.5664 GB, free: 11.13 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005778/0.3068, allocations: 4.739 MB / 0.571 GB, free: 8.668 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003947/0.3107, allocations: 1.903 MB / 0.5729 GB, free: 7.668 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004125/0.3149, allocations: 2.183 MB / 0.575 GB, free: 6.59 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004871/0.3197, allocations: 2.432 MB / 0.5774 GB, free: 5.512 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001751/0.3215, allocations: 0.569 MB / 0.5779 GB, free: 5.512 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00307/0.3246, allocations: 0.7846 MB / 0.5787 GB, free: 5.441 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002133/0.3267, allocations: 1.3 MB / 0.58 GB, free: 4.598 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005172/0.3319, allocations: 1.948 MB / 0.5819 GB, free: 3.418 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01058/0.3424, allocations: 7.592 MB / 0.5893 GB, free: 13.73 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.163e-05/0.3425, allocations: 3.984 kB / 0.5893 GB, free: 13.73 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.046e-06/0.3425, allocations: 0 / 0.5893 GB, free: 13.73 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003523/0.3428, allocations: 1.156 kB / 0.5893 GB, free: 13.73 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.01792/0.3607, allocations: 5.044 MB / 0.5942 GB, free: 8.758 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.179e-05/0.3608, allocations: 15.97 kB / 0.5942 GB, free: 8.742 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001944/0.3627, allocations: 0.5492 MB / 0.5948 GB, free: 8.184 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006329/0.3691, allocations: 0.9819 MB / 0.5957 GB, free: 7.199 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008088/0.3771, allocations: 2.794 MB / 0.5985 GB, free: 4.363 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003638/0.3775, allocations: 275.8 kB / 0.5987 GB, free: 4.094 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00141/0.3789, allocations: 375.9 kB / 0.5991 GB, free: 3.727 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01281/0.3917, allocations: 4.931 MB / 0.6039 GB, free: 14.71 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000151/0.3919, allocations: 4 kB / 0.6039 GB, free: 14.71 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009998/0.3929, allocations: 156 kB / 0.6041 GB, free: 14.56 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001819/0.3931, allocations: 155.3 kB / 0.6042 GB, free: 14.41 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009378/0.4024, allocations: 4.042 MB / 0.6082 GB, free: 10.36 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03135/0.4338, allocations: 13.81 MB / 0.6216 GB, free: 12.12 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005939/0.4397, allocations: 2.737 MB / 0.6243 GB, free: 9.5 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003978/0.4437, allocations: 1.811 MB / 0.6261 GB, free: 7.691 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008884/0.4526, allocations: 3.69 MB / 0.6297 GB, free: 3.961 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.596e-05/0.4526, allocations: 47.88 kB / 0.6297 GB, free: 3.906 MB / 430.1 MB Notification: Performance of pre-optimization done (n=137): time 4.248e-06/0.4526, allocations: 0 / 0.6297 GB, free: 3.906 MB / 430.1 MB Notification: Performance of matching and sorting (n=159): time 0.01525/0.4679, allocations: 6.238 MB / 0.6358 GB, free: 13.63 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.834e-05/0.468, allocations: 72.72 kB / 0.6359 GB, free: 13.55 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004305/0.4723, allocations: 2.255 MB / 0.6381 GB, free: 11.26 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002344/0.4725, allocations: 53.7 kB / 0.6381 GB, free: 11.2 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001536/0.474, allocations: 1.799 MB / 0.6399 GB, free: 9.387 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006869/0.4747, allocations: 0.5733 MB / 0.6405 GB, free: 8.809 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008156/0.4755, allocations: 408.1 kB / 0.6409 GB, free: 8.402 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001277/0.4757, allocations: 301.1 kB / 0.6411 GB, free: 8.105 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001557/0.4772, allocations: 0.8398 MB / 0.642 GB, free: 7.262 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002409/0.4796, allocations: 1.634 MB / 0.6436 GB, free: 5.273 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004535/0.4842, allocations: 2.608 MB / 0.6461 GB, free: 2.324 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.512e-05/0.4842, allocations: 12 kB / 0.6461 GB, free: 2.312 MB / 446.1 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.005997/0.4902, allocations: 3.053 MB / 0.6491 GB, free: 15.24 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.959e-05/0.4902, allocations: 16 kB / 0.6491 GB, free: 15.22 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.276e-05/0.4903, allocations: 28 kB / 0.6491 GB, free: 15.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009784/0.4913, allocations: 354.5 kB / 0.6495 GB, free: 14.84 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001845/0.4931, allocations: 0.4953 MB / 0.65 GB, free: 14.34 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005981/0.4991, allocations: 5.011 MB / 0.6549 GB, free: 9.109 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002157/0.5012, allocations: 107.9 kB / 0.655 GB, free: 9.004 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003498/0.5016, allocations: 99.98 kB / 0.6551 GB, free: 8.906 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.002449/0.504, allocations: 1.134 MB / 0.6562 GB, free: 7.762 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006673/0.5047, allocations: 250.4 kB / 0.6564 GB, free: 7.516 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00483/0.5095, allocations: 2.317 MB / 0.6587 GB, free: 5.172 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.507e-05/0.5096, allocations: 16 kB / 0.6587 GB, free: 5.156 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.811e-05/0.5096, allocations: 11.98 kB / 0.6587 GB, free: 5.145 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.635e-05/0.5096, allocations: 11.92 kB / 0.6587 GB, free: 5.133 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01129/0.5209, allocations: 5.299 MB / 0.6639 GB, free: 15.75 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.04e-05/0.5209, allocations: 4.188 kB / 0.6639 GB, free: 15.74 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001196/0.5221, allocations: 271.6 kB / 0.6641 GB, free: 15.48 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009958/0.5231, allocations: 362.2 kB / 0.6645 GB, free: 15.11 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001387/0.5232, allocations: 47.98 kB / 0.6645 GB, free: 15.07 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008173/0.5314, allocations: 7.024 MB / 0.6714 GB, free: 7.703 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.716e-06/0.5314, allocations: 0 / 0.6714 GB, free: 7.703 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006166/0.5376, allocations: 3.449 MB / 0.6748 GB, free: 4.211 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001498/0.5391, allocations: 438.4 kB / 0.6752 GB, free: 3.781 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006981/0.5398, allocations: 32 kB / 0.6752 GB, free: 3.75 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001459/0.5412, allocations: 63.95 kB / 0.6753 GB, free: 3.688 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003052/0.5415, allocations: 121.1 kB / 0.6754 GB, free: 3.566 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000118/0.5416, allocations: 44.11 kB / 0.6754 GB, free: 3.523 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002938/0.5446, allocations: 1.488 MB / 0.6769 GB, free: 2.02 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5446, allocations: 0 / 0.6769 GB, free: 2.02 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002874/0.5475, allocations: 0.664 MB / 0.6775 GB, free: 1.355 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.006331/0.5538, allocations: 4.069 MB / 0.6815 GB, free: 13.23 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.004576/0.5584, allocations: 2.338 MB / 0.6838 GB, free: 10.87 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.639e-06/0.5584, allocations: 448 / 0.6838 GB, free: 10.87 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002329/0.5607, allocations: 1.369 MB / 0.6851 GB, free: 9.461 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003717/0.5644, allocations: 0.5848 MB / 0.6857 GB, free: 8.879 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2314/0.7958, allocations: 23.77 MB / 0.7089 GB, free: 115.8 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001763/0.7976, allocations: 1.983 MB / 0.7108 GB, free: 115.3 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001649/0.7992, allocations: 0.5161 MB / 0.7113 GB, free: 115.3 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001589/0.8008, allocations: 1.367 MB / 0.7127 GB, free: 114.1 MB / 494.1 MB Notification: Performance of SimCode: time 1.513e-06/0.8008, allocations: 0 / 0.7127 GB, free: 114.1 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.106/0.9068, allocations: 61.8 MB / 0.773 GB, free: 68.86 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.83/14.74, allocations: 3.938 kB / 0.773 GB, free: 68.85 MB / 494.1 MB " [Timeout remaining time 645] (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 & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1_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_Synchronization1.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 17.53502183314413] Failed to read output from testmodel.py, exit status != 0: 14.888577415142208 14.905679543 14.559546661 Calling exit ...