Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr FluxTubesExtension_FluxTubesExtension.Examples.SaturatedInductor.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.SaturatedInductor,fileNamePrefix="FluxTubesExtension_FluxTubesExtension_Examples_SaturatedInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(FluxTubesExtension.Examples.SaturatedInductor,fileNamePrefix="FluxTubesExtension_FluxTubesExtension_Examples_SaturatedInductor",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.005438/0.005438, allocations: 99.84 kB / 15.73 MB, free: 6.066 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.0012/0.0012, allocations: 189.4 kB / 16.67 MB, free: 5.977 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.395/1.395, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/FluxTubesExtension 1.2.0-main/package.mo): time 0.007778/0.007778, allocations: 1.236 MB / 291.8 MB, free: 13.62 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001365/0.001365, allocations: 59.75 kB / 402.8 MB, free: 32.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1036, allocations: 49.7 MB / 452.5 MB, free: 14.33 MB / 334.1 MB Notification: Performance of NFInst.instantiate(FluxTubesExtension.Examples.SaturatedInductor): time 0.004717/0.1083, allocations: 2.815 MB / 455.3 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002707/0.1111, allocations: 1.639 MB / 456.9 MB, free: 9.852 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002779/0.1114, allocations: 4 kB / 456.9 MB, free: 9.848 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007954/0.1122, allocations: 191.3 kB / 457.1 MB, free: 9.66 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003548/0.1126, allocations: 107.2 kB / 457.2 MB, free: 9.555 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008049/0.1134, allocations: 279.2 kB / 457.5 MB, free: 9.285 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006479/0.1141, allocations: 394.4 kB / 457.9 MB, free: 8.898 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000234/0.1143, allocations: 113.7 kB / 458 MB, free: 8.785 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002044/0.1145, allocations: 143.5 kB / 458.1 MB, free: 8.645 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002637/0.1148, allocations: 163.2 kB / 458.3 MB, free: 8.484 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.251e-05/0.1149, allocations: 32 kB / 458.3 MB, free: 8.453 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003835/0.1153, allocations: 183.7 kB / 458.5 MB, free: 8.273 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.906e-05/0.1154, allocations: 75.75 kB / 458.6 MB, free: 8.199 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001781/0.1155, allocations: 179 kB / 458.8 MB, free: 8.023 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005712/0.1161, allocations: 450.2 kB / 459.2 MB, free: 7.582 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.1161, allocations: 0 / 459.2 MB, free: 7.582 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.1161, allocations: 0 / 459.2 MB, free: 7.582 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.789e-05/0.1162, allocations: 4 kB / 459.2 MB, free: 7.578 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: 69 * Number of variables: 69 Notification: Performance of Generate backend data structure: time 0.001078/0.1173, allocations: 0.6697 MB / 459.9 MB, free: 6.859 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.39e-05/0.1173, allocations: 15.88 kB / 459.9 MB, free: 6.844 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.486e-05/0.1174, allocations: 58.73 kB / 459.9 MB, free: 6.777 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.354e-05/0.1175, allocations: 48.64 kB / 460 MB, free: 6.73 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004216/0.1179, allocations: 286.7 kB / 460.3 MB, free: 6.406 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.691e-05/0.1179, allocations: 24.94 kB / 460.3 MB, free: 6.383 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.263e-05/0.118, allocations: 28.38 kB / 460.3 MB, free: 6.355 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005258/0.1185, allocations: 269 kB / 460.6 MB, free: 6.086 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.253e-05/0.1185, allocations: 0 / 460.6 MB, free: 6.086 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.9e-05/0.1186, allocations: 15.94 kB / 460.6 MB, free: 6.07 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.061e-05/0.1186, allocations: 4 kB / 460.6 MB, free: 6.066 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005055/0.1191, allocations: 250.1 kB / 460.9 MB, free: 5.82 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001788/0.1209, allocations: 1.08 MB / 461.9 MB, free: 4.652 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004677/0.1214, allocations: 242.5 kB / 462.2 MB, free: 4.406 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002716/0.1217, allocations: 124.7 kB / 462.3 MB, free: 4.281 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.312e-05/0.1217, allocations: 15.98 kB / 462.3 MB, free: 4.266 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.304e-05/0.1218, allocations: 42.56 kB / 462.3 MB, free: 4.215 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 1.653e-06/0.1218, allocations: 0 / 462.3 MB, free: 4.215 MB / 334.1 MB Notification: Performance of matching and sorting (n=34): time 0.004273/0.1261, allocations: 1.615 MB / 464 MB, free: 2.523 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.148e-05/0.1261, allocations: 55.41 kB / 464 MB, free: 2.457 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002838/0.1264, allocations: 279 kB / 464.3 MB, free: 2.18 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.768e-05/0.1265, allocations: 37.7 kB / 464.3 MB, free: 2.137 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001294/0.1266, allocations: 200.5 kB / 464.5 MB, free: 1.938 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.741e-05/0.1267, allocations: 126.9 kB / 464.6 MB, free: 1.812 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001071/0.1268, allocations: 65.69 kB / 464.7 MB, free: 1.742 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001644/0.127, allocations: 342.8 kB / 465 MB, free: 1.398 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002386/0.1272, allocations: 115.9 kB / 465.2 MB, free: 1.285 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002681/0.1275, allocations: 180.4 kB / 465.3 MB, free: 1.09 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004888/0.128, allocations: 294.1 kB / 465.6 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.128, allocations: 4 kB / 465.6 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001578/0.1296, allocations: 0.6253 MB / 466.2 MB, free: 152 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.95e-05/0.1296, allocations: 8 kB / 466.3 MB, free: 144 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.1296, allocations: 0 / 466.3 MB, free: 144 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002536/0.1322, allocations: 0.5285 MB / 466.8 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002739/0.1325, allocations: 59.84 kB / 466.8 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009727/0.1334, allocations: 1.296 MB / 468.1 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001968/0.1337, allocations: 8.031 kB / 468.1 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.12e-05/0.1337, allocations: 19.94 kB / 468.2 MB, free: 14.17 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (30): * Single equations (assignments): 28 * 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,8), (1,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0001739/0.1339, allocations: 153.8 kB / 468.3 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.462e-05/0.1339, allocations: 35.81 kB / 468.4 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001542/0.1355, allocations: 0.5723 MB / 468.9 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.364e-06/0.1355, allocations: 4 kB / 468.9 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.1355, allocations: 0 / 468.9 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.1355, allocations: 0 / 468.9 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002034/0.1376, allocations: 1.071 MB / 470 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.1376, allocations: 0 / 470 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002259/0.1378, allocations: 43.97 kB / 470 MB, free: 12.19 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002458/0.1403, allocations: 0.5285 MB / 470.6 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.94e-05/0.1403, allocations: 12 kB / 470.6 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008956/0.1412, allocations: 1.28 MB / 471.9 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.1413, allocations: 4.125 kB / 471.9 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001767/0.143, allocations: 0.8186 MB / 472.7 MB, free: 9.461 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001314/0.1432, allocations: 104.9 kB / 472.8 MB, free: 9.34 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.637e-05/0.1432, allocations: 7.938 kB / 472.8 MB, free: 9.332 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001955/0.1434, allocations: 16 kB / 472.8 MB, free: 9.316 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.759e-05/0.1435, allocations: 15.97 kB / 472.8 MB, free: 9.301 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.425e-05/0.1435, allocations: 12 kB / 472.8 MB, free: 9.289 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002154/0.1438, allocations: 209.9 kB / 473 MB, free: 9.086 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1438, allocations: 4 kB / 473 MB, free: 9.082 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004191/0.1442, allocations: 87.88 kB / 473.1 MB, free: 8.996 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (coil.i) * 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 (20): * Single equations (assignments): 18 * 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,8), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002353/0.1466, allocations: 1.376 MB / 474.5 MB, free: 7.582 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009357/0.1475, allocations: 347.8 kB / 474.8 MB, free: 7.242 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.1475, allocations: 96 / 474.8 MB, free: 7.242 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004329/0.148, allocations: 188.1 kB / 475 MB, free: 7.059 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004592/0.1484, allocations: 48.11 kB / 475.1 MB, free: 7.012 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006433/0.1549, allocations: 3.75 MB / 478.8 MB, free: 3.133 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00039/0.1553, allocations: 0.7876 MB / 479.6 MB, free: 2.32 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001144/0.1554, allocations: 26.28 kB / 479.6 MB, free: 2.293 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001582/0.1556, allocations: 107.4 kB / 479.7 MB, free: 2.188 MB / 350.1 MB Notification: Performance of SimCode: time 5.81e-07/0.1556, allocations: 0 / 479.7 MB, free: 2.188 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0303/0.1859, allocations: 7.118 MB / 486.9 MB, free: 11.2 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.51/11.7, allocations: 6.719 kB / 486.9 MB, free: 11.2 MB / 366.1 MB (rm -f FluxTubesExtension_FluxTubesExtension.Examples.SaturatedInductor.pipe ; mkfifo FluxTubesExtension_FluxTubesExtension.Examples.SaturatedInductor.pipe ; head -c 1048576 < FluxTubesExtension_FluxTubesExtension.Examples.SaturatedInductor.pipe >> ../files/FluxTubesExtension_FluxTubesExtension.Examples.SaturatedInductor.sim & python3 -m fmpy simulate --output-file FluxTubesExtension_FluxTubesExtension.Examples.SaturatedInductor_res.csv --start-time 0 --stop-time 0.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 FluxTubesExtension_FluxTubesExtension_Examples_SaturatedInductor.fmu > FluxTubesExtension_FluxTubesExtension.Examples.SaturatedInductor.pipe 2>&1)