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.001345/0.001345, allocations: 117.4 kB / 17.17 MB, free: 5.977 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.001332/0.001332, allocations: 214.3 kB / 20.13 MB, free: 3.035 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.488/1.488, allocations: 230.6 MB / 253.5 MB, free: 15.07 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.008944/0.008944, allocations: 1.233 MB / 310.8 MB, free: 3.121 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.002006/0.002006, allocations: 66.78 kB / 431.6 MB, free: 39.64 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09116/0.09316, allocations: 53.59 MB / 485.2 MB, free: 17.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(FluxTubesExtension.Examples.ToroidalCoreAirgap): time 0.003619/0.09678, allocations: 3.034 MB / 488.2 MB, free: 15.34 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001966/0.09875, allocations: 1.431 MB / 489.6 MB, free: 14.19 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001707/0.09892, allocations: 5.125 kB / 489.6 MB, free: 14.19 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004535/0.09937, allocations: 160.9 kB / 489.8 MB, free: 14.08 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002583/0.09963, allocations: 112.6 kB / 489.9 MB, free: 13.99 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005962/0.1002, allocations: 261.2 kB / 490.2 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000351/0.1006, allocations: 432.4 kB / 490.6 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001777/0.1008, allocations: 110.5 kB / 490.7 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002338/0.101, allocations: 184.5 kB / 490.9 MB, free: 13.35 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000199/0.1012, allocations: 197.4 kB / 491.1 MB, free: 13.21 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.012e-05/0.1012, allocations: 35.31 kB / 491.1 MB, free: 13.21 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002819/0.1015, allocations: 220.4 kB / 491.3 MB, free: 13.1 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.908e-05/0.1016, allocations: 92 kB / 491.4 MB, free: 13.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001335/0.1017, allocations: 190.8 kB / 491.6 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004885/0.1022, allocations: 0.5265 MB / 492.1 MB, free: 12.51 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.1022, allocations: 0 / 492.1 MB, free: 12.51 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1022, allocations: 1 kB / 492.1 MB, free: 12.51 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.035e-06/0.1022, allocations: 4 kB / 492.1 MB, free: 12.5 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.001105/0.1034, allocations: 0.7162 MB / 492.8 MB, free: 11.88 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.79e-05/0.1034, allocations: 13.53 kB / 492.8 MB, free: 11.88 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.224e-05/0.1034, allocations: 8.625 kB / 492.9 MB, free: 11.88 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.075e-05/0.1035, allocations: 70.09 kB / 492.9 MB, free: 11.81 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.499e-05/0.1035, allocations: 44.47 kB / 493 MB, free: 11.79 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000402/0.1039, allocations: 320.1 kB / 493.3 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.356e-05/0.104, allocations: 26.66 kB / 493.3 MB, free: 11.47 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.035e-05/0.104, allocations: 41.11 kB / 493.3 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005536/0.1046, allocations: 308.3 kB / 493.6 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.212e-05/0.1046, allocations: 0 / 493.6 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.697e-05/0.1046, allocations: 15.31 kB / 493.7 MB, free: 11.26 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.107e-05/0.1046, allocations: 7.625 kB / 493.7 MB, free: 11.26 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005715/0.1052, allocations: 272 kB / 493.9 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001419/0.1066, allocations: 1.165 MB / 495.1 MB, free: 10.13 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004077/0.107, allocations: 195.1 kB / 495.3 MB, free: 10.03 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001879/0.1072, allocations: 84.44 kB / 495.4 MB, free: 9.984 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.617e-05/0.1073, allocations: 9.094 kB / 495.4 MB, free: 9.984 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.389e-05/0.1073, allocations: 34.56 kB / 495.4 MB, free: 9.941 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.262e-06/0.1073, allocations: 0 / 495.4 MB, free: 9.941 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.002683/0.11, allocations: 0.9012 MB / 496.3 MB, free: 9.473 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.106e-05/0.11, allocations: 54.3 kB / 496.4 MB, free: 9.41 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002895/0.1103, allocations: 326.7 kB / 496.7 MB, free: 9.188 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.661e-05/0.1103, allocations: 29.7 kB / 496.7 MB, free: 9.152 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.709e-05/0.1104, allocations: 247.1 kB / 497 MB, free: 8.93 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.615e-05/0.1104, allocations: 99.02 kB / 497.1 MB, free: 8.844 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.25e-05/0.1105, allocations: 67.41 kB / 497.1 MB, free: 8.793 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.757e-05/0.1106, allocations: 342.2 kB / 497.5 MB, free: 8.457 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003093/0.1109, allocations: 121.7 kB / 497.6 MB, free: 8.402 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003365/0.1112, allocations: 214.4 kB / 497.8 MB, free: 8.227 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006148/0.1118, allocations: 357.1 kB / 498.1 MB, free: 7.977 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.387e-06/0.1118, allocations: 5.312 kB / 498.1 MB, free: 7.973 MB / 350.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001184/0.113, allocations: 0.596 MB / 498.7 MB, free: 7.488 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.451e-05/0.113, allocations: 8 kB / 498.7 MB, free: 7.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.604e-06/0.113, allocations: 4 kB / 498.7 MB, free: 7.477 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001538/0.1146, allocations: 0.8153 MB / 499.6 MB, free: 6.664 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002925/0.1149, allocations: 83.83 kB / 499.6 MB, free: 6.582 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004692/0.1153, allocations: 1.175 MB / 0.4891 GB, free: 5.355 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002806/0.1156, allocations: 23.98 kB / 0.4891 GB, free: 5.332 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.201e-05/0.1156, allocations: 15.94 kB / 0.4891 GB, free: 5.316 MB / 350.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.0001267/0.1158, allocations: 166.1 kB / 0.4893 GB, free: 5.145 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.038e-05/0.1158, allocations: 31.81 kB / 0.4893 GB, free: 5.113 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001089/0.1169, allocations: 0.5247 MB / 0.4898 GB, free: 4.578 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.1169, allocations: 0 / 0.4898 GB, free: 4.578 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.658e-06/0.1169, allocations: 4 kB / 0.4898 GB, free: 4.574 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.1169, allocations: 7.922 kB / 0.4898 GB, free: 4.566 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003146/0.1172, allocations: 377.3 kB / 0.4902 GB, free: 4.148 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-06/0.1172, allocations: 0 / 0.4902 GB, free: 4.148 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002006/0.1174, allocations: 43.95 kB / 0.4902 GB, free: 4.105 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001428/0.1189, allocations: 0.8079 MB / 0.491 GB, free: 3.297 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.85e-05/0.1189, allocations: 15.88 kB / 0.491 GB, free: 3.281 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004673/0.1194, allocations: 1.175 MB / 0.4922 GB, free: 2.055 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.1194, allocations: 0 / 0.4922 GB, free: 2.055 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001056/0.1204, allocations: 0.5903 MB / 0.4928 GB, free: 1.445 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.427e-05/0.1205, allocations: 108.9 kB / 0.4929 GB, free: 1.32 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.928e-05/0.1205, allocations: 4 kB / 0.4929 GB, free: 1.316 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002106/0.1207, allocations: 19.98 kB / 0.4929 GB, free: 1.297 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.992e-05/0.1208, allocations: 23.91 kB / 0.4929 GB, free: 1.273 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.328e-05/0.1208, allocations: 8 kB / 0.4929 GB, free: 1.266 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001646/0.121, allocations: 223 kB / 0.4931 GB, free: 1.051 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.121, allocations: 0 / 0.4931 GB, free: 1.051 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004183/0.1214, allocations: 103.9 kB / 0.4932 GB, free: 0.9492 MB / 350.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.001374/0.1228, allocations: 1.175 MB / 0.4944 GB, free: 15.74 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009156/0.1237, allocations: 312.2 kB / 0.4947 GB, free: 15.44 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1237, allocations: 0 / 0.4947 GB, free: 15.44 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004836/0.1242, allocations: 167.8 kB / 0.4948 GB, free: 15.27 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003989/0.1246, allocations: 43.88 kB / 0.4949 GB, free: 15.23 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006225/0.1308, allocations: 3.822 MB / 0.4986 GB, free: 11.24 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000425/0.1312, allocations: 0.795 MB / 0.4994 GB, free: 10.42 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001651/0.1314, allocations: 38.95 kB / 0.4994 GB, free: 10.38 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001939/0.1316, allocations: 119.4 kB / 0.4995 GB, free: 10.27 MB / 366.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1316, allocations: 0 / 0.4995 GB, free: 10.27 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02754/0.1591, allocations: 7.488 MB / 0.5068 GB, free: 2.918 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.5/12.66, allocations: 10.31 kB / 0.5069 GB, free: 2.91 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.396464245975949] Failed to read output from testmodel.py, exit status != 0: 12.980115114012733 12.822037998 12.716646616 Calling exit ...