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.001526/0.001526, allocations: 97.88 kB / 19.73 MB, free: 2.117 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.00194/0.00194, allocations: 215.4 kB / 23.03 MB, free: 4.922 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.493/1.493, allocations: 230.6 MB / 256.8 MB, free: 7.812 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.009319/0.009319, allocations: 1.244 MB / 314.5 MB, free: 1.77 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(FluxTubesExtension.Examples.ToroidalCoreAirgap,fileNamePrefix="FluxTubesExtension_FluxTubesExtension_Examples_ToroidalCoreAirgap",fmuType="cs",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.001934/0.001934, allocations: 63.91 kB / 436.8 MB, free: 16.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09916/0.1011, allocations: 53.64 MB / 490.4 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFInst.instantiate(FluxTubesExtension.Examples.ToroidalCoreAirgap): time 0.005106/0.1062, allocations: 2.819 MB / 493.2 MB, free: 7.715 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002703/0.1089, allocations: 1.32 MB / 494.5 MB, free: 6.387 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002972/0.1092, allocations: 4 kB / 494.5 MB, free: 6.383 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006222/0.1098, allocations: 151 kB / 494.7 MB, free: 6.234 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005313/0.1104, allocations: 123.1 kB / 494.8 MB, free: 6.113 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008713/0.1112, allocations: 283.3 kB / 495.1 MB, free: 5.836 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006893/0.1119, allocations: 434.3 kB / 495.5 MB, free: 5.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002425/0.1122, allocations: 99.69 kB / 495.6 MB, free: 5.309 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003887/0.1126, allocations: 187.2 kB / 495.8 MB, free: 5.125 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003094/0.1129, allocations: 199.1 kB / 496 MB, free: 4.93 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.82e-05/0.1129, allocations: 32 kB / 496 MB, free: 4.898 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003443/0.1133, allocations: 199.6 kB / 496.2 MB, free: 4.703 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001357/0.1134, allocations: 99.67 kB / 496.3 MB, free: 4.605 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001877/0.1136, allocations: 155.2 kB / 496.5 MB, free: 4.453 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007311/0.1143, allocations: 0.5252 MB / 497 MB, free: 3.926 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.1143, allocations: 0 / 497 MB, free: 3.926 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1143, allocations: 0 / 497 MB, free: 3.926 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.534e-05/0.1143, allocations: 0 / 497 MB, free: 3.926 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.001451/0.1158, allocations: 0.6411 MB / 497.6 MB, free: 3.254 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.822e-05/0.1158, allocations: 12.03 kB / 497.6 MB, free: 3.242 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.522e-05/0.1159, allocations: 8.844 kB / 497.7 MB, free: 3.23 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.398e-05/0.116, allocations: 66.72 kB / 497.7 MB, free: 3.156 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.929e-05/0.1161, allocations: 44.66 kB / 497.8 MB, free: 3.113 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005878/0.1166, allocations: 269.8 kB / 498 MB, free: 2.828 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.227e-05/0.1167, allocations: 25.03 kB / 498 MB, free: 2.805 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.892e-05/0.1167, allocations: 36.38 kB / 498.1 MB, free: 2.77 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006597/0.1174, allocations: 306 kB / 498.4 MB, free: 2.469 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.175e-05/0.1174, allocations: 0 / 498.4 MB, free: 2.469 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.003e-05/0.1174, allocations: 15.94 kB / 498.4 MB, free: 2.453 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.576e-06/0.1174, allocations: 8 kB / 498.4 MB, free: 2.445 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006656/0.1181, allocations: 274.5 kB / 498.7 MB, free: 2.172 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001809/0.1199, allocations: 0.9752 MB / 499.6 MB, free: 1.121 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004694/0.1204, allocations: 190.4 kB / 499.8 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002201/0.1206, allocations: 80.91 kB / 499.9 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.802e-05/0.1207, allocations: 11.98 kB / 499.9 MB, free: 0.832 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.799e-05/0.1207, allocations: 38.5 kB / 500 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.643e-06/0.1207, allocations: 4 kB / 500 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.003232/0.1239, allocations: 0.8925 MB / 0.4891 GB, free: 15.88 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.667e-05/0.124, allocations: 55.64 kB / 0.4892 GB, free: 15.81 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004516/0.1244, allocations: 324.4 kB / 0.4895 GB, free: 15.49 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.015e-05/0.1245, allocations: 29.7 kB / 0.4895 GB, free: 15.45 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002114/0.1247, allocations: 248.1 kB / 0.4897 GB, free: 15.21 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.172e-05/0.1248, allocations: 95.17 kB / 0.4898 GB, free: 15.11 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001405/0.1249, allocations: 74.02 kB / 0.4899 GB, free: 15.03 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001553/0.1251, allocations: 342.8 kB / 0.4902 GB, free: 14.69 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003298/0.1254, allocations: 116.7 kB / 0.4903 GB, free: 14.57 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003951/0.1258, allocations: 225.2 kB / 0.4906 GB, free: 14.31 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007234/0.1265, allocations: 348.7 kB / 0.4909 GB, free: 13.93 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.282e-06/0.1265, allocations: 7.938 kB / 0.4909 GB, free: 13.92 MB / 366.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001467/0.128, allocations: 0.6001 MB / 0.4915 GB, free: 13.31 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.432e-05/0.128, allocations: 8 kB / 0.4915 GB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.919e-06/0.128, allocations: 0 / 0.4915 GB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002008/0.13, allocations: 0.8237 MB / 0.4923 GB, free: 12.48 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003394/0.1304, allocations: 75.83 kB / 0.4924 GB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008831/0.1313, allocations: 1.171 MB / 0.4935 GB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003193/0.1316, allocations: 36.05 kB / 0.4936 GB, free: 11.15 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.585e-05/0.1316, allocations: 19.94 kB / 0.4936 GB, free: 11.13 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.0002054/0.1318, allocations: 153.8 kB / 0.4937 GB, free: 10.97 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.254e-05/0.1319, allocations: 31.81 kB / 0.4937 GB, free: 10.94 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001329/0.1332, allocations: 0.529 MB / 0.4943 GB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.007e-06/0.1332, allocations: 4 kB / 0.4943 GB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.269e-06/0.1332, allocations: 0 / 0.4943 GB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.085e-06/0.1332, allocations: 7.969 kB / 0.4943 GB, free: 10.38 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004571/0.1337, allocations: 316.5 kB / 0.4946 GB, free: 10.03 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.615e-06/0.1337, allocations: 3.984 kB / 0.4946 GB, free: 10.03 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002319/0.1339, allocations: 43.91 kB / 0.4946 GB, free: 9.984 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001868/0.1358, allocations: 0.8081 MB / 0.4954 GB, free: 9.176 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.31e-05/0.1358, allocations: 7.984 kB / 0.4954 GB, free: 9.168 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008316/0.1367, allocations: 1.179 MB / 0.4966 GB, free: 7.938 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/0.1367, allocations: 0 / 0.4966 GB, free: 7.938 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001336/0.138, allocations: 0.5977 MB / 0.4972 GB, free: 7.32 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.897e-05/0.1381, allocations: 31.77 kB / 0.4972 GB, free: 7.289 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.599e-05/0.1381, allocations: 8 kB / 0.4972 GB, free: 7.281 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002258/0.1383, allocations: 19.97 kB / 0.4972 GB, free: 7.262 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.109e-05/0.1384, allocations: 19.91 kB / 0.4972 GB, free: 7.242 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.68e-05/0.1384, allocations: 8 kB / 0.4972 GB, free: 7.234 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000254/0.1387, allocations: 219.1 kB / 0.4974 GB, free: 7.02 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1387, allocations: 0 / 0.4974 GB, free: 7.02 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004635/0.1391, allocations: 107.9 kB / 0.4975 GB, free: 6.914 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.001698/0.1408, allocations: 1.175 MB / 0.4987 GB, free: 5.707 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008936/0.1417, allocations: 300.3 kB / 0.499 GB, free: 5.414 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.1417, allocations: 192 / 0.499 GB, free: 5.414 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004728/0.1422, allocations: 171.8 kB / 0.4991 GB, free: 5.246 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003804/0.1426, allocations: 41.06 kB / 0.4992 GB, free: 5.207 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005937/0.1485, allocations: 3.819 MB / 0.5029 GB, free: 1.219 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000191/0.1487, allocations: 182.5 kB / 0.5031 GB, free: 1.016 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001408/0.1489, allocations: 42.88 kB / 0.5031 GB, free: 0.9766 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001809/0.149, allocations: 115.4 kB / 0.5032 GB, free: 0.8633 MB / 366.1 MB Notification: Performance of SimCode: time 1.092e-06/0.149, allocations: 0 / 0.5032 GB, free: 0.8633 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2384/0.3874, allocations: 7.508 MB / 0.5106 GB, free: 26.41 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.15/13.54, allocations: 9.188 kB / 0.5106 GB, free: 26.41 MB / 366.1 MB " [Timeout remaining time 646] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_FluxTubesExtension_FluxTubesExtension_Examples_ToroidalCoreAirgap_fmu --startTime=0 --stopTime=0.05 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 FluxTubesExtension_FluxTubesExtension_Examples_ToroidalCoreAirgap.fmu > FluxTubesExtension_FluxTubesExtension.Examples.ToroidalCoreAirgap.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 16.175412539974786] Failed to read output from testmodel.py, exit status != 0: 13.71373523492366 13.731904372 13.614382194 Calling exit ...