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.001692/0.001692, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.002141/0.002141, allocations: 216.4 kB / 23.04 MB, free: 5.074 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.474/1.474, allocations: 230.6 MB / 256.8 MB, free: 7.984 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.009791/0.009791, allocations: 1.236 MB / 314.5 MB, free: 1.969 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.002728/0.002728, allocations: 63.91 kB / 436.8 MB, free: 16.47 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09729/0.1, allocations: 53.63 MB / 490.5 MB, free: 10.74 MB / 350.1 MB Notification: Performance of NFInst.instantiate(FluxTubesExtension.Examples.ToroidalCoreAirgap): time 0.004678/0.1047, allocations: 3.038 MB / 493.5 MB, free: 7.684 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002642/0.1073, allocations: 1.452 MB / 495 MB, free: 6.223 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001612/0.1075, allocations: 7.938 kB / 495 MB, free: 6.215 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000474/0.108, allocations: 155 kB / 495.1 MB, free: 6.062 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000301/0.1083, allocations: 135 kB / 495.3 MB, free: 5.93 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007098/0.109, allocations: 282.9 kB / 495.5 MB, free: 5.656 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004756/0.1095, allocations: 426.4 kB / 495.9 MB, free: 5.238 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001999/0.1097, allocations: 107.7 kB / 496.1 MB, free: 5.129 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003084/0.11, allocations: 183.2 kB / 496.2 MB, free: 4.949 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002699/0.1102, allocations: 203.1 kB / 496.4 MB, free: 4.75 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.957e-05/0.1103, allocations: 32 kB / 496.5 MB, free: 4.719 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000408/0.1107, allocations: 251.5 kB / 496.7 MB, free: 4.473 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000133/0.1108, allocations: 87.69 kB / 496.8 MB, free: 4.387 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000193/0.111, allocations: 195 kB / 497 MB, free: 4.195 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007288/0.1118, allocations: 0.5213 MB / 497.5 MB, free: 3.672 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.481e-06/0.1118, allocations: 0 / 497.5 MB, free: 3.672 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.714e-06/0.1118, allocations: 0 / 497.5 MB, free: 3.672 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.051e-05/0.1118, allocations: 3.984 kB / 497.5 MB, free: 3.668 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.001445/0.1132, allocations: 0.645 MB / 498.2 MB, free: 2.992 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.117e-05/0.1133, allocations: 12.03 kB / 498.2 MB, free: 2.98 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.692e-05/0.1133, allocations: 12.84 kB / 498.2 MB, free: 2.965 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.087e-05/0.1134, allocations: 70.72 kB / 498.2 MB, free: 2.887 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.487e-05/0.1135, allocations: 44.66 kB / 498.3 MB, free: 2.844 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005686/0.114, allocations: 269.9 kB / 498.6 MB, free: 2.559 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.113e-05/0.1141, allocations: 29.03 kB / 498.6 MB, free: 2.531 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.211e-05/0.1141, allocations: 28.38 kB / 498.6 MB, free: 2.504 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006674/0.1148, allocations: 306 kB / 498.9 MB, free: 2.203 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.232e-05/0.1148, allocations: 0 / 498.9 MB, free: 2.203 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.935e-05/0.1148, allocations: 8 kB / 498.9 MB, free: 2.195 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.007e-05/0.1148, allocations: 12 kB / 498.9 MB, free: 2.184 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000663/0.1155, allocations: 278.4 kB / 499.2 MB, free: 1.906 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001859/0.1174, allocations: 1.092 MB / 0.4886 GB, free: 0.7266 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000449/0.1178, allocations: 196.9 kB / 0.4888 GB, free: 0.5273 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002019/0.118, allocations: 76.81 kB / 0.4888 GB, free: 460 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.776e-05/0.1181, allocations: 19.98 kB / 0.4888 GB, free: 440 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.988e-05/0.1181, allocations: 34.56 kB / 0.4889 GB, free: 396 kB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.753e-06/0.1181, allocations: 3.938 kB / 0.4889 GB, free: 392 kB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.002992/0.1211, allocations: 0.89 MB / 0.4898 GB, free: 15.48 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.339e-05/0.1211, allocations: 51.64 kB / 0.4898 GB, free: 15.42 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003917/0.1215, allocations: 328.4 kB / 0.4901 GB, free: 15.09 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.372e-05/0.1216, allocations: 25.7 kB / 0.4901 GB, free: 15.06 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001873/0.1218, allocations: 252.1 kB / 0.4904 GB, free: 14.81 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.16e-05/0.1218, allocations: 99.16 kB / 0.4905 GB, free: 14.71 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001191/0.122, allocations: 70.03 kB / 0.4905 GB, free: 14.63 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001728/0.1221, allocations: 342.8 kB / 0.4909 GB, free: 14.29 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000318/0.1225, allocations: 116.7 kB / 0.491 GB, free: 14.18 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004059/0.1229, allocations: 217.1 kB / 0.4912 GB, free: 13.92 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007041/0.1236, allocations: 352.6 kB / 0.4915 GB, free: 13.54 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.1236, allocations: 15.88 kB / 0.4915 GB, free: 13.52 MB / 366.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.00139/0.125, allocations: 0.5901 MB / 0.4921 GB, free: 12.92 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.285e-05/0.125, allocations: 11.98 kB / 0.4921 GB, free: 12.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/0.125, allocations: 0 / 0.4921 GB, free: 12.91 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001901/0.1269, allocations: 0.8234 MB / 0.4929 GB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003224/0.1272, allocations: 75.83 kB / 0.493 GB, free: 12.01 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000898/0.1281, allocations: 1.179 MB / 0.4942 GB, free: 10.78 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002717/0.1284, allocations: 27.92 kB / 0.4942 GB, free: 10.75 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.101e-05/0.1284, allocations: 23.92 kB / 0.4942 GB, free: 10.73 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.0001833/0.1286, allocations: 153.8 kB / 0.4943 GB, free: 10.57 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.948e-05/0.1287, allocations: 31.86 kB / 0.4944 GB, free: 10.54 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001322/0.13, allocations: 0.5368 MB / 0.4949 GB, free: 9.988 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.992e-06/0.13, allocations: 4 kB / 0.4949 GB, free: 9.984 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.13, allocations: 0 / 0.4949 GB, free: 9.984 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/0.13, allocations: 0 / 0.4949 GB, free: 9.984 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004669/0.1305, allocations: 352.4 kB / 0.4952 GB, free: 9.598 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.1305, allocations: 0 / 0.4952 GB, free: 9.598 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002094/0.1307, allocations: 35.97 kB / 0.4953 GB, free: 9.562 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001773/0.1324, allocations: 0.8193 MB / 0.4961 GB, free: 8.742 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.931e-05/0.1325, allocations: 4 kB / 0.4961 GB, free: 8.738 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008343/0.1333, allocations: 1.175 MB / 0.4972 GB, free: 7.512 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.1333, allocations: 0 / 0.4972 GB, free: 7.512 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001293/0.1346, allocations: 0.5902 MB / 0.4978 GB, free: 6.902 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.217e-05/0.1347, allocations: 35.75 kB / 0.4978 GB, free: 6.867 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.1e-05/0.1347, allocations: 4.188 kB / 0.4978 GB, free: 6.863 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002107/0.1349, allocations: 19.98 kB / 0.4979 GB, free: 6.844 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.527e-05/0.135, allocations: 23.89 kB / 0.4979 GB, free: 6.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.657e-05/0.135, allocations: 15.94 kB / 0.4979 GB, free: 6.805 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002353/0.1352, allocations: 219.1 kB / 0.4981 GB, free: 6.59 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1352, allocations: 4 kB / 0.4981 GB, free: 6.586 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004283/0.1356, allocations: 99.88 kB / 0.4982 GB, free: 6.488 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.001695/0.1373, allocations: 1.163 MB / 0.4993 GB, free: 5.293 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008885/0.1382, allocations: 316.3 kB / 0.4996 GB, free: 4.984 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.1382, allocations: 0 / 0.4996 GB, free: 4.984 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004737/0.1387, allocations: 167.8 kB / 0.4998 GB, free: 4.82 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003773/0.1391, allocations: 42.7 kB / 0.4998 GB, free: 4.781 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00628/0.1454, allocations: 3.816 MB / 0.5036 GB, free: 0.7969 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1804/0.3258, allocations: 0.7951 MB / 0.5043 GB, free: 26.2 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002065/0.326, allocations: 33.91 kB / 0.5044 GB, free: 26.2 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001856/0.3262, allocations: 115.8 kB / 0.5045 GB, free: 26.19 MB / 366.1 MB Notification: Performance of SimCode: time 1.052e-06/0.3262, allocations: 0 / 0.5045 GB, free: 26.19 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03199/0.3582, allocations: 7.752 MB / 0.5121 GB, free: 25.21 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.86/13.21, allocations: 6.969 kB / 0.5121 GB, free: 25.21 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 & /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: 15.871478397981264] Failed to read output from testmodel.py, exit status != 0: 13.394861534936354 13.414423794 13.299522219 Calling exit ...