Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.Magnetic.TestTransformer.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.001278/0.001278, allocations: 103.8 kB / 16.45 MB, free: 6.449 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.486/1.486, allocations: 230.6 MB / 249.8 MB, free: 9.238 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.001659/0.001659, allocations: 212.1 kB / 306 MB, free: 4.309 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.04146/0.04146, allocations: 8.919 MB / 371 MB, free: 3.438 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.TestTransformer,fileNamePrefix="HanserModelica_HanserModelica_Magnetic_TestTransformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Magnetic.TestTransformer,fileNamePrefix="HanserModelica_HanserModelica_Magnetic_TestTransformer",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.00247/0.00247, allocations: 83.86 kB / 495.7 MB, free: 9.863 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3047/0.3071, allocations: 55.55 MB / 0.5384 GB, free: 26.66 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Magnetic.TestTransformer): time 0.003787/0.3109, allocations: 3.868 MB / 0.5421 GB, free: 23.92 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00157/0.3125, allocations: 0.9925 MB / 0.5431 GB, free: 23.2 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002944/0.3128, allocations: 13.38 kB / 0.5431 GB, free: 23.19 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002312/0.313, allocations: 88.48 kB / 0.5432 GB, free: 23.14 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003874/0.3134, allocations: 166.1 kB / 0.5434 GB, free: 23.02 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003838/0.3138, allocations: 179.4 kB / 0.5435 GB, free: 22.9 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005126/0.3143, allocations: 0.6416 MB / 0.5442 GB, free: 22.57 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002961/0.3146, allocations: 197.4 kB / 0.5443 GB, free: 22.45 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002982/0.3149, allocations: 274.8 kB / 0.5446 GB, free: 22.31 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002633/0.3151, allocations: 278.4 kB / 0.5449 GB, free: 22.16 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.091e-05/0.3152, allocations: 66.59 kB / 0.5449 GB, free: 22.16 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001328/0.3154, allocations: 70.47 kB / 0.545 GB, free: 22.16 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.109e-05/0.3154, allocations: 134.7 kB / 0.5451 GB, free: 22.07 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002371/0.3157, allocations: 307.8 kB / 0.5454 GB, free: 21.88 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007102/0.3164, allocations: 0.7433 MB / 0.5461 GB, free: 21.56 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.142e-06/0.3164, allocations: 0 / 0.5461 GB, free: 21.56 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.815e-06/0.3164, allocations: 0 / 0.5461 GB, free: 21.56 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.312e-05/0.3164, allocations: 0 / 0.5461 GB, free: 21.56 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: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.001479/0.3179, allocations: 0.8458 MB / 0.547 GB, free: 20.93 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.508e-05/0.3179, allocations: 6.406 kB / 0.547 GB, free: 20.93 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001189/0.3181, allocations: 95.48 kB / 0.5471 GB, free: 20.86 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002611/0.3183, allocations: 69.91 kB / 0.5471 GB, free: 20.83 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005711/0.3189, allocations: 380.7 kB / 0.5475 GB, free: 20.51 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.495e-05/0.3189, allocations: 38.91 kB / 0.5475 GB, free: 20.49 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.63e-05/0.319, allocations: 50.25 kB / 0.5476 GB, free: 20.48 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009032/0.3199, allocations: 0.5185 MB / 0.5481 GB, free: 20.23 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.63e-05/0.3199, allocations: 0 / 0.5481 GB, free: 20.23 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.606e-05/0.32, allocations: 30.19 kB / 0.5481 GB, free: 20.2 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.345e-05/0.32, allocations: 9.688 kB / 0.5481 GB, free: 20.2 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007542/0.3208, allocations: 390.4 kB / 0.5485 GB, free: 20.07 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002475/0.3232, allocations: 1.897 MB / 0.5504 GB, free: 18.79 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006763/0.3239, allocations: 298.4 kB / 0.5506 GB, free: 18.66 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004897/0.3244, allocations: 213 kB / 0.5508 GB, free: 18.59 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.105e-05/0.3244, allocations: 6.594 kB / 0.5508 GB, free: 18.59 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.907e-05/0.3245, allocations: 38.2 kB / 0.5509 GB, free: 18.55 MB / 382.1 MB Notification: Performance of pre-optimization done (n=33): time 1.603e-06/0.3245, allocations: 4 kB / 0.5509 GB, free: 18.54 MB / 382.1 MB Notification: Performance of matching and sorting (n=47): time 0.004438/0.3289, allocations: 1.728 MB / 0.5526 GB, free: 17.66 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.806e-05/0.3289, allocations: 58.03 kB / 0.5526 GB, free: 17.6 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002854/0.3292, allocations: 309.5 kB / 0.5529 GB, free: 17.42 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.767e-05/0.3292, allocations: 32.67 kB / 0.553 GB, free: 17.39 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001157/0.3294, allocations: 267.2 kB / 0.5532 GB, free: 17.17 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001046/0.3295, allocations: 172.9 kB / 0.5534 GB, free: 17.03 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001412/0.3296, allocations: 85.56 kB / 0.5535 GB, free: 16.98 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.566e-05/0.3297, allocations: 346.5 kB / 0.5538 GB, free: 16.65 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003322/0.33, allocations: 146.3 kB / 0.5539 GB, free: 16.6 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003537/0.3304, allocations: 243.1 kB / 0.5542 GB, free: 16.45 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006714/0.331, allocations: 419.3 kB / 0.5546 GB, free: 16.2 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.3311, allocations: 0 / 0.5546 GB, free: 16.2 MB / 382.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0009943/0.332, allocations: 0.5524 MB / 0.5551 GB, free: 15.95 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.946e-05/0.3321, allocations: 5.906 kB / 0.5551 GB, free: 15.95 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.267e-06/0.3321, allocations: 3 kB / 0.5551 GB, free: 15.95 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002733/0.3323, allocations: 103.5 kB / 0.5552 GB, free: 15.9 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004326/0.3328, allocations: 107.6 kB / 0.5553 GB, free: 15.89 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002474/0.3353, allocations: 3.592 MB / 0.5588 GB, free: 12.48 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003451/0.3356, allocations: 21.95 kB / 0.5588 GB, free: 12.47 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.272e-05/0.3356, allocations: 20.97 kB / 0.5589 GB, free: 12.46 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (51): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002754/0.3359, allocations: 191.4 kB / 0.559 GB, free: 12.29 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.093e-05/0.336, allocations: 38.33 kB / 0.5591 GB, free: 12.27 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.88e-05/0.3361, allocations: 49.61 kB / 0.5591 GB, free: 12.23 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.3361, allocations: 5.906 kB / 0.5591 GB, free: 12.23 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.648e-05/0.3361, allocations: 3.125 kB / 0.5591 GB, free: 12.23 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.413e-06/0.3361, allocations: 3.188 kB / 0.5591 GB, free: 12.23 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00167/0.3378, allocations: 1.123 MB / 0.5602 GB, free: 11.57 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.3378, allocations: 0 / 0.5602 GB, free: 11.57 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003932/0.3382, allocations: 81.56 kB / 0.5603 GB, free: 11.56 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002737/0.3385, allocations: 104.9 kB / 0.5604 GB, free: 11.51 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.29e-05/0.3385, allocations: 16.73 kB / 0.5604 GB, free: 11.5 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00236/0.3408, allocations: 3.595 MB / 0.5639 GB, free: 8.086 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.3409, allocations: 3.938 kB / 0.5639 GB, free: 8.082 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001231/0.3421, allocations: 0.7686 MB / 0.5647 GB, free: 7.664 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001451/0.3422, allocations: 149.3 kB / 0.5648 GB, free: 7.523 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.577e-05/0.3423, allocations: 12.06 kB / 0.5648 GB, free: 7.516 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002905/0.3426, allocations: 27.69 kB / 0.5649 GB, free: 7.508 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001/0.3427, allocations: 35.91 kB / 0.5649 GB, free: 7.5 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.723e-05/0.3427, allocations: 14.83 kB / 0.5649 GB, free: 7.496 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002265/0.3429, allocations: 210 kB / 0.5651 GB, free: 7.379 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3429, allocations: 4 kB / 0.5651 GB, free: 7.375 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006823/0.3436, allocations: 119.8 kB / 0.5652 GB, free: 7.359 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (transformer.converter1.i,transformer.eddyCurrent.Phi) * 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 (37): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001645/0.3452, allocations: 1.314 MB / 0.5665 GB, free: 6.406 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001259/0.3465, allocations: 0.6471 MB / 0.5672 GB, free: 6.016 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.987e-06/0.3465, allocations: 2.906 kB / 0.5672 GB, free: 6.016 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006895/0.3472, allocations: 479.6 kB / 0.5676 GB, free: 5.691 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004163/0.3476, allocations: 52.06 kB / 0.5677 GB, free: 5.664 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005787/0.3534, allocations: 4.048 MB / 0.5716 GB, free: 3.102 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003021/0.3537, allocations: 0.8419 MB / 0.5724 GB, free: 2.395 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001916/0.3539, allocations: 50.25 kB / 0.5725 GB, free: 2.379 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000205/0.3541, allocations: 165.2 kB / 0.5726 GB, free: 2.254 MB / 382.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3541, allocations: 4 kB / 0.5726 GB, free: 2.25 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06047/0.4146, allocations: 8.982 MB / 0.5814 GB, free: 15.33 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.23/10.64, allocations: 7.453 kB / 0.5814 GB, free: 15.32 MB / 398.1 MB " [Timeout remaining time 649] (rm -f HanserModelica_HanserModelica.Magnetic.TestTransformer.pipe ; mkfifo HanserModelica_HanserModelica.Magnetic.TestTransformer.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Magnetic.TestTransformer.pipe >> ../files/HanserModelica_HanserModelica.Magnetic.TestTransformer.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.Magnetic.TestTransformer_res.csv --start-time 0 --stop-time 0.08 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 HanserModelica_HanserModelica_Magnetic_TestTransformer.fmu > HanserModelica_HanserModelica.Magnetic.TestTransformer.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.448739523999393] Failed to read output from testmodel.py, exit status != 0: 10.730040398004348 10.756662453 10.435015373 Calling exit ...