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.001949/0.001949, allocations: 107.6 kB / 16.45 MB, free: 6.453 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.466/1.466, allocations: 230.6 MB / 249.8 MB, free: 9.207 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.001572/0.001572, allocations: 214.8 kB / 306 MB, free: 4.281 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.04088/0.04088, allocations: 8.903 MB / 371 MB, free: 3.43 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.002351/0.002351, allocations: 86.11 kB / 495.8 MB, free: 4.871 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09967/0.102, allocations: 55.58 MB / 0.5384 GB, free: 6.441 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization3): time 0.02009/0.1221, allocations: 16.53 MB / 0.5546 GB, free: 5.828 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01145/0.1336, allocations: 5.578 MB / 0.56 GB, free: 236 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002727/0.1363, allocations: 115.4 kB / 0.5601 GB, free: 120 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004192/0.1405, allocations: 1.262 MB / 0.5614 GB, free: 14.84 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.006043/0.1465, allocations: 1.596 MB / 0.5629 GB, free: 13.24 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003359/0.1499, allocations: 1.025 MB / 0.5639 GB, free: 12.21 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.008159/0.158, allocations: 4.747 MB / 0.5686 GB, free: 7.453 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004233/0.1623, allocations: 2.463 MB / 0.571 GB, free: 4.922 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003671/0.1659, allocations: 2.165 MB / 0.5731 GB, free: 2.75 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004302/0.1703, allocations: 2.6 MB / 0.5756 GB, free: 144 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00114/0.1714, allocations: 0.5743 MB / 0.5762 GB, free: 15.56 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001959/0.1734, allocations: 0.8005 MB / 0.577 GB, free: 14.77 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001385/0.1747, allocations: 1.297 MB / 0.5782 GB, free: 13.46 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003273/0.178, allocations: 2.462 MB / 0.5806 GB, free: 10.99 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009238/0.1872, allocations: 7.564 MB / 0.588 GB, free: 3.402 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.733e-06/0.1873, allocations: 0 / 0.588 GB, free: 3.402 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1873, allocations: 4 kB / 0.588 GB, free: 3.398 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002055/0.1875, allocations: 0 / 0.588 GB, free: 3.398 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.0147/0.2022, allocations: 5.129 MB / 0.593 GB, free: 14.19 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.593e-05/0.2022, allocations: 8.031 kB / 0.593 GB, free: 14.18 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001277/0.2035, allocations: 0.5531 MB / 0.5936 GB, free: 13.62 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005788/0.2093, allocations: 0.9819 MB / 0.5945 GB, free: 12.64 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006618/0.2159, allocations: 2.885 MB / 0.5973 GB, free: 9.699 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003019/0.2162, allocations: 275.8 kB / 0.5976 GB, free: 9.43 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009457/0.2171, allocations: 371.8 kB / 0.598 GB, free: 9.066 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009548/0.2267, allocations: 4.784 MB / 0.6026 GB, free: 4.238 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.062e-05/0.2268, allocations: 7.953 kB / 0.6026 GB, free: 4.23 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004173/0.2272, allocations: 155.9 kB / 0.6028 GB, free: 4.078 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000163/0.2273, allocations: 159.3 kB / 0.6029 GB, free: 3.922 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007705/0.235, allocations: 4.058 MB / 0.6069 GB, free: 15.86 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02603/0.2611, allocations: 15.94 MB / 0.6225 GB, free: 15.36 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008172/0.2693, allocations: 7.05 MB / 0.6294 GB, free: 7.375 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00447/0.2737, allocations: 1.819 MB / 0.6311 GB, free: 5.559 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008858/0.2826, allocations: 4.718 MB / 0.6357 GB, free: 0.6367 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.889e-05/0.2826, allocations: 43.88 kB / 0.6358 GB, free: 0.582 MB / 446.1 MB Notification: Performance of pre-optimization done (n=137): time 3.497e-06/0.2826, allocations: 8 kB / 0.6358 GB, free: 0.5742 MB / 446.1 MB Notification: Performance of matching and sorting (n=159): time 0.01492/0.2975, allocations: 6.684 MB / 0.6423 GB, free: 9.738 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.328e-05/0.2976, allocations: 68.72 kB / 0.6424 GB, free: 9.66 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0038/0.3014, allocations: 2.216 MB / 0.6445 GB, free: 7.414 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002191/0.3016, allocations: 53.64 kB / 0.6446 GB, free: 7.355 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001461/0.3031, allocations: 1.803 MB / 0.6464 GB, free: 5.535 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006219/0.3037, allocations: 0.5655 MB / 0.6469 GB, free: 4.965 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006858/0.3044, allocations: 416 kB / 0.6473 GB, free: 4.551 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001212/0.3045, allocations: 305.1 kB / 0.6476 GB, free: 4.25 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001527/0.306, allocations: 0.836 MB / 0.6484 GB, free: 3.41 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002223/0.3083, allocations: 1.605 MB / 0.65 GB, free: 1.453 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2058/0.5141, allocations: 2.607 MB / 0.6525 GB, free: 98.05 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.289e-05/0.5141, allocations: 9.938 kB / 0.6525 GB, free: 98.05 MB / 462.1 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.006108/0.5202, allocations: 3.128 MB / 0.6556 GB, free: 97.66 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.639e-05/0.5202, allocations: 14.62 kB / 0.6556 GB, free: 97.66 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.941e-05/0.5203, allocations: 25.59 kB / 0.6556 GB, free: 97.66 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001034/0.5213, allocations: 348.6 kB / 0.656 GB, free: 97.55 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002053/0.5234, allocations: 0.4955 MB / 0.6564 GB, free: 97.5 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005007/0.5284, allocations: 5.278 MB / 0.6616 GB, free: 93.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002033/0.5304, allocations: 107.2 kB / 0.6617 GB, free: 93.27 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002617/0.5307, allocations: 104.3 kB / 0.6618 GB, free: 93.25 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.002027/0.5327, allocations: 1.133 MB / 0.6629 GB, free: 92.63 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005508/0.5333, allocations: 250 kB / 0.6631 GB, free: 92.63 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004371/0.5376, allocations: 2.47 MB / 0.6656 GB, free: 91.46 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.132e-05/0.5377, allocations: 18.84 kB / 0.6656 GB, free: 91.46 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.479e-05/0.5377, allocations: 5.5 kB / 0.6656 GB, free: 91.46 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.427e-05/0.5377, allocations: 8.203 kB / 0.6656 GB, free: 91.46 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009016/0.5467, allocations: 5.817 MB / 0.6713 GB, free: 88.75 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.015e-05/0.5467, allocations: 3.969 kB / 0.6713 GB, free: 88.75 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001196/0.5479, allocations: 270.2 kB / 0.6715 GB, free: 88.73 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008753/0.5488, allocations: 367 kB / 0.6719 GB, free: 88.6 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001334/0.5489, allocations: 39.66 kB / 0.6719 GB, free: 88.58 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005848/0.5548, allocations: 7.417 MB / 0.6792 GB, free: 82.52 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/0.5548, allocations: 5.844 kB / 0.6792 GB, free: 82.52 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004967/0.5597, allocations: 3.59 MB / 0.6827 GB, free: 80.86 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001218/0.561, allocations: 0.5046 MB / 0.6832 GB, free: 80.54 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004376/0.5614, allocations: 34.64 kB / 0.6832 GB, free: 80.52 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001158/0.5626, allocations: 65.8 kB / 0.6833 GB, free: 80.49 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002862/0.5628, allocations: 123.8 kB / 0.6834 GB, free: 80.46 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.781e-05/0.5629, allocations: 42.64 kB / 0.6834 GB, free: 80.45 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002039/0.565, allocations: 1.495 MB / 0.6849 GB, free: 79.78 MB / 462.1 MB Notification: Performance of sort global known variables: time 6e-08/0.565, allocations: 0 / 0.6849 GB, free: 79.78 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002622/0.5676, allocations: 0.6581 MB / 0.6855 GB, free: 79.59 MB / 462.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.005082/0.5727, allocations: 4.205 MB / 0.6896 GB, free: 75.3 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003674/0.5764, allocations: 2.423 MB / 0.692 GB, free: 72.84 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.831e-06/0.5764, allocations: 0.5625 kB / 0.692 GB, free: 72.84 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001976/0.5783, allocations: 1.371 MB / 0.6933 GB, free: 71.44 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003095/0.5814, allocations: 0.5888 MB / 0.6939 GB, free: 70.88 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03437/0.6158, allocations: 23.92 MB / 0.7173 GB, free: 45.88 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001789/0.6176, allocations: 2.531 MB / 0.7197 GB, free: 43.32 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001548/0.6191, allocations: 0.5122 MB / 0.7202 GB, free: 42.81 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001506/0.6206, allocations: 1.366 MB / 0.7216 GB, free: 41.44 MB / 462.1 MB Notification: Performance of SimCode: time 1.413e-06/0.6206, allocations: 0 / 0.7216 GB, free: 41.44 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1249/0.7456, allocations: 59.05 MB / 0.7792 GB, free: 14.91 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.8/15.55, allocations: 7.031 kB / 0.7793 GB, free: 14.9 MB / 494.1 MB " [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 & 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: 18.551123646000633] Failed to read output from testmodel.py, exit status != 0: 15.669255726999836 15.686479513 15.495557497 Calling exit ...