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.001301/0.001301, allocations: 95.64 kB / 18.95 MB, free: 2.691 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.531/1.531, allocations: 230.6 MB / 252.7 MB, free: 14.28 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.002426/0.002426, allocations: 211.6 kB / 309.2 MB, free: 3.109 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.04174/0.04174, allocations: 8.916 MB / 374.6 MB, free: 6.621 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.002594/0.002594, allocations: 83.86 kB / 0.4891 GB, free: 44.77 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09849/0.1011, allocations: 55.61 MB / 0.5434 GB, free: 5.062 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Magnetic.Coupling): time 0.004076/0.1052, allocations: 2.412 MB / 0.5458 GB, free: 2.633 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001293/0.1065, allocations: 0.596 MB / 0.5464 GB, free: 2.031 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001834/0.1066, allocations: 4 kB / 0.5464 GB, free: 2.027 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001899/0.1068, allocations: 43.58 kB / 0.5464 GB, free: 1.984 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002118/0.107, allocations: 55.48 kB / 0.5465 GB, free: 1.93 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003189/0.1074, allocations: 67.86 kB / 0.5465 GB, free: 1.863 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003722/0.1077, allocations: 262.8 kB / 0.5468 GB, free: 1.605 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001951/0.1079, allocations: 71.23 kB / 0.5468 GB, free: 1.535 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001564/0.1081, allocations: 103.7 kB / 0.5469 GB, free: 1.434 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001828/0.1083, allocations: 99.47 kB / 0.547 GB, free: 1.336 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.735e-05/0.1083, allocations: 24 kB / 0.5471 GB, free: 1.312 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.453e-05/0.1084, allocations: 24 kB / 0.5471 GB, free: 1.289 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.408e-05/0.1084, allocations: 51.78 kB / 0.5471 GB, free: 1.238 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001155/0.1085, allocations: 99.59 kB / 0.5472 GB, free: 1.141 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003372/0.1089, allocations: 274.9 kB / 0.5475 GB, free: 0.8711 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.349e-06/0.1089, allocations: 0 / 0.5475 GB, free: 0.8711 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.1089, allocations: 0 / 0.5475 GB, free: 0.8711 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.686e-06/0.1089, allocations: 0 / 0.5475 GB, free: 0.8711 MB / 366.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.0008522/0.1097, allocations: 467.6 kB / 0.5479 GB, free: 396 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.237e-05/0.1098, allocations: 11.98 kB / 0.548 GB, free: 384 kB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.826e-05/0.1098, allocations: 54.73 kB / 0.548 GB, free: 320 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.575e-05/0.1099, allocations: 24.8 kB / 0.548 GB, free: 296 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003606/0.1103, allocations: 187.1 kB / 0.5482 GB, free: 84 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.725e-05/0.1103, allocations: 16.88 kB / 0.5482 GB, free: 68 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.338e-05/0.1103, allocations: 27.94 kB / 0.5482 GB, free: 40 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004936/0.1108, allocations: 268.6 kB / 0.5485 GB, free: 15.76 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.109e-05/0.1108, allocations: 0 / 0.5485 GB, free: 15.76 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.262e-05/0.1109, allocations: 4 kB / 0.5485 GB, free: 15.75 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.456e-06/0.1109, allocations: 11.94 kB / 0.5485 GB, free: 15.74 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003614/0.1112, allocations: 165.8 kB / 0.5487 GB, free: 15.58 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001318/0.1125, allocations: 0.7733 MB / 0.5494 GB, free: 14.75 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002985/0.1128, allocations: 122.5 kB / 0.5495 GB, free: 14.62 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001319/0.113, allocations: 48.84 kB / 0.5496 GB, free: 14.57 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.592e-05/0.113, allocations: 0 / 0.5496 GB, free: 14.57 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.685e-05/0.113, allocations: 38.56 kB / 0.5496 GB, free: 14.52 MB / 382.1 MB Notification: Performance of pre-optimization done (n=13): time 1.203e-06/0.113, allocations: 0 / 0.5496 GB, free: 14.52 MB / 382.1 MB Notification: Performance of matching and sorting (n=15): time 0.001255/0.1143, allocations: 457.9 kB / 0.5501 GB, free: 14.04 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.224e-05/0.1143, allocations: 55.41 kB / 0.5501 GB, free: 13.98 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001914/0.1145, allocations: 191.2 kB / 0.5503 GB, free: 13.78 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.417e-05/0.1145, allocations: 29.7 kB / 0.5503 GB, free: 13.74 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001108/0.1146, allocations: 164.2 kB / 0.5505 GB, free: 13.57 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.799e-05/0.1147, allocations: 55.52 kB / 0.5505 GB, free: 13.52 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.771e-05/0.1148, allocations: 45.7 kB / 0.5506 GB, free: 13.47 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001494/0.1149, allocations: 330.8 kB / 0.5509 GB, free: 13.14 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001357/0.115, allocations: 39.98 kB / 0.5509 GB, free: 13.1 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000173/0.1152, allocations: 102 kB / 0.551 GB, free: 12.98 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002914/0.1155, allocations: 142.9 kB / 0.5512 GB, free: 12.82 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.1155, allocations: 0 / 0.5512 GB, free: 12.82 MB / 382.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003954/0.1159, allocations: 195.5 kB / 0.5514 GB, free: 12.62 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.689e-05/0.1159, allocations: 4 kB / 0.5514 GB, free: 12.62 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.1159, allocations: 4 kB / 0.5514 GB, free: 12.62 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.426e-05/0.1159, allocations: 0 / 0.5514 GB, free: 12.62 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002238/0.1162, allocations: 56.09 kB / 0.5514 GB, free: 12.56 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.542e-06/0.1162, allocations: 0 / 0.5514 GB, free: 12.56 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001126/0.1163, allocations: 11.94 kB / 0.5514 GB, free: 12.55 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.477e-05/0.1163, allocations: 8 kB / 0.5514 GB, free: 12.54 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 0.0001271/0.1164, allocations: 129.8 kB / 0.5516 GB, free: 12.41 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.376e-05/0.1165, allocations: 19.86 kB / 0.5516 GB, free: 12.39 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.259e-05/0.1165, allocations: 25.45 kB / 0.5516 GB, free: 12.36 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.1165, allocations: 0 / 0.5516 GB, free: 12.36 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.1165, allocations: 7.938 kB / 0.5516 GB, free: 12.36 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.835e-06/0.1165, allocations: 3.938 kB / 0.5516 GB, free: 12.35 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002899/0.1168, allocations: 228.7 kB / 0.5518 GB, free: 12.09 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.235e-06/0.1168, allocations: 0 / 0.5518 GB, free: 12.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001733/0.117, allocations: 31.98 kB / 0.5519 GB, free: 12.05 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.117, allocations: 0 / 0.5519 GB, free: 12.05 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.325e-05/0.117, allocations: 4 kB / 0.5519 GB, free: 12.05 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.768e-06/0.117, allocations: 4 kB / 0.5519 GB, free: 12.05 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.117, allocations: 0 / 0.5519 GB, free: 12.05 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005012/0.1175, allocations: 295.2 kB / 0.5522 GB, free: 11.74 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.14e-05/0.1176, allocations: 23.92 kB / 0.5522 GB, free: 11.72 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.468e-05/0.1176, allocations: 8 kB / 0.5522 GB, free: 11.71 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001291/0.1177, allocations: 12 kB / 0.5522 GB, free: 11.7 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.267e-05/0.1178, allocations: 15.91 kB / 0.5522 GB, free: 11.68 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.14e-05/0.1178, allocations: 8 kB / 0.5522 GB, free: 11.68 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001247/0.1179, allocations: 127.2 kB / 0.5523 GB, free: 11.55 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1179, allocations: 0 / 0.5523 GB, free: 11.55 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002866/0.1182, allocations: 40 kB / 0.5524 GB, free: 11.51 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.0007805/0.119, allocations: 0.8237 MB / 0.5532 GB, free: 10.66 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003196/0.1193, allocations: 107.9 kB / 0.5533 GB, free: 10.55 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1193, allocations: 0 / 0.5533 GB, free: 10.55 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001304/0.1194, allocations: 59.91 kB / 0.5533 GB, free: 10.5 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003009/0.1197, allocations: 23.88 kB / 0.5534 GB, free: 10.47 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002859/0.1226, allocations: 2.146 MB / 0.5555 GB, free: 8.215 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001206/0.1227, allocations: 125.2 kB / 0.5556 GB, free: 8.074 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.767e-05/0.1228, allocations: 17.47 kB / 0.5556 GB, free: 8.059 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001055/0.1229, allocations: 71.41 kB / 0.5557 GB, free: 7.988 MB / 382.1 MB Notification: Performance of SimCode: time 4.1e-07/0.1229, allocations: 0 / 0.5557 GB, free: 7.988 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03512/0.158, allocations: 3.994 MB / 0.5596 GB, free: 4.102 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.91/11.07, allocations: 0 / 0.5596 GB, free: 4.102 MB / 382.1 MB " [Timeout remaining time 649] (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.14947997406125] Failed to read output from testmodel.py, exit status != 0: 11.178562021814287 11.43096887 11.319432162 Calling exit ...