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.00131/0.00131, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001466/0.001466, allocations: 215.7 kB / 22.25 MB, free: 5.125 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.418/1.418, allocations: 230.6 MB / 256 MB, free: 7.98 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.00923/0.00923, allocations: 1.237 MB / 313.7 MB, free: 1.965 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.001944/0.001944, allocations: 77.45 kB / 436.1 MB, free: 16.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09625/0.0982, allocations: 53.64 MB / 489.7 MB, free: 10.74 MB / 350.1 MB Notification: Performance of NFInst.instantiate(FluxTubesExtension.Examples.ToroidalCoreAirgap): time 0.004682/0.1029, allocations: 3.038 MB / 492.7 MB, free: 7.68 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002563/0.1054, allocations: 1.436 MB / 494.2 MB, free: 6.234 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002128/0.1057, allocations: 15.88 kB / 494.2 MB, free: 6.219 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005354/0.1062, allocations: 163 kB / 494.3 MB, free: 6.059 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003651/0.1066, allocations: 115.1 kB / 494.5 MB, free: 5.945 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000782/0.1073, allocations: 290.9 kB / 494.7 MB, free: 5.664 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004919/0.1078, allocations: 430.4 kB / 495.2 MB, free: 5.242 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002062/0.108, allocations: 103.7 kB / 495.3 MB, free: 5.137 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003381/0.1084, allocations: 191.2 kB / 495.5 MB, free: 4.949 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002896/0.1087, allocations: 195.1 kB / 495.6 MB, free: 4.758 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.187e-05/0.1087, allocations: 36 kB / 495.7 MB, free: 4.723 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003659/0.1091, allocations: 243.6 kB / 495.9 MB, free: 4.484 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001268/0.1092, allocations: 91.62 kB / 496 MB, free: 4.395 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001871/0.1094, allocations: 195 kB / 496.2 MB, free: 4.203 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000674/0.1101, allocations: 0.5213 MB / 496.7 MB, free: 3.68 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.284e-06/0.1101, allocations: 8 kB / 496.7 MB, free: 3.672 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1101, allocations: 0 / 496.7 MB, free: 3.672 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.157e-06/0.1101, allocations: 0 / 496.7 MB, free: 3.672 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.001304/0.1114, allocations: 0.6411 MB / 497.4 MB, free: 3 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.142e-05/0.1114, allocations: 8.031 kB / 497.4 MB, free: 2.992 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.976e-05/0.1115, allocations: 74.72 kB / 497.4 MB, free: 2.91 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.72e-05/0.1116, allocations: 48.66 kB / 497.5 MB, free: 2.863 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005076/0.1121, allocations: 261.9 kB / 497.8 MB, free: 2.582 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.35e-05/0.1121, allocations: 25.03 kB / 497.8 MB, free: 2.559 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.244e-05/0.1122, allocations: 28.38 kB / 497.8 MB, free: 2.531 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000624/0.1128, allocations: 310.1 kB / 498.1 MB, free: 2.227 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.495e-05/0.1128, allocations: 0 / 498.1 MB, free: 2.227 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.978e-05/0.1129, allocations: 12 kB / 498.1 MB, free: 2.215 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.175e-05/0.1129, allocations: 8 kB / 498.1 MB, free: 2.207 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006525/0.1135, allocations: 274.5 kB / 498.4 MB, free: 1.934 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001789/0.1153, allocations: 1.103 MB / 499.5 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004428/0.1158, allocations: 190.5 kB / 499.7 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002054/0.116, allocations: 80.75 kB / 499.8 MB, free: 476 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.163e-05/0.116, allocations: 12 kB / 499.8 MB, free: 464 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.151e-05/0.116, allocations: 38.56 kB / 499.8 MB, free: 416 kB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.613e-06/0.116, allocations: 0 / 499.8 MB, free: 416 kB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.002921/0.119, allocations: 0.9092 MB / 0.489 GB, free: 15.48 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.837e-05/0.119, allocations: 55.64 kB / 0.489 GB, free: 15.42 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003956/0.1194, allocations: 320.4 kB / 0.4893 GB, free: 15.1 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.344e-05/0.1194, allocations: 33.7 kB / 0.4894 GB, free: 15.06 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002449/0.1197, allocations: 244.1 kB / 0.4896 GB, free: 14.82 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.122e-05/0.1198, allocations: 99.16 kB / 0.4897 GB, free: 14.72 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000115/0.1199, allocations: 70.03 kB / 0.4898 GB, free: 14.64 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001831/0.1201, allocations: 342.8 kB / 0.4901 GB, free: 14.3 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003112/0.1204, allocations: 116.7 kB / 0.4902 GB, free: 14.18 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004007/0.1208, allocations: 217.2 kB / 0.4904 GB, free: 13.93 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007106/0.1215, allocations: 348.7 kB / 0.4907 GB, free: 13.55 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.1215, allocations: 0 / 0.4907 GB, free: 13.55 MB / 366.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001389/0.1229, allocations: 0.605 MB / 0.4913 GB, free: 12.93 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.295e-05/0.1229, allocations: 9.875 kB / 0.4913 GB, free: 12.92 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.321e-05/0.1229, allocations: 11.92 kB / 0.4914 GB, free: 12.91 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001919/0.1249, allocations: 0.8142 MB / 0.4922 GB, free: 12.1 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003158/0.1252, allocations: 75.89 kB / 0.4922 GB, free: 12.02 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009276/0.1261, allocations: 1.175 MB / 0.4934 GB, free: 10.8 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002667/0.1264, allocations: 27.92 kB / 0.4934 GB, free: 10.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.846e-05/0.1264, allocations: 16 kB / 0.4934 GB, free: 10.75 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.0002059/0.1266, allocations: 163.3 kB / 0.4936 GB, free: 10.59 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.406e-05/0.1267, allocations: 31.81 kB / 0.4936 GB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001357/0.128, allocations: 0.5301 MB / 0.4941 GB, free: 10.01 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.701e-06/0.128, allocations: 4 kB / 0.4941 GB, free: 10 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.626e-06/0.128, allocations: 7.922 kB / 0.4941 GB, free: 9.996 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.128, allocations: 4 kB / 0.4941 GB, free: 9.992 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004873/0.1285, allocations: 344.4 kB / 0.4945 GB, free: 9.613 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.512e-06/0.1285, allocations: 0 / 0.4945 GB, free: 9.613 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002243/0.1287, allocations: 39.97 kB / 0.4945 GB, free: 9.574 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001807/0.1306, allocations: 0.819 MB / 0.4953 GB, free: 8.758 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.069e-05/0.1306, allocations: 8 kB / 0.4953 GB, free: 8.75 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008841/0.1315, allocations: 1.171 MB / 0.4965 GB, free: 7.527 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.616e-06/0.1315, allocations: 4.031 kB / 0.4965 GB, free: 7.523 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00126/0.1327, allocations: 0.5903 MB / 0.497 GB, free: 6.91 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.159e-05/0.1328, allocations: 31.75 kB / 0.4971 GB, free: 6.879 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.254e-05/0.1328, allocations: 8 kB / 0.4971 GB, free: 6.871 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000212/0.133, allocations: 15.98 kB / 0.4971 GB, free: 6.855 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.15e-05/0.1331, allocations: 19.91 kB / 0.4971 GB, free: 6.836 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.681e-05/0.1331, allocations: 11.98 kB / 0.4971 GB, free: 6.824 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002436/0.1334, allocations: 223.1 kB / 0.4973 GB, free: 6.605 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1334, allocations: 0 / 0.4973 GB, free: 6.605 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000428/0.1338, allocations: 111.8 kB / 0.4974 GB, free: 6.496 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.001755/0.1355, allocations: 1.17 MB / 0.4986 GB, free: 5.297 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008899/0.1364, allocations: 311.6 kB / 0.4989 GB, free: 4.992 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.1364, allocations: 0.8125 kB / 0.4989 GB, free: 4.992 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00049/0.1369, allocations: 175.8 kB / 0.499 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.0003919/0.1373, allocations: 40.17 kB / 0.4991 GB, free: 4.785 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006069/0.1434, allocations: 3.804 MB / 0.5028 GB, free: 0.8164 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1953/0.3387, allocations: 0.799 MB / 0.5036 GB, free: 26.34 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002276/0.3389, allocations: 32.31 kB / 0.5036 GB, free: 26.33 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001953/0.3391, allocations: 115.7 kB / 0.5037 GB, free: 26.32 MB / 366.1 MB Notification: Performance of SimCode: time 1.573e-06/0.3391, allocations: 0 / 0.5037 GB, free: 26.32 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03888/0.378, allocations: 7.721 MB / 0.5113 GB, free: 25.36 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.66/13.04, allocations: 8.562 kB / 0.5113 GB, free: 25.36 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 sys.exit(0), Time elapsed: 15.45259483391419] Failed to read output from testmodel.py, exit status != 0: 13.154796918155625 13.169344107 13.056672375 Calling exit ...