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.001842/0.001842, allocations: 110.6 kB / 18.94 MB, free: 2.789 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.457/1.457, allocations: 230.6 MB / 252.6 MB, free: 8.316 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.001581/0.001581, allocations: 209.6 kB / 309.2 MB, free: 3.16 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.04095/0.04095, allocations: 8.912 MB / 374.6 MB, free: 1.91 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.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: 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.002937/0.002937, allocations: 87.88 kB / 0.4892 GB, free: 7.359 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3015/0.3044, allocations: 55.6 MB / 0.5435 GB, free: 26.81 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Magnetic.Coupling): time 0.002962/0.3074, allocations: 2.58 MB / 0.546 GB, free: 25.02 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008652/0.3082, allocations: 0.6388 MB / 0.5466 GB, free: 24.56 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001164/0.3084, allocations: 7.125 kB / 0.5466 GB, free: 24.55 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001262/0.3085, allocations: 40.92 kB / 0.5467 GB, free: 24.53 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001161/0.3086, allocations: 55.78 kB / 0.5467 GB, free: 24.49 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002174/0.3088, allocations: 69.69 kB / 0.5468 GB, free: 24.45 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002309/0.309, allocations: 262.3 kB / 0.5471 GB, free: 24.32 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001502/0.3092, allocations: 73.48 kB / 0.5471 GB, free: 24.28 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.17e-05/0.3093, allocations: 102.5 kB / 0.5472 GB, free: 24.23 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001428/0.3094, allocations: 119.2 kB / 0.5473 GB, free: 24.17 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.333e-05/0.3095, allocations: 22.44 kB / 0.5474 GB, free: 24.17 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.266e-05/0.3095, allocations: 23.03 kB / 0.5474 GB, free: 24.17 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.556e-05/0.3095, allocations: 50.8 kB / 0.5474 GB, free: 24.13 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.387e-05/0.3096, allocations: 121.4 kB / 0.5475 GB, free: 24.06 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002498/0.3099, allocations: 269.2 kB / 0.5478 GB, free: 23.95 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.3099, allocations: 0 / 0.5478 GB, free: 23.95 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.3099, allocations: 3.047 kB / 0.5478 GB, free: 23.95 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.373e-06/0.3099, allocations: 2.906 kB / 0.5478 GB, free: 23.95 MB / 382.1 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.0006517/0.3105, allocations: 462.3 kB / 0.5482 GB, free: 23.58 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.549e-05/0.3106, allocations: 11.66 kB / 0.5483 GB, free: 23.58 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.628e-05/0.3106, allocations: 59.33 kB / 0.5483 GB, free: 23.53 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.324e-05/0.3107, allocations: 25.48 kB / 0.5483 GB, free: 23.52 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002506/0.3109, allocations: 181.5 kB / 0.5485 GB, free: 23.35 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.142e-05/0.3109, allocations: 22.75 kB / 0.5485 GB, free: 23.34 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.083e-05/0.311, allocations: 23.34 kB / 0.5486 GB, free: 23.33 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003503/0.3113, allocations: 239.7 kB / 0.5488 GB, free: 23.21 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.149e-05/0.3113, allocations: 0 / 0.5488 GB, free: 23.21 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.026e-05/0.3113, allocations: 11.09 kB / 0.5488 GB, free: 23.2 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.034e-06/0.3113, allocations: 6.438 kB / 0.5488 GB, free: 23.2 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002886/0.3116, allocations: 156.8 kB / 0.549 GB, free: 23.15 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000965/0.3126, allocations: 0.8157 MB / 0.5497 GB, free: 22.54 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002578/0.3129, allocations: 125.9 kB / 0.5499 GB, free: 22.47 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001105/0.313, allocations: 48.81 kB / 0.5499 GB, free: 22.45 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.577e-05/0.313, allocations: 3.281 kB / 0.5499 GB, free: 22.45 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.785e-05/0.313, allocations: 30.56 kB / 0.5499 GB, free: 22.41 MB / 382.1 MB Notification: Performance of pre-optimization done (n=13): time 1.253e-06/0.313, allocations: 0 / 0.5499 GB, free: 22.41 MB / 382.1 MB Notification: Performance of matching and sorting (n=15): time 0.001038/0.314, allocations: 458.5 kB / 0.5504 GB, free: 22.12 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.988e-05/0.3141, allocations: 54.62 kB / 0.5504 GB, free: 22.06 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001243/0.3142, allocations: 185.8 kB / 0.5506 GB, free: 21.93 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.307e-05/0.3142, allocations: 29.7 kB / 0.5506 GB, free: 21.89 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.668e-05/0.3143, allocations: 171.2 kB / 0.5508 GB, free: 21.74 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.696e-05/0.3143, allocations: 57.19 kB / 0.5509 GB, free: 21.7 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.074e-05/0.3143, allocations: 38.11 kB / 0.5509 GB, free: 21.67 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.193e-05/0.3144, allocations: 325.3 kB / 0.5512 GB, free: 21.35 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001156/0.3145, allocations: 48.14 kB / 0.5513 GB, free: 21.33 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001244/0.3146, allocations: 105.9 kB / 0.5514 GB, free: 21.25 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002195/0.3148, allocations: 142.4 kB / 0.5515 GB, free: 21.15 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-06/0.3148, allocations: 0 / 0.5515 GB, free: 21.15 MB / 382.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003083/0.3151, allocations: 194.7 kB / 0.5517 GB, free: 21.05 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.418e-05/0.3152, allocations: 6.375 kB / 0.5517 GB, free: 21.05 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.619e-06/0.3152, allocations: 0 / 0.5517 GB, free: 21.05 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.606e-05/0.3152, allocations: 7.203 kB / 0.5517 GB, free: 21.05 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000204/0.3154, allocations: 53.52 kB / 0.5517 GB, free: 21.04 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.344e-06/0.3154, allocations: 3.25 kB / 0.5517 GB, free: 21.04 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001051/0.3155, allocations: 11.12 kB / 0.5518 GB, free: 21.04 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.203e-05/0.3155, allocations: 9.875 kB / 0.5518 GB, free: 21.04 MB / 382.1 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 8.028e-05/0.3156, allocations: 128.2 kB / 0.5519 GB, free: 20.91 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.477e-05/0.3156, allocations: 17.56 kB / 0.5519 GB, free: 20.9 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.065e-05/0.3157, allocations: 20.69 kB / 0.5519 GB, free: 20.88 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.3157, allocations: 0 / 0.5519 GB, free: 20.88 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.3157, allocations: 6.766 kB / 0.5519 GB, free: 20.88 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.3157, allocations: 7.938 kB / 0.5519 GB, free: 20.88 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002047/0.3159, allocations: 243.2 kB / 0.5522 GB, free: 20.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.3159, allocations: 0 / 0.5522 GB, free: 20.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001622/0.316, allocations: 32.44 kB / 0.5522 GB, free: 20.68 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.414e-06/0.316, allocations: 0 / 0.5522 GB, free: 20.68 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.086e-05/0.3161, allocations: 7.469 kB / 0.5522 GB, free: 20.67 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.794e-06/0.3161, allocations: 3.156 kB / 0.5522 GB, free: 20.67 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.3161, allocations: 0 / 0.5522 GB, free: 20.67 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003836/0.3164, allocations: 295.3 kB / 0.5525 GB, free: 20.47 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.381e-05/0.3165, allocations: 21.39 kB / 0.5525 GB, free: 20.46 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.379e-05/0.3165, allocations: 3 kB / 0.5525 GB, free: 20.46 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001282/0.3167, allocations: 10.47 kB / 0.5525 GB, free: 20.45 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.578e-05/0.3167, allocations: 10.36 kB / 0.5525 GB, free: 20.45 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.526e-06/0.3167, allocations: 7 kB / 0.5525 GB, free: 20.45 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.585e-05/0.3168, allocations: 136.6 kB / 0.5527 GB, free: 20.35 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3168, allocations: 0 / 0.5527 GB, free: 20.35 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002676/0.317, allocations: 39.97 kB / 0.5527 GB, free: 20.35 MB / 382.1 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.0004991/0.3175, allocations: 0.8259 MB / 0.5535 GB, free: 19.62 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002894/0.3178, allocations: 119.9 kB / 0.5536 GB, free: 19.58 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.3178, allocations: 3.938 kB / 0.5536 GB, free: 19.57 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001085/0.3179, allocations: 56.06 kB / 0.5537 GB, free: 19.56 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002957/0.3182, allocations: 22.03 kB / 0.5537 GB, free: 19.54 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002082/0.3203, allocations: 2.161 MB / 0.5558 GB, free: 17.88 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001545/0.3205, allocations: 0.7401 MB / 0.5565 GB, free: 17.18 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 7.368e-05/0.3205, allocations: 17.64 kB / 0.5566 GB, free: 17.18 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.103e-05/0.3206, allocations: 59.56 kB / 0.5566 GB, free: 17.13 MB / 382.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3206, allocations: 0 / 0.5566 GB, free: 17.13 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03707/0.3577, allocations: 3.618 MB / 0.5601 GB, free: 16.55 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.11/11.47, allocations: 2.938 kB / 0.5601 GB, free: 16.55 MB / 382.1 MB " [Timeout remaining time 648] (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: 14.247148738999385] Failed to read output from testmodel.py, exit status != 0: 11.576679063000483 11.588595447 11.275939413 Calling exit ...