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.0008542/0.0008542, allocations: 68.47 kB / 19.17 MB, free: 0.7344 MB / 13.93 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 0.938/0.938, allocations: 177.1 MB / 199.4 MB, free: 5.922 MB / 186.7 MB " [Timeout remaining time 179] 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.001589/0.001589, allocations: 152.6 kB / 256 MB, free: 13.32 MB / 250.7 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.02195/0.02195, allocations: 6.66 MB / 319 MB, free: 26.75 MB / 266.7 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: Performance of FrontEnd - loaded program: time 2.424e-06/2.424e-06, allocations: 0 / 445.4 MB, free: 37.6 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.195e-05/2.438e-05, allocations: 2.281 kB / 445.4 MB, free: 37.6 MB / 330.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization1): time 0.01398/0.01401, allocations: 14.33 MB / 459.7 MB, free: 23.2 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.01226/0.02627, allocations: 5.286 MB / 465 MB, free: 17.9 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003268/0.02954, allocations: 111.4 kB / 465.1 MB, free: 17.79 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002446/0.03198, allocations: 1.231 MB / 466.4 MB, free: 16.55 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002973/0.03496, allocations: 1.622 MB / 468 MB, free: 14.92 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001548/0.0365, allocations: 1.015 MB / 469 MB, free: 13.91 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.00413/0.04063, allocations: 4.967 MB / 474 MB, free: 8.914 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002383/0.04302, allocations: 1.917 MB / 475.9 MB, free: 6.934 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003659/0.04667, allocations: 3.193 MB / 479.1 MB, free: 3.734 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00204/0.04871, allocations: 2.061 MB / 481.1 MB, free: 1.668 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005087/0.04922, allocations: 0.5664 MB / 481.7 MB, free: 1.102 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009976/0.05022, allocations: 0.7887 MB / 482.5 MB, free: 320 kB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008314/0.05105, allocations: 1.332 MB / 483.8 MB, free: 14.98 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001219/0.05227, allocations: 1.668 MB / 485.5 MB, free: 13.3 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005209/0.05748, allocations: 7.604 MB / 493.1 MB, free: 5.68 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.63e-06/0.05749, allocations: 3.938 kB / 493.1 MB, free: 5.676 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.364e-06/0.05749, allocations: 0 / 493.1 MB, free: 5.676 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.235e-05/0.05754, allocations: 0 / 493.1 MB, free: 5.676 MB / 346.7 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.007039/0.06458, allocations: 5.003 MB / 498.1 MB, free: 0.6133 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.926e-05/0.06463, allocations: 8.031 kB / 498.1 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005809/0.06521, allocations: 0.557 MB / 498.7 MB, free: 40 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002874/0.06808, allocations: 0.9819 MB / 499.7 MB, free: 15.05 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003416/0.0715, allocations: 2.789 MB / 0.4907 GB, free: 12.22 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001735/0.07167, allocations: 279.8 kB / 0.4909 GB, free: 11.95 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003556/0.07203, allocations: 364.3 kB / 0.4913 GB, free: 11.59 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006127/0.07816, allocations: 4.943 MB / 0.4961 GB, free: 6.566 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.553e-05/0.07821, allocations: 4 kB / 0.4961 GB, free: 6.562 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002403/0.07845, allocations: 148 kB / 0.4963 GB, free: 6.418 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001066/0.07856, allocations: 155.4 kB / 0.4964 GB, free: 6.266 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004641/0.0832, allocations: 4.05 MB / 0.5004 GB, free: 2.211 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01511/0.09831, allocations: 13.81 MB / 0.5138 GB, free: 3.984 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003262/0.1016, allocations: 2.739 MB / 0.5165 GB, free: 1.363 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002109/0.1037, allocations: 1.815 MB / 0.5183 GB, free: 15.55 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004635/0.1083, allocations: 3.698 MB / 0.5219 GB, free: 11.8 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.531e-05/0.1083, allocations: 55.81 kB / 0.522 GB, free: 11.74 MB / 394.7 MB Notification: Performance of pre-optimization done (n=137): time 2.695e-06/0.1083, allocations: 0 / 0.522 GB, free: 11.74 MB / 394.7 MB Notification: Performance of matching and sorting (n=159): time 0.00851/0.1169, allocations: 6.214 MB / 0.528 GB, free: 5.48 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.658e-05/0.1169, allocations: 68.72 kB / 0.5281 GB, free: 5.402 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002712/0.1196, allocations: 2.259 MB / 0.5303 GB, free: 3.113 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 7.563e-05/0.1197, allocations: 57.64 kB / 0.5304 GB, free: 3.051 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000857/0.1206, allocations: 1.787 MB / 0.5321 GB, free: 1.246 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003008/0.1209, allocations: 0.5655 MB / 0.5327 GB, free: 0.6758 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003931/0.1213, allocations: 412 kB / 0.533 GB, free: 272 kB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.547e-05/0.1213, allocations: 301.1 kB / 0.5333 GB, free: 15.97 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008896/0.1222, allocations: 0.8399 MB / 0.5342 GB, free: 15.12 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001255/0.1235, allocations: 1.626 MB / 0.5357 GB, free: 13.14 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002479/0.126, allocations: 2.616 MB / 0.5383 GB, free: 10.18 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.368e-06/0.126, allocations: 8 kB / 0.5383 GB, free: 10.18 MB / 410.7 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.00327/0.1292, allocations: 3.049 MB / 0.5413 GB, free: 7.109 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.937e-05/0.1293, allocations: 19.94 kB / 0.5413 GB, free: 7.09 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.029e-05/0.1293, allocations: 24 kB / 0.5413 GB, free: 7.066 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005668/0.1299, allocations: 338.6 kB / 0.5416 GB, free: 6.727 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009704/0.1308, allocations: 0.5069 MB / 0.5421 GB, free: 6.223 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003896/0.1347, allocations: 5.022 MB / 0.547 GB, free: 0.9766 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001005/0.1357, allocations: 104 kB / 0.5471 GB, free: 0.875 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001004/0.1358, allocations: 104 kB / 0.5472 GB, free: 0.7734 MB / 410.7 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.001776/0.1376, allocations: 1.126 MB / 0.5483 GB, free: 15.63 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002496/0.1379, allocations: 250.4 kB / 0.5486 GB, free: 15.39 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002837/0.1407, allocations: 2.325 MB / 0.5509 GB, free: 13.04 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.566e-06/0.1407, allocations: 19.94 kB / 0.5509 GB, free: 13.02 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.1407, allocations: 4 kB / 0.5509 GB, free: 13.02 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.072e-05/0.1407, allocations: 7.969 kB / 0.5509 GB, free: 13.01 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005405/0.1461, allocations: 5.287 MB / 0.556 GB, free: 7.637 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.51e-06/0.1461, allocations: 7.984 kB / 0.5561 GB, free: 7.629 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006091/0.1467, allocations: 267.8 kB / 0.5563 GB, free: 7.367 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005133/0.1473, allocations: 362.2 kB / 0.5567 GB, free: 7.004 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.436e-05/0.1473, allocations: 39.98 kB / 0.5567 GB, free: 6.965 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1754/0.3227, allocations: 7.029 MB / 0.5636 GB, free: 115.2 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.14e-06/0.3227, allocations: 5.75 kB / 0.5636 GB, free: 115.2 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005641/0.3283, allocations: 3.439 MB / 0.5669 GB, free: 114.8 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001201/0.3295, allocations: 440.8 kB / 0.5673 GB, free: 114.7 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002103/0.3298, allocations: 36.56 kB / 0.5674 GB, free: 114.7 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006402/0.3304, allocations: 65.77 kB / 0.5674 GB, free: 114.7 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002917/0.3307, allocations: 125.2 kB / 0.5676 GB, free: 114.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.397e-05/0.3308, allocations: 44.45 kB / 0.5676 GB, free: 114.6 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001861/0.3326, allocations: 1.49 MB / 0.5691 GB, free: 114 MB / 426.7 MB Notification: Performance of sort global known variables: time 8e-08/0.3326, allocations: 0 / 0.5691 GB, free: 114 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00178/0.3344, allocations: 0.6606 MB / 0.5697 GB, free: 114 MB / 426.7 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.003527/0.3379, allocations: 4.053 MB / 0.5737 GB, free: 112 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002786/0.3407, allocations: 2.336 MB / 0.5759 GB, free: 111 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.851e-06/0.3407, allocations: 7.938 kB / 0.5759 GB, free: 111 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001443/0.3422, allocations: 1.363 MB / 0.5773 GB, free: 110 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002111/0.3443, allocations: 0.5776 MB / 0.5778 GB, free: 109.5 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03227/0.3765, allocations: 23.77 MB / 0.6011 GB, free: 86.32 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001379/0.3779, allocations: 1.983 MB / 0.603 GB, free: 84.31 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001353/0.3793, allocations: 0.5161 MB / 0.6035 GB, free: 83.79 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001034/0.3803, allocations: 1.363 MB / 0.6048 GB, free: 82.43 MB / 426.7 MB Notification: Performance of SimCode: time 1.082e-06/0.3803, allocations: 0 / 0.6048 GB, free: 82.43 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07486/0.4552, allocations: 61.71 MB / 0.6651 GB, free: 21.28 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.667/9.122, allocations: 3.125 kB / 0.6651 GB, free: 21.28 MB / 426.7 MB " [Timeout remaining time 651] (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: 11.295590907335281] Failed to read output from testmodel.py, exit status != 0: 9.236946612596512 9.243722417 9.184635847 Calling exit ...