Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr FluxTubesExtension_FluxTubesExtension.Examples.ToroidalCoreAirgap.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.001274/0.001274, allocations: 114.3 kB / 18.94 MB, free: 2.934 MB / 14.72 MB " [Timeout remaining time 180] 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.001422/0.001422, allocations: 217 kB / 22.25 MB, free: 5.082 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.415/1.415, allocations: 230.6 MB / 256 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/FluxTubesExtension main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/FluxTubesExtension main/package.mo): time 0.009141/0.009141, allocations: 1.225 MB / 313.7 MB, free: 1.973 MB / 238.1 MB " [Timeout remaining time 180] Using package FluxTubesExtension with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/FluxTubesExtension main/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 Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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(FluxTubesExtension.Examples.ToroidalCoreAirgap,fileNamePrefix="FluxTubesExtension_FluxTubesExtension_Examples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(FluxTubesExtension.Examples.ToroidalCoreAirgap,fileNamePrefix="FluxTubesExtension_FluxTubesExtension_Examples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: FluxTubesExtension 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.003197/0.003197, allocations: 63.91 kB / 436.1 MB, free: 16.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1066, allocations: 53.63 MB / 489.7 MB, free: 10.87 MB / 350.1 MB Notification: Performance of NFInst.instantiate(FluxTubesExtension.Examples.ToroidalCoreAirgap): time 0.004589/0.1112, allocations: 3.036 MB / 492.7 MB, free: 7.812 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002424/0.1136, allocations: 1.452 MB / 494.2 MB, free: 6.352 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001442/0.1137, allocations: 4 kB / 494.2 MB, free: 6.348 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004995/0.1142, allocations: 163 kB / 494.3 MB, free: 6.188 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003068/0.1145, allocations: 111.1 kB / 494.5 MB, free: 6.078 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007915/0.1153, allocations: 288.7 kB / 494.7 MB, free: 5.797 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004831/0.1158, allocations: 438.3 kB / 495.2 MB, free: 5.367 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002088/0.116, allocations: 99.69 kB / 495.3 MB, free: 5.266 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002948/0.1163, allocations: 187.3 kB / 495.4 MB, free: 5.082 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002686/0.1166, allocations: 195 kB / 495.6 MB, free: 4.891 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.125e-05/0.1166, allocations: 32 kB / 495.7 MB, free: 4.859 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003809/0.117, allocations: 247.6 kB / 495.9 MB, free: 4.617 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001215/0.1171, allocations: 99.66 kB / 496 MB, free: 4.52 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001781/0.1173, allocations: 194.9 kB / 496.2 MB, free: 4.328 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006427/0.118, allocations: 0.5213 MB / 496.7 MB, free: 3.805 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.118, allocations: 0 / 496.7 MB, free: 3.805 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.118, allocations: 4 kB / 496.7 MB, free: 3.801 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.925e-06/0.118, allocations: 0 / 496.7 MB, free: 3.801 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001297/0.1193, allocations: 0.6411 MB / 497.4 MB, free: 3.129 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.003e-05/0.1193, allocations: 16.03 kB / 497.4 MB, free: 3.113 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.703e-05/0.1194, allocations: 66.72 kB / 497.4 MB, free: 3.039 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.99e-05/0.1195, allocations: 44.66 kB / 497.5 MB, free: 2.996 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004788/0.1199, allocations: 257.9 kB / 497.7 MB, free: 2.719 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.019e-05/0.12, allocations: 29.03 kB / 497.8 MB, free: 2.691 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.392e-05/0.12, allocations: 28.38 kB / 497.8 MB, free: 2.664 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006091/0.1206, allocations: 310.1 kB / 498.1 MB, free: 2.359 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.297e-05/0.1206, allocations: 4 kB / 498.1 MB, free: 2.355 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.578e-05/0.1207, allocations: 8 kB / 498.1 MB, free: 2.348 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.091e-05/0.1207, allocations: 8 kB / 498.1 MB, free: 2.34 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006531/0.1213, allocations: 278.5 kB / 498.4 MB, free: 2.062 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001807/0.1231, allocations: 1.099 MB / 499.5 MB, free: 0.875 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004424/0.1236, allocations: 193.2 kB / 499.7 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002066/0.1238, allocations: 84.84 kB / 499.8 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.402e-05/0.1238, allocations: 15.92 kB / 499.8 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.32e-05/0.1239, allocations: 42.56 kB / 499.8 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.232e-06/0.1239, allocations: 0 / 499.8 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.002929/0.1268, allocations: 0.8974 MB / 0.489 GB, free: 15.62 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.981e-05/0.1269, allocations: 55.58 kB / 0.489 GB, free: 15.55 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003678/0.1272, allocations: 328.4 kB / 0.4893 GB, free: 15.23 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.635e-05/0.1273, allocations: 29.7 kB / 0.4894 GB, free: 15.19 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001774/0.1274, allocations: 244.1 kB / 0.4896 GB, free: 14.95 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.501e-05/0.1275, allocations: 99.17 kB / 0.4897 GB, free: 14.85 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001084/0.1276, allocations: 70.02 kB / 0.4898 GB, free: 14.77 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001551/0.1278, allocations: 338.8 kB / 0.4901 GB, free: 14.43 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003163/0.1281, allocations: 116.7 kB / 0.4902 GB, free: 14.32 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003844/0.1285, allocations: 221.2 kB / 0.4904 GB, free: 14.06 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007198/0.1292, allocations: 352.7 kB / 0.4908 GB, free: 13.68 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.1292, allocations: 0 / 0.4908 GB, free: 13.68 MB / 366.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001368/0.1306, allocations: 0.6003 MB / 0.4913 GB, free: 13.06 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.856e-05/0.1306, allocations: 8 kB / 0.4913 GB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.1306, allocations: 0 / 0.4913 GB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001956/0.1326, allocations: 0.826 MB / 0.4922 GB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003262/0.1329, allocations: 71.89 kB / 0.4922 GB, free: 12.16 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008927/0.1338, allocations: 1.175 MB / 0.4934 GB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002833/0.1341, allocations: 27.94 kB / 0.4934 GB, free: 10.91 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.916e-05/0.1341, allocations: 19.92 kB / 0.4934 GB, free: 10.89 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,4), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001906/0.1343, allocations: 161.8 kB / 0.4936 GB, free: 10.72 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.651e-05/0.1343, allocations: 31.81 kB / 0.4936 GB, free: 10.69 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001322/0.1357, allocations: 0.533 MB / 0.4941 GB, free: 10.14 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.163e-06/0.1357, allocations: 4 kB / 0.4941 GB, free: 10.14 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.1357, allocations: 0 / 0.4941 GB, free: 10.14 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/0.1357, allocations: 3.984 kB / 0.4941 GB, free: 10.13 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004772/0.1362, allocations: 352.4 kB / 0.4945 GB, free: 9.746 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.1362, allocations: 0 / 0.4945 GB, free: 9.746 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002359/0.1364, allocations: 44.03 kB / 0.4945 GB, free: 9.703 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001836/0.1382, allocations: 0.8156 MB / 0.4953 GB, free: 8.887 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.973e-05/0.1383, allocations: 4 kB / 0.4953 GB, free: 8.883 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008321/0.1391, allocations: 1.175 MB / 0.4965 GB, free: 7.656 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.153e-06/0.1391, allocations: 0 / 0.4965 GB, free: 7.656 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001232/0.1403, allocations: 0.5937 MB / 0.497 GB, free: 7.043 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.59e-05/0.1404, allocations: 27.77 kB / 0.4971 GB, free: 7.016 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.033e-05/0.1404, allocations: 4 kB / 0.4971 GB, free: 7.012 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002134/0.1406, allocations: 23.97 kB / 0.4971 GB, free: 6.988 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.87e-05/0.1407, allocations: 23.91 kB / 0.4971 GB, free: 6.965 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.346e-05/0.1407, allocations: 4 kB / 0.4971 GB, free: 6.961 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002825/0.141, allocations: 227 kB / 0.4973 GB, free: 6.738 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.141, allocations: 4 kB / 0.4973 GB, free: 6.734 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000445/0.1415, allocations: 95.88 kB / 0.4974 GB, free: 6.641 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 17 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,4), (1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001766/0.1432, allocations: 1.175 MB / 0.4986 GB, free: 5.434 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008881/0.1441, allocations: 304.4 kB / 0.4989 GB, free: 5.137 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1441, allocations: 4.062 kB / 0.4989 GB, free: 5.133 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004738/0.1446, allocations: 163.8 kB / 0.499 GB, free: 4.973 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003723/0.145, allocations: 42.47 kB / 0.4991 GB, free: 4.934 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006136/0.1511, allocations: 3.827 MB / 0.5028 GB, free: 0.9414 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004153/0.1515, allocations: 0.7873 MB / 0.5036 GB, free: 128 kB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001431/0.1517, allocations: 39.08 kB / 0.5036 GB, free: 92 kB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1798/0.3315, allocations: 112.7 kB / 0.5037 GB, free: 26.21 MB / 366.1 MB Notification: Performance of SimCode: time 1.393e-06/0.3315, allocations: 0 / 0.5037 GB, free: 26.21 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03517/0.3667, allocations: 7.722 MB / 0.5113 GB, free: 25.29 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.77/13.14, allocations: 8.984 kB / 0.5113 GB, free: 25.29 MB / 366.1 MB " [Timeout remaining time 647] (rm -f FluxTubesExtension_FluxTubesExtension.Examples.ToroidalCoreAirgap.pipe ; mkfifo FluxTubesExtension_FluxTubesExtension.Examples.ToroidalCoreAirgap.pipe ; head -c 1048576 < FluxTubesExtension_FluxTubesExtension.Examples.ToroidalCoreAirgap.pipe >> ../files/FluxTubesExtension_FluxTubesExtension.Examples.ToroidalCoreAirgap.sim & python3 -m fmpy simulate --output-file FluxTubesExtension_FluxTubesExtension.Examples.ToroidalCoreAirgap_res.csv --start-time 0 --stop-time 0.05 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 FluxTubesExtension_FluxTubesExtension_Examples_ToroidalCoreAirgap.fmu > FluxTubesExtension_FluxTubesExtension.Examples.ToroidalCoreAirgap.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.655878345998644] Failed to read output from testmodel.py, exit status != 0: 13.254406500000186 13.266942079 13.145508982 Calling exit ...