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.006669/0.006669, allocations: 102 kB / 15.73 MB, free: 6.441 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.001763/0.001763, allocations: 194 kB / 16.67 MB, free: 6.352 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.399/1.399, allocations: 222.9 MB / 240.4 MB, free: 4.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/FluxTubesExtension 1.2.0-main/package.mo): time 0.009339/0.009339, allocations: 1.24 MB / 291.8 MB, free: 0.9766 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001919/0.00192, allocations: 62.72 kB / 402.8 MB, free: 9.203 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09655/0.09848, allocations: 49.71 MB / 452.5 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(FluxTubesExtension.Examples.SaturatedInductor): time 0.004362/0.1029, allocations: 2.798 MB / 455.3 MB, free: 1.77 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002657/0.1056, allocations: 1.635 MB / 456.9 MB, free: 132 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001802/0.1058, allocations: 7.938 kB / 456.9 MB, free: 124 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007448/0.1066, allocations: 187 kB / 457.1 MB, free: 15.94 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002395/0.1068, allocations: 103.2 kB / 457.2 MB, free: 15.84 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007102/0.1075, allocations: 279.3 kB / 457.5 MB, free: 15.56 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005479/0.1081, allocations: 394.4 kB / 457.9 MB, free: 15.18 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002108/0.1083, allocations: 113.7 kB / 458 MB, free: 15.06 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001638/0.1085, allocations: 139.5 kB / 458.1 MB, free: 14.93 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002513/0.1087, allocations: 167.2 kB / 458.3 MB, free: 14.76 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.052e-05/0.1088, allocations: 28 kB / 458.3 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000354/0.1092, allocations: 187.7 kB / 458.5 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.738e-05/0.1093, allocations: 79.69 kB / 458.6 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000169/0.1094, allocations: 171.1 kB / 458.8 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005893/0.11, allocations: 458.1 kB / 459.2 MB, free: 13.86 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.11, allocations: 0 / 459.2 MB, free: 13.86 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1101, allocations: 4 kB / 459.2 MB, free: 13.85 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.311e-06/0.1101, allocations: 0 / 459.2 MB, free: 13.85 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.001032/0.1111, allocations: 0.6619 MB / 459.9 MB, free: 13.14 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.213e-05/0.1112, allocations: 11.89 kB / 459.9 MB, free: 13.13 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.828e-05/0.1112, allocations: 70.67 kB / 459.9 MB, free: 13.05 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.08e-05/0.1113, allocations: 44.69 kB / 460 MB, free: 13.01 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004161/0.1117, allocations: 286.8 kB / 460.3 MB, free: 12.68 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.132e-05/0.1118, allocations: 20.88 kB / 460.3 MB, free: 12.66 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.984e-05/0.1118, allocations: 28.38 kB / 460.3 MB, free: 12.64 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000532/0.1124, allocations: 268.7 kB / 460.6 MB, free: 12.37 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.353e-05/0.1124, allocations: 0 / 460.6 MB, free: 12.37 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.055e-05/0.1124, allocations: 16 kB / 460.6 MB, free: 12.35 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.798e-06/0.1124, allocations: 12 kB / 460.6 MB, free: 12.34 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004933/0.1129, allocations: 246.1 kB / 460.8 MB, free: 12.1 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001691/0.1146, allocations: 1.084 MB / 461.9 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004787/0.1151, allocations: 238.4 kB / 462.2 MB, free: 10.69 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002744/0.1154, allocations: 124.9 kB / 462.3 MB, free: 10.56 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.635e-05/0.1155, allocations: 15.98 kB / 462.3 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.585e-05/0.1155, allocations: 38.56 kB / 462.3 MB, free: 10.5 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 1.593e-06/0.1155, allocations: 0 / 462.3 MB, free: 10.5 MB / 334.1 MB Notification: Performance of matching and sorting (n=34): time 0.004535/0.1201, allocations: 1.619 MB / 464 MB, free: 8.805 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.611e-05/0.1201, allocations: 55.52 kB / 464 MB, free: 8.738 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003114/0.1205, allocations: 290.9 kB / 464.3 MB, free: 8.449 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.748e-05/0.1205, allocations: 29.7 kB / 464.3 MB, free: 8.414 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001495/0.1206, allocations: 204.5 kB / 464.5 MB, free: 8.211 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.074e-05/0.1207, allocations: 115 kB / 464.6 MB, free: 8.098 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001147/0.1209, allocations: 69.64 kB / 464.7 MB, free: 8.023 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001563/0.121, allocations: 342.8 kB / 465 MB, free: 7.68 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002505/0.1213, allocations: 115.9 kB / 465.2 MB, free: 7.566 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002901/0.1216, allocations: 176.5 kB / 465.3 MB, free: 7.375 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000531/0.1221, allocations: 298.1 kB / 465.6 MB, free: 7.07 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.1221, allocations: 3.938 kB / 465.6 MB, free: 7.066 MB / 334.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001704/0.1238, allocations: 0.6253 MB / 466.2 MB, free: 6.43 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.827e-05/0.1239, allocations: 8 kB / 466.3 MB, free: 6.422 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/0.1239, allocations: 3.984 kB / 466.3 MB, free: 6.418 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002716/0.1266, allocations: 0.5246 MB / 466.8 MB, free: 5.887 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002851/0.1269, allocations: 63.89 kB / 466.8 MB, free: 5.824 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001051/0.128, allocations: 1.292 MB / 468.1 MB, free: 4.48 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002084/0.1282, allocations: 15.94 kB / 468.2 MB, free: 4.465 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.575e-05/0.1282, allocations: 12 kB / 468.2 MB, free: 4.453 MB / 334.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.0001891/0.1284, allocations: 153.8 kB / 468.3 MB, free: 4.293 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.14e-05/0.1285, allocations: 35.77 kB / 468.3 MB, free: 4.258 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001639/0.1301, allocations: 0.5762 MB / 468.9 MB, free: 3.664 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.127e-06/0.1301, allocations: 4 kB / 468.9 MB, free: 3.66 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/0.1302, allocations: 0 / 468.9 MB, free: 3.66 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.064e-06/0.1302, allocations: 7.984 kB / 468.9 MB, free: 3.652 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00217/0.1324, allocations: 1.06 MB / 470 MB, free: 2.523 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.876e-06/0.1324, allocations: 0 / 470 MB, free: 2.523 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002224/0.1326, allocations: 47.91 kB / 470 MB, free: 2.477 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002575/0.1352, allocations: 0.5208 MB / 470.6 MB, free: 1.949 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.223e-05/0.1352, allocations: 8 kB / 470.6 MB, free: 1.941 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009971/0.1362, allocations: 1.284 MB / 471.9 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.1362, allocations: 0 / 471.9 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001828/0.1381, allocations: 0.8108 MB / 472.7 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.528e-05/0.1382, allocations: 108.9 kB / 472.8 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.322e-05/0.1382, allocations: 11.94 kB / 472.8 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001906/0.1384, allocations: 8 kB / 472.8 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.527e-05/0.1385, allocations: 23.97 kB / 472.8 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.092e-05/0.1385, allocations: 15.98 kB / 472.8 MB, free: 15.58 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002112/0.1387, allocations: 202 kB / 473 MB, free: 15.38 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.1387, allocations: 0 / 473 MB, free: 15.38 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004042/0.1392, allocations: 92.06 kB / 473.1 MB, free: 15.29 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.002261/0.1414, allocations: 1.388 MB / 474.5 MB, free: 13.87 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008209/0.1423, allocations: 343.8 kB / 474.8 MB, free: 13.53 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.1423, allocations: 0 / 474.8 MB, free: 13.53 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004442/0.1427, allocations: 188.7 kB / 475 MB, free: 13.35 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000386/0.1431, allocations: 46.45 kB / 475.1 MB, free: 13.3 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006457/0.1496, allocations: 3.75 MB / 478.8 MB, free: 9.422 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004206/0.15, allocations: 0.7876 MB / 479.6 MB, free: 8.609 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001064/0.1501, allocations: 22.3 kB / 479.6 MB, free: 8.586 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001581/0.1503, allocations: 115.3 kB / 479.7 MB, free: 8.473 MB / 350.1 MB Notification: Performance of SimCode: time 5.92e-07/0.1503, allocations: 0 / 479.7 MB, free: 8.473 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03296/0.1833, allocations: 7.116 MB / 486.9 MB, free: 1.496 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.76/11.94, allocations: 4 kB / 486.9 MB, free: 1.492 MB / 350.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)