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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/FluxTubesExtension 1.2.0-main/package.mo", uses=false) Using package FluxTubesExtension with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/FluxTubesExtension 1.2.0-main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006759/0.006759, allocations: 97.62 kB / 15.73 MB, free: 6.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001357/0.001358, allocations: 202.3 kB / 16.68 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.365/1.365, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/FluxTubesExtension 1.2.0-main/package.mo): time 0.008061/0.008061, allocations: 1.234 MB / 291.8 MB, free: 1.027 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001206/0.001206, allocations: 66.52 kB / 402.8 MB, free: 9.152 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1158/0.117, allocations: 49.7 MB / 452.5 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(FluxTubesExtension.Examples.ToroidalCoreAirgap): time 0.004513/0.1215, allocations: 2.983 MB / 455.5 MB, free: 1.566 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002291/0.1238, allocations: 1.401 MB / 456.9 MB, free: 164 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003022/0.1242, allocations: 8 kB / 456.9 MB, free: 156 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006103/0.1248, allocations: 155 kB / 457 MB, free: 0 / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004857/0.1253, allocations: 111.2 kB / 457.2 MB, free: 15.89 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008512/0.1262, allocations: 271.3 kB / 457.4 MB, free: 15.62 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005935/0.1268, allocations: 430.2 kB / 457.8 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000259/0.1271, allocations: 135.2 kB / 458 MB, free: 15.07 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000304/0.1274, allocations: 171.3 kB / 458.1 MB, free: 14.9 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002544/0.1276, allocations: 199.1 kB / 458.3 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.326e-05/0.1277, allocations: 36 kB / 458.4 MB, free: 14.67 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000323/0.128, allocations: 211.7 kB / 458.6 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001243/0.1282, allocations: 91.67 kB / 458.7 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001854/0.1284, allocations: 198.9 kB / 458.9 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006256/0.129, allocations: 0.5213 MB / 459.4 MB, free: 13.65 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.129, allocations: 0 / 459.4 MB, free: 13.65 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.129, allocations: 0 / 459.4 MB, free: 13.65 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.357e-05/0.129, allocations: 0 / 459.4 MB, free: 13.65 MB / 334.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.001416/0.1305, allocations: 0.7087 MB / 460.1 MB, free: 12.89 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.344e-05/0.1305, allocations: 8.031 kB / 460.1 MB, free: 12.89 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001054/0.1306, allocations: 74.72 kB / 460.2 MB, free: 12.8 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.366e-05/0.1307, allocations: 44.66 kB / 460.2 MB, free: 12.76 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004713/0.1312, allocations: 320.2 kB / 460.5 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.856e-05/0.1312, allocations: 29.03 kB / 460.5 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.865e-05/0.1313, allocations: 32.38 kB / 460.6 MB, free: 12.36 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006275/0.1319, allocations: 309.9 kB / 460.9 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.507e-05/0.132, allocations: 0 / 460.9 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.069e-05/0.132, allocations: 15.94 kB / 460.9 MB, free: 12.03 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.29e-05/0.132, allocations: 11.98 kB / 460.9 MB, free: 12.02 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006382/0.1327, allocations: 274.5 kB / 461.2 MB, free: 11.75 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001814/0.1345, allocations: 1.163 MB / 462.3 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004596/0.135, allocations: 200.8 kB / 462.5 MB, free: 10.28 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002051/0.1352, allocations: 88.75 kB / 462.6 MB, free: 10.19 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.326e-05/0.1352, allocations: 15.92 kB / 462.6 MB, free: 10.18 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.301e-05/0.1353, allocations: 34.56 kB / 462.7 MB, free: 10.13 MB / 334.1 MB Notification: Performance of pre-optimization done (n=20): time 1.483e-06/0.1353, allocations: 0 / 462.7 MB, free: 10.13 MB / 334.1 MB Notification: Performance of matching and sorting (n=27): time 0.002932/0.1382, allocations: 0.907 MB / 463.6 MB, free: 9.219 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.052e-05/0.1383, allocations: 55.58 kB / 463.6 MB, free: 9.152 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003637/0.1386, allocations: 316.5 kB / 463.9 MB, free: 8.828 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.332e-05/0.1387, allocations: 29.7 kB / 464 MB, free: 8.793 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001483/0.1388, allocations: 240.1 kB / 464.2 MB, free: 8.555 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.626e-05/0.1389, allocations: 103.2 kB / 464.3 MB, free: 8.453 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000107/0.139, allocations: 70.03 kB / 464.4 MB, free: 8.375 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001314/0.1392, allocations: 346.8 kB / 464.7 MB, free: 8.027 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003242/0.1395, allocations: 124.6 kB / 464.8 MB, free: 7.906 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003638/0.1399, allocations: 213.2 kB / 465 MB, free: 7.656 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006781/0.1406, allocations: 352.6 kB / 465.4 MB, free: 7.27 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/0.1406, allocations: 3.938 kB / 465.4 MB, free: 7.266 MB / 334.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001358/0.1419, allocations: 0.597 MB / 466 MB, free: 6.656 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.903e-05/0.142, allocations: 12 kB / 466 MB, free: 6.645 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.756e-06/0.142, allocations: 4 kB / 466 MB, free: 6.641 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001932/0.1439, allocations: 0.8155 MB / 466.8 MB, free: 5.828 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003467/0.1443, allocations: 79.83 kB / 466.9 MB, free: 5.75 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009174/0.1452, allocations: 1.175 MB / 468.1 MB, free: 4.523 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003344/0.1456, allocations: 28.11 kB / 468.1 MB, free: 4.496 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.25e-05/0.1456, allocations: 15.94 kB / 468.1 MB, free: 4.48 MB / 334.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.0002294/0.1458, allocations: 162 kB / 468.3 MB, free: 4.312 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.395e-05/0.1459, allocations: 27.81 kB / 468.3 MB, free: 4.285 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00144/0.1474, allocations: 0.5377 MB / 468.8 MB, free: 3.734 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.382e-06/0.1474, allocations: 0 / 468.8 MB, free: 3.734 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.1474, allocations: 4 kB / 468.8 MB, free: 3.73 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.1474, allocations: 0 / 468.8 MB, free: 3.73 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004782/0.1479, allocations: 373.4 kB / 469.2 MB, free: 3.316 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.008e-06/0.1479, allocations: 4 kB / 469.2 MB, free: 3.312 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000224/0.1482, allocations: 51.89 kB / 469.3 MB, free: 3.262 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001762/0.1499, allocations: 0.8088 MB / 470.1 MB, free: 2.453 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.519e-05/0.15, allocations: 8 kB / 470.1 MB, free: 2.445 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008558/0.1508, allocations: 1.171 MB / 471.3 MB, free: 1.223 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.1508, allocations: 0 / 471.3 MB, free: 1.223 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001305/0.1522, allocations: 0.5979 MB / 471.9 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001189/0.1523, allocations: 116.8 kB / 472 MB, free: 484 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.024e-05/0.1523, allocations: 4 kB / 472 MB, free: 480 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000224/0.1526, allocations: 19.92 kB / 472 MB, free: 460 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.838e-05/0.1526, allocations: 23.91 kB / 472 MB, free: 436 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.739e-05/0.1527, allocations: 4 kB / 472 MB, free: 432 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002435/0.1529, allocations: 227 kB / 472.2 MB, free: 204 kB / 334.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.1529, allocations: 0 / 472.2 MB, free: 204 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004607/0.1534, allocations: 103.9 kB / 472.3 MB, free: 100 kB / 334.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.001713/0.1551, allocations: 1.17 MB / 473.5 MB, free: 14.89 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009833/0.1561, allocations: 320.4 kB / 473.8 MB, free: 14.58 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.1561, allocations: 0 / 473.8 MB, free: 14.58 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004938/0.1566, allocations: 180.6 kB / 474 MB, free: 14.41 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004127/0.1571, allocations: 48.23 kB / 474 MB, free: 14.36 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006297/0.1634, allocations: 3.803 MB / 477.8 MB, free: 10.38 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003828/0.1638, allocations: 0.7912 MB / 478.6 MB, free: 9.566 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001464/0.1639, allocations: 35.09 kB / 478.7 MB, free: 9.535 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001604/0.1641, allocations: 119.3 kB / 478.8 MB, free: 9.418 MB / 350.1 MB Notification: Performance of SimCode: time 6.91e-07/0.1641, allocations: 0 / 478.8 MB, free: 9.418 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02987/0.194, allocations: 7.375 MB / 486.2 MB, free: 2.176 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.3/11.5, allocations: 6.266 kB / 486.2 MB, free: 2.172 MB / 350.1 MB (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 & python3 -m fmpy simulate --output-file FluxTubesExtension_FluxTubesExtension.Examples.ToroidalCoreAirgap_res.csv --start-time 0 --stop-time 0.05 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 FluxTubesExtension_FluxTubesExtension_Examples_ToroidalCoreAirgap.fmu > FluxTubesExtension_FluxTubesExtension.Examples.ToroidalCoreAirgap.pipe 2>&1)