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.00756/0.007559, allocations: 99.83 kB / 15.73 MB, free: 6.012 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.001723/0.001724, allocations: 193.5 kB / 16.67 MB, free: 5.93 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.409/1.409, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/FluxTubesExtension 1.2.0-main/package.mo): time 0.01533/0.01533, allocations: 1.236 MB / 291.8 MB, free: 13.64 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001144/0.001144, allocations: 64.2 kB / 402.8 MB, free: 32.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1015, allocations: 49.71 MB / 452.5 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFInst.instantiate(FluxTubesExtension.Examples.ToroidalCoreAirgap): time 0.005069/0.1066, allocations: 2.976 MB / 455.5 MB, free: 11.33 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002499/0.1091, allocations: 1.401 MB / 456.9 MB, free: 9.918 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001896/0.1093, allocations: 7.938 kB / 456.9 MB, free: 9.91 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005446/0.1099, allocations: 151.3 kB / 457 MB, free: 9.762 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002935/0.1102, allocations: 119.1 kB / 457.2 MB, free: 9.645 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007023/0.1109, allocations: 271.2 kB / 457.4 MB, free: 9.379 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004234/0.1114, allocations: 426.4 kB / 457.8 MB, free: 8.961 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002449/0.1116, allocations: 139.2 kB / 458 MB, free: 8.82 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002467/0.1119, allocations: 179.3 kB / 458.1 MB, free: 8.645 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002304/0.1121, allocations: 191.2 kB / 458.3 MB, free: 8.457 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.925e-05/0.1122, allocations: 32 kB / 458.4 MB, free: 8.426 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003186/0.1125, allocations: 219.6 kB / 458.6 MB, free: 8.211 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001151/0.1126, allocations: 91.69 kB / 458.7 MB, free: 8.121 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001815/0.1128, allocations: 194.9 kB / 458.9 MB, free: 7.93 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006143/0.1134, allocations: 0.5213 MB / 459.4 MB, free: 7.406 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.628e-06/0.1135, allocations: 4 kB / 459.4 MB, free: 7.402 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1135, allocations: 0 / 459.4 MB, free: 7.402 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.145e-05/0.1135, allocations: 0 / 459.4 MB, free: 7.402 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.001226/0.1147, allocations: 0.7126 MB / 460.1 MB, free: 6.641 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.266e-05/0.1148, allocations: 8.031 kB / 460.1 MB, free: 6.633 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.15e-05/0.1148, allocations: 70.72 kB / 460.2 MB, free: 6.555 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.326e-05/0.1149, allocations: 48.59 kB / 460.2 MB, free: 6.508 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004736/0.1154, allocations: 324.2 kB / 460.5 MB, free: 6.156 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.784e-05/0.1154, allocations: 25.03 kB / 460.6 MB, free: 6.133 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.062e-05/0.1155, allocations: 32.38 kB / 460.6 MB, free: 6.102 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005783/0.1161, allocations: 302.2 kB / 460.9 MB, free: 5.797 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.36e-05/0.1161, allocations: 0 / 460.9 MB, free: 5.797 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.898e-05/0.1161, allocations: 19.94 kB / 460.9 MB, free: 5.777 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.306e-05/0.1161, allocations: 8 kB / 460.9 MB, free: 5.77 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006287/0.1168, allocations: 274.5 kB / 461.2 MB, free: 5.504 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001685/0.1185, allocations: 1.167 MB / 462.3 MB, free: 4.234 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004315/0.1189, allocations: 198.5 kB / 462.5 MB, free: 4.031 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001977/0.1191, allocations: 84.84 kB / 462.6 MB, free: 3.945 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.49e-05/0.1192, allocations: 11.98 kB / 462.6 MB, free: 3.934 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.178e-05/0.1192, allocations: 38.5 kB / 462.7 MB, free: 3.887 MB / 334.1 MB Notification: Performance of pre-optimization done (n=20): time 1.352e-06/0.1192, allocations: 0 / 462.7 MB, free: 3.887 MB / 334.1 MB Notification: Performance of matching and sorting (n=27): time 0.002836/0.1221, allocations: 0.9031 MB / 463.6 MB, free: 2.973 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.711e-05/0.1221, allocations: 55.64 kB / 463.6 MB, free: 2.906 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003255/0.1225, allocations: 320.4 kB / 463.9 MB, free: 2.578 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.493e-05/0.1225, allocations: 29.7 kB / 464 MB, free: 2.543 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001486/0.1226, allocations: 244.1 kB / 464.2 MB, free: 2.301 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.611e-05/0.1227, allocations: 95.17 kB / 464.3 MB, free: 2.207 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001049/0.1228, allocations: 70.02 kB / 464.4 MB, free: 2.129 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001521/0.123, allocations: 346.8 kB / 464.7 MB, free: 1.781 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002995/0.1233, allocations: 112.7 kB / 464.8 MB, free: 1.672 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003759/0.1237, allocations: 225.2 kB / 465 MB, free: 1.41 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000708/0.1244, allocations: 348.7 kB / 465.4 MB, free: 1.027 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.1244, allocations: 0 / 465.4 MB, free: 1.027 MB / 334.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001276/0.1257, allocations: 0.604 MB / 466 MB, free: 424 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.908e-05/0.1257, allocations: 8 kB / 466 MB, free: 416 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.288e-06/0.1258, allocations: 4 kB / 466 MB, free: 412 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001759/0.1275, allocations: 0.8158 MB / 466.8 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003258/0.1279, allocations: 79.89 kB / 466.9 MB, free: 15.51 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001016/0.1289, allocations: 1.179 MB / 468.1 MB, free: 14.28 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002606/0.1292, allocations: 28.05 kB / 468.1 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.882e-05/0.1292, allocations: 19.98 kB / 468.1 MB, free: 14.23 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.000369/0.1296, allocations: 157.9 kB / 468.3 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.33e-05/0.1296, allocations: 31.81 kB / 468.3 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001436/0.1311, allocations: 0.5374 MB / 468.8 MB, free: 13.49 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.634e-06/0.1311, allocations: 4 kB / 468.8 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.964e-06/0.1311, allocations: 0 / 468.8 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.524e-06/0.1311, allocations: 3.984 kB / 468.8 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005107/0.1316, allocations: 381.3 kB / 469.2 MB, free: 13.06 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.1317, allocations: 4 kB / 469.2 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002077/0.1319, allocations: 39.91 kB / 469.3 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001692/0.1336, allocations: 0.8198 MB / 470.1 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.05e-05/0.1336, allocations: 4 kB / 470.1 MB, free: 12.19 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009795/0.1346, allocations: 1.171 MB / 471.3 MB, free: 10.97 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.1346, allocations: 4.062 kB / 471.3 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001402/0.136, allocations: 0.5905 MB / 471.9 MB, free: 10.35 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.759e-05/0.1361, allocations: 104.9 kB / 472 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.013e-05/0.1362, allocations: 4 kB / 472 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002056/0.1364, allocations: 19.97 kB / 472 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.802e-05/0.1364, allocations: 19.92 kB / 472 MB, free: 10.19 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.813e-05/0.1365, allocations: 11.98 kB / 472 MB, free: 10.18 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002357/0.1367, allocations: 219.1 kB / 472.2 MB, free: 9.961 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.5e-07/0.1367, allocations: 3.938 kB / 472.2 MB, free: 9.957 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004246/0.1372, allocations: 107.9 kB / 472.3 MB, free: 9.852 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.001747/0.1389, allocations: 1.178 MB / 473.5 MB, free: 8.645 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009118/0.1398, allocations: 323.9 kB / 473.8 MB, free: 8.328 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.1398, allocations: 0 / 473.8 MB, free: 8.328 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004698/0.1403, allocations: 172.6 kB / 474 MB, free: 8.16 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003987/0.1407, allocations: 48.11 kB / 474 MB, free: 8.117 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006206/0.1469, allocations: 3.8 MB / 477.8 MB, free: 4.137 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004104/0.1474, allocations: 0.7873 MB / 478.6 MB, free: 3.324 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001384/0.1475, allocations: 38.97 kB / 478.7 MB, free: 3.289 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000172/0.1477, allocations: 119.3 kB / 478.8 MB, free: 3.172 MB / 350.1 MB Notification: Performance of SimCode: time 6.31e-07/0.1477, allocations: 0 / 478.8 MB, free: 3.172 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02912/0.1768, allocations: 7.383 MB / 486.2 MB, free: 11.93 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.43/11.61, allocations: 14.33 kB / 486.2 MB, free: 11.92 MB / 366.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)