Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.Magnetic.Coupling.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.0008396/0.0008396, allocations: 80.44 kB / 19.17 MB, free: 0.7422 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.9125/0.9125, allocations: 177.2 MB / 199.4 MB, free: 5.93 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.001089/0.001089, allocations: 160.6 kB / 256 MB, free: 13.34 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.02217/0.02217, allocations: 6.669 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.Magnetic.Coupling,fileNamePrefix="HanserModelica_HanserModelica_Magnetic_Coupling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Magnetic.Coupling,fileNamePrefix="HanserModelica_HanserModelica_Magnetic_Coupling",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.603e-06/1.603e-06, allocations: 0 / 445.4 MB, free: 37.65 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.053e-05/2.213e-05, allocations: 2.281 kB / 445.4 MB, free: 37.64 MB / 330.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.Magnetic.Coupling): time 0.002636/0.002658, allocations: 2.431 MB / 447.8 MB, free: 35.2 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.00107/0.003728, allocations: 0.5997 MB / 448.4 MB, free: 34.6 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001207/0.003849, allocations: 4 kB / 448.4 MB, free: 34.59 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001228/0.003972, allocations: 35.64 kB / 448.5 MB, free: 34.56 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001127/0.004085, allocations: 67.36 kB / 448.5 MB, free: 34.49 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002411/0.004326, allocations: 63.89 kB / 448.6 MB, free: 34.43 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.000184/0.00451, allocations: 274.7 kB / 448.8 MB, free: 34.16 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001479/0.004658, allocations: 79.28 kB / 448.9 MB, free: 34.09 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001158/0.004773, allocations: 147.7 kB / 449.1 MB, free: 33.94 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001033/0.004877, allocations: 83.7 kB / 449.2 MB, free: 33.86 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 3.246e-05/0.004909, allocations: 24 kB / 449.2 MB, free: 33.84 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.06e-05/0.00493, allocations: 24 kB / 449.2 MB, free: 33.81 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 2.845e-05/0.004958, allocations: 47.83 kB / 449.2 MB, free: 33.77 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 4.915e-05/0.005007, allocations: 87.75 kB / 449.3 MB, free: 33.68 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002077/0.005215, allocations: 279.1 kB / 449.6 MB, free: 33.41 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.944e-06/0.005217, allocations: 0 / 449.6 MB, free: 33.41 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.012e-06/0.005218, allocations: 0 / 449.6 MB, free: 33.41 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.781e-06/0.005224, allocations: 7.938 kB / 449.6 MB, free: 33.4 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 57 * Number of variables: 57 Notification: Performance of Generate backend data structure: time 0.0005262/0.00575, allocations: 453.7 kB / 450.1 MB, free: 32.93 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.462e-05/0.005795, allocations: 12.03 kB / 450.1 MB, free: 32.91 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.966e-05/0.005834, allocations: 62.72 kB / 450.1 MB, free: 32.84 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.982e-05/0.005874, allocations: 24.8 kB / 450.2 MB, free: 32.82 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002296/0.006104, allocations: 174.5 kB / 450.3 MB, free: 32.62 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.815e-05/0.006122, allocations: 16.88 kB / 450.3 MB, free: 32.61 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.727e-05/0.006149, allocations: 24.38 kB / 450.4 MB, free: 32.59 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002733/0.006422, allocations: 268.8 kB / 450.6 MB, free: 32.31 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.929e-06/0.006432, allocations: 0 / 450.6 MB, free: 32.31 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.663e-05/0.006449, allocations: 12 kB / 450.6 MB, free: 32.3 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.031e-06/0.006455, allocations: 4 kB / 450.6 MB, free: 32.29 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001921/0.006647, allocations: 157.9 kB / 450.8 MB, free: 32.14 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007722/0.007419, allocations: 0.7738 MB / 451.6 MB, free: 31.3 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001865/0.007606, allocations: 118.5 kB / 451.7 MB, free: 31.18 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.335e-05/0.007679, allocations: 48.83 kB / 451.7 MB, free: 31.12 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.705e-05/0.007696, allocations: 4 kB / 451.7 MB, free: 31.12 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.163e-05/0.007718, allocations: 30.56 kB / 451.8 MB, free: 31.08 MB / 330.7 MB Notification: Performance of pre-optimization done (n=13): time 1.252e-06/0.007719, allocations: 4 kB / 451.8 MB, free: 31.08 MB / 330.7 MB Notification: Performance of matching and sorting (n=15): time 0.0008026/0.008522, allocations: 448.8 kB / 452.2 MB, free: 30.61 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.111e-05/0.008543, allocations: 55.39 kB / 452.3 MB, free: 30.54 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.277e-05/0.008636, allocations: 183.3 kB / 452.4 MB, free: 30.35 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 8.176e-06/0.008644, allocations: 33.62 kB / 452.5 MB, free: 30.31 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.884e-05/0.008693, allocations: 168.2 kB / 452.6 MB, free: 30.14 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.913e-05/0.008712, allocations: 55.53 kB / 452.7 MB, free: 30.09 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.003e-05/0.008752, allocations: 37.7 kB / 452.7 MB, free: 30.04 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 3.299e-05/0.008785, allocations: 330.8 kB / 453.1 MB, free: 29.71 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.692e-05/0.008852, allocations: 43.97 kB / 453.1 MB, free: 29.67 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.659e-05/0.008928, allocations: 97.84 kB / 453.2 MB, free: 29.55 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001411/0.009069, allocations: 148.7 kB / 453.3 MB, free: 29.39 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.009071, allocations: 4 kB / 453.3 MB, free: 29.38 MB / 330.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0001988/0.00927, allocations: 185.4 kB / 453.5 MB, free: 29.2 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.38e-05/0.009284, allocations: 8 kB / 453.5 MB, free: 29.19 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.611e-06/0.009289, allocations: 0 / 453.5 MB, free: 29.19 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.372e-05/0.009303, allocations: 12.19 kB / 453.5 MB, free: 29.18 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001307/0.009434, allocations: 47.91 kB / 453.6 MB, free: 29.13 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.725e-06/0.009442, allocations: 7.984 kB / 453.6 MB, free: 29.12 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.494e-05/0.009497, allocations: 8 kB / 453.6 MB, free: 29.11 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.917e-06/0.009506, allocations: 7.984 kB / 453.6 MB, free: 29.11 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 1 (switch.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.841e-05/0.009574, allocations: 145.7 kB / 453.8 MB, free: 28.95 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.151e-05/0.009595, allocations: 19.86 kB / 453.8 MB, free: 28.93 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.24e-05/0.009628, allocations: 17.47 kB / 453.8 MB, free: 28.91 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.345e-06/0.00963, allocations: 3.938 kB / 453.8 MB, free: 28.91 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.009635, allocations: 4 kB / 453.8 MB, free: 28.9 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.009638, allocations: 0 / 453.8 MB, free: 28.9 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001505/0.009789, allocations: 228.6 kB / 454 MB, free: 28.64 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.12e-07/0.00979, allocations: 0 / 454 MB, free: 28.64 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.679e-05/0.009877, allocations: 35.92 kB / 454.1 MB, free: 28.6 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.009879, allocations: 4 kB / 454.1 MB, free: 28.6 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.267e-06/0.009889, allocations: 4 kB / 454.1 MB, free: 28.59 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.432e-06/0.00989, allocations: 3.984 kB / 454.1 MB, free: 28.59 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.009891, allocations: 0 / 454.1 MB, free: 28.59 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002679/0.01016, allocations: 299.2 kB / 454.4 MB, free: 28.28 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.875e-05/0.0102, allocations: 19.92 kB / 454.4 MB, free: 28.26 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.605e-05/0.01021, allocations: 4 kB / 454.4 MB, free: 28.26 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.237e-05/0.01028, allocations: 11.98 kB / 454.4 MB, free: 28.25 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.815e-05/0.0103, allocations: 7.984 kB / 454.4 MB, free: 28.24 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.668e-06/0.01031, allocations: 0 / 454.4 MB, free: 28.24 MB / 330.7 MB Notification: Performance of sorting global known variables: time 5.043e-05/0.01036, allocations: 147.2 kB / 454.5 MB, free: 28.09 MB / 330.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01036, allocations: 0 / 454.5 MB, free: 28.09 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0001761/0.01054, allocations: 40 kB / 454.6 MB, free: 28.05 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (converter.i) * Number of discrete variables: 1 (switch.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003167/0.01085, allocations: 0.8206 MB / 455.4 MB, free: 27.21 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001896/0.01104, allocations: 119.8 kB / 455.5 MB, free: 27.09 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.01104, allocations: 0 / 455.5 MB, free: 27.09 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.178e-05/0.01111, allocations: 51.92 kB / 455.6 MB, free: 27.04 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002128/0.01132, allocations: 26.61 kB / 455.6 MB, free: 27.02 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00135/0.01267, allocations: 2.124 MB / 457.7 MB, free: 24.78 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.369e-05/0.01272, allocations: 125.2 kB / 457.8 MB, free: 24.64 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 5.752e-05/0.01278, allocations: 13.48 kB / 457.9 MB, free: 24.63 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.588e-05/0.01285, allocations: 68.47 kB / 457.9 MB, free: 24.56 MB / 330.7 MB Notification: Performance of SimCode: time 6.01e-07/0.01285, allocations: 0 / 457.9 MB, free: 24.56 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01561/0.02846, allocations: 4.115 MB / 462 MB, free: 20.59 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.938/6.966, allocations: 12.06 kB / 462.1 MB, free: 20.57 MB / 330.7 MB " [Timeout remaining time 653] (rm -f HanserModelica_HanserModelica.Magnetic.Coupling.pipe ; mkfifo HanserModelica_HanserModelica.Magnetic.Coupling.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Magnetic.Coupling.pipe >> ../files/HanserModelica_HanserModelica.Magnetic.Coupling.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.Magnetic.Coupling_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 HanserModelica_HanserModelica_Magnetic_Coupling.fmu > HanserModelica_HanserModelica.Magnetic.Coupling.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 8.994266470894217] Failed to read output from testmodel.py, exit status != 0: 7.046819415874779 7.057729633 7.050084871 Calling exit ...