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.001637/0.001637, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.00213/0.00213, allocations: 214.5 kB / 22.25 MB, free: 4.855 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.472/1.472, allocations: 230.6 MB / 256 MB, free: 7.781 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.009452/0.009452, allocations: 1.247 MB / 313.7 MB, free: 1.758 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.002267/0.002267, allocations: 63.91 kB / 436 MB, free: 16.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09695/0.09922, allocations: 53.65 MB / 489.6 MB, free: 10.53 MB / 350.1 MB Notification: Performance of NFInst.instantiate(FluxTubesExtension.Examples.ToroidalCoreAirgap): time 0.005668/0.1049, allocations: 2.819 MB / 492.4 MB, free: 7.691 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003395/0.1083, allocations: 1.32 MB / 493.8 MB, free: 6.363 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003505/0.1086, allocations: 4 kB / 493.8 MB, free: 6.359 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007083/0.1093, allocations: 151 kB / 493.9 MB, free: 6.211 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000626/0.11, allocations: 127.1 kB / 494 MB, free: 6.086 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00113/0.1111, allocations: 271.3 kB / 494.3 MB, free: 5.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000781/0.1119, allocations: 438.2 kB / 494.7 MB, free: 5.391 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002468/0.1121, allocations: 95.67 kB / 494.8 MB, free: 5.293 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003481/0.1125, allocations: 191.3 kB / 495 MB, free: 5.105 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002697/0.1127, allocations: 175.1 kB / 495.2 MB, free: 4.934 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.631e-05/0.1128, allocations: 32 kB / 495.2 MB, free: 4.902 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003455/0.1131, allocations: 183.7 kB / 495.4 MB, free: 4.723 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001371/0.1133, allocations: 91.67 kB / 495.5 MB, free: 4.633 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001789/0.1135, allocations: 159.2 kB / 495.6 MB, free: 4.477 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007065/0.1142, allocations: 0.5213 MB / 496.2 MB, free: 3.953 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.1142, allocations: 0 / 496.2 MB, free: 3.953 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.1142, allocations: 0 / 496.2 MB, free: 3.953 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.106e-06/0.1142, allocations: 0 / 496.2 MB, free: 3.953 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.001308/0.1155, allocations: 0.6411 MB / 496.8 MB, free: 3.281 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001077/0.1156, allocations: 12.03 kB / 496.8 MB, free: 3.27 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.156e-05/0.1157, allocations: 66.72 kB / 496.9 MB, free: 3.195 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.4e-05/0.1158, allocations: 52.59 kB / 496.9 MB, free: 3.145 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005221/0.1163, allocations: 265.9 kB / 497.2 MB, free: 2.859 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.531e-05/0.1163, allocations: 25.03 kB / 497.2 MB, free: 2.836 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.668e-05/0.1164, allocations: 36.36 kB / 497.2 MB, free: 2.801 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000629/0.117, allocations: 302.2 kB / 497.5 MB, free: 2.504 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.568e-05/0.117, allocations: 3.938 kB / 497.5 MB, free: 2.5 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.945e-05/0.1171, allocations: 12 kB / 497.6 MB, free: 2.488 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.082e-05/0.1171, allocations: 8 kB / 497.6 MB, free: 2.48 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007347/0.1178, allocations: 274.5 kB / 497.8 MB, free: 2.207 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00187/0.1197, allocations: 0.9752 MB / 498.8 MB, free: 1.156 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004834/0.1202, allocations: 190.5 kB / 499 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002068/0.1204, allocations: 76.84 kB / 499.1 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.455e-05/0.1204, allocations: 19.98 kB / 499.1 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.369e-05/0.1205, allocations: 34.5 kB / 499.1 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.603e-06/0.1205, allocations: 0 / 499.1 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.00299/0.1234, allocations: 0.898 MB / 0.4883 GB, free: 15.91 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.593e-05/0.1235, allocations: 59.58 kB / 0.4884 GB, free: 15.84 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003994/0.1239, allocations: 328.3 kB / 0.4887 GB, free: 15.52 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.979e-05/0.1239, allocations: 33.7 kB / 0.4887 GB, free: 15.48 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001903/0.1241, allocations: 248.1 kB / 0.4889 GB, free: 15.23 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.01e-05/0.1242, allocations: 103.1 kB / 0.489 GB, free: 15.13 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001139/0.1243, allocations: 66.06 kB / 0.4891 GB, free: 15.05 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001749/0.1245, allocations: 342.8 kB / 0.4894 GB, free: 14.71 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003308/0.1248, allocations: 112.7 kB / 0.4895 GB, free: 14.6 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004315/0.1253, allocations: 225.2 kB / 0.4898 GB, free: 14.34 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007576/0.126, allocations: 348.7 kB / 0.4901 GB, free: 13.96 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.126, allocations: 0 / 0.4901 GB, free: 13.96 MB / 366.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001459/0.1275, allocations: 0.6115 MB / 0.4907 GB, free: 13.33 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.294e-05/0.1275, allocations: 4.406 kB / 0.4907 GB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.892e-06/0.1275, allocations: 8 kB / 0.4907 GB, free: 13.32 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002085/0.1296, allocations: 0.8195 MB / 0.4915 GB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003373/0.1299, allocations: 75.89 kB / 0.4916 GB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009562/0.1309, allocations: 1.175 MB / 0.4927 GB, free: 11.2 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003032/0.1312, allocations: 19.98 kB / 0.4927 GB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.156e-05/0.1312, allocations: 19.98 kB / 0.4928 GB, free: 11.16 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.0001958/0.1314, allocations: 157.7 kB / 0.4929 GB, free: 11 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.77e-05/0.1315, allocations: 35.77 kB / 0.4929 GB, free: 10.96 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001363/0.1328, allocations: 0.5249 MB / 0.4934 GB, free: 10.43 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.626e-06/0.1329, allocations: 7.938 kB / 0.4935 GB, free: 10.42 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.1329, allocations: 0 / 0.4935 GB, free: 10.42 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.112e-06/0.1329, allocations: 7.984 kB / 0.4935 GB, free: 10.41 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004682/0.1333, allocations: 316.5 kB / 0.4938 GB, free: 10.06 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.043e-06/0.1333, allocations: 0 / 0.4938 GB, free: 10.06 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002286/0.1336, allocations: 47.89 kB / 0.4938 GB, free: 10.01 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001812/0.1354, allocations: 0.8039 MB / 0.4946 GB, free: 9.207 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.274e-05/0.1354, allocations: 8 kB / 0.4946 GB, free: 9.199 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009135/0.1363, allocations: 1.171 MB / 0.4957 GB, free: 7.977 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.447e-06/0.1363, allocations: 8 kB / 0.4958 GB, free: 7.969 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001282/0.1376, allocations: 0.5939 MB / 0.4963 GB, free: 7.355 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.523e-05/0.1377, allocations: 31.8 kB / 0.4964 GB, free: 7.324 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.4e-05/0.1377, allocations: 8 kB / 0.4964 GB, free: 7.316 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002103/0.1379, allocations: 15.98 kB / 0.4964 GB, free: 7.301 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.917e-05/0.138, allocations: 23.89 kB / 0.4964 GB, free: 7.277 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.967e-05/0.138, allocations: 12 kB / 0.4964 GB, free: 7.266 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002586/0.1383, allocations: 223.1 kB / 0.4966 GB, free: 7.047 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1383, allocations: 0 / 0.4966 GB, free: 7.047 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004507/0.1387, allocations: 103.9 kB / 0.4967 GB, free: 6.945 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.001769/0.1405, allocations: 1.179 MB / 0.4979 GB, free: 5.734 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009239/0.1414, allocations: 303.7 kB / 0.4982 GB, free: 5.438 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.1414, allocations: 3.938 kB / 0.4982 GB, free: 5.434 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004922/0.1419, allocations: 163.8 kB / 0.4983 GB, free: 5.273 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000393/0.1423, allocations: 46.69 kB / 0.4984 GB, free: 5.234 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006317/0.1486, allocations: 3.807 MB / 0.5021 GB, free: 1.258 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002147/0.1488, allocations: 182.5 kB / 0.5023 GB, free: 1.055 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001528/0.149, allocations: 42.89 kB / 0.5023 GB, free: 1.016 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001925/0.1492, allocations: 123.4 kB / 0.5024 GB, free: 0.8945 MB / 366.1 MB Notification: Performance of SimCode: time 7.32e-07/0.1492, allocations: 0 / 0.5024 GB, free: 0.8945 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2459/0.3951, allocations: 7.759 MB / 0.51 GB, free: 25.98 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.8/13.2, allocations: 7.188 kB / 0.51 GB, free: 25.98 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.753073162864894] Failed to read output from testmodel.py, exit status != 0: 13.319348136894405 13.346313679 13.227400028 Calling exit ...