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.008142/0.008142, allocations: 102.8 kB / 15.74 MB, free: 5.551 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.00197/0.00197, allocations: 194.2 kB / 16.67 MB, free: 5.48 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.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/FluxTubesExtension 1.2.0-main/package.mo): time 0.008095/0.008095, allocations: 1.234 MB / 291.8 MB, free: 13.64 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001195/0.001195, allocations: 58.44 kB / 402.8 MB, free: 32.06 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08695/0.08816, allocations: 49.71 MB / 452.5 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFInst.instantiate(FluxTubesExtension.Examples.SaturatedInductor): time 0.004398/0.09263, allocations: 2.808 MB / 455.3 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002459/0.09511, allocations: 1.631 MB / 456.9 MB, free: 9.855 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001759/0.09531, allocations: 8 kB / 456.9 MB, free: 9.848 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007183/0.09607, allocations: 199.2 kB / 457.1 MB, free: 9.652 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002512/0.09634, allocations: 99.17 kB / 457.2 MB, free: 9.555 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006638/0.09701, allocations: 283.1 kB / 457.5 MB, free: 9.281 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004962/0.09751, allocations: 398.5 kB / 457.9 MB, free: 8.891 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002032/0.09773, allocations: 113.7 kB / 458 MB, free: 8.777 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001465/0.09788, allocations: 143.4 kB / 458.1 MB, free: 8.637 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002016/0.09809, allocations: 159.2 kB / 458.3 MB, free: 8.48 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.02e-05/0.09814, allocations: 28 kB / 458.3 MB, free: 8.453 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003194/0.09847, allocations: 191.6 kB / 458.5 MB, free: 8.266 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.155e-05/0.09856, allocations: 79.73 kB / 458.6 MB, free: 8.188 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000154/0.09872, allocations: 175.1 kB / 458.8 MB, free: 8.016 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005641/0.09929, allocations: 454.2 kB / 459.2 MB, free: 7.57 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/0.09931, allocations: 4 kB / 459.2 MB, free: 7.566 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.09932, allocations: 0 / 459.2 MB, free: 7.566 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.076e-06/0.09933, allocations: 0 / 459.2 MB, free: 7.566 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.001073/0.1004, allocations: 0.6619 MB / 459.9 MB, free: 6.855 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.062e-05/0.1005, allocations: 19.83 kB / 459.9 MB, free: 6.836 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.26e-05/0.1005, allocations: 58.73 kB / 459.9 MB, free: 6.77 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.679e-05/0.1006, allocations: 48.64 kB / 460 MB, free: 6.723 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004243/0.1011, allocations: 286.7 kB / 460.3 MB, free: 6.398 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.398e-05/0.1011, allocations: 20.94 kB / 460.3 MB, free: 6.379 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.009e-05/0.1012, allocations: 24.38 kB / 460.3 MB, free: 6.355 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005481/0.1017, allocations: 273 kB / 460.6 MB, free: 6.082 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.374e-05/0.1017, allocations: 4 kB / 460.6 MB, free: 6.078 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.869e-05/0.1018, allocations: 12 kB / 460.6 MB, free: 6.066 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.368e-05/0.1018, allocations: 8 kB / 460.6 MB, free: 6.059 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005048/0.1023, allocations: 246.1 kB / 460.8 MB, free: 5.816 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001849/0.1042, allocations: 1.076 MB / 461.9 MB, free: 4.652 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004652/0.1046, allocations: 238.4 kB / 462.2 MB, free: 4.41 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002647/0.1049, allocations: 128.8 kB / 462.3 MB, free: 4.281 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.824e-05/0.105, allocations: 24.05 kB / 462.3 MB, free: 4.258 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.75e-05/0.105, allocations: 30.56 kB / 462.3 MB, free: 4.219 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 1.684e-06/0.105, allocations: 0 / 462.3 MB, free: 4.219 MB / 334.1 MB Notification: Performance of matching and sorting (n=34): time 0.004474/0.1095, allocations: 1.619 MB / 464 MB, free: 2.523 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.261e-05/0.1096, allocations: 59.41 kB / 464 MB, free: 2.453 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003172/0.1099, allocations: 283 kB / 464.3 MB, free: 2.172 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.979e-05/0.1099, allocations: 29.7 kB / 464.3 MB, free: 2.137 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001446/0.1101, allocations: 208.5 kB / 464.5 MB, free: 1.93 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.285e-05/0.1102, allocations: 118.9 kB / 464.6 MB, free: 1.812 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001016/0.1103, allocations: 65.69 kB / 464.7 MB, free: 1.742 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001425/0.1105, allocations: 342.8 kB / 465 MB, free: 1.398 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002245/0.1107, allocations: 119.9 kB / 465.2 MB, free: 1.281 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002837/0.111, allocations: 176.5 kB / 465.3 MB, free: 1.09 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004853/0.1115, allocations: 298.1 kB / 465.6 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.1115, allocations: 0 / 465.6 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001623/0.1131, allocations: 0.6369 MB / 466.3 MB, free: 140 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.918e-05/0.1131, allocations: 4 kB / 466.3 MB, free: 136 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.1132, allocations: 3.938 kB / 466.3 MB, free: 132 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002666/0.1158, allocations: 0.5246 MB / 466.8 MB, free: 15.6 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002786/0.1161, allocations: 67.84 kB / 466.9 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008817/0.117, allocations: 1.292 MB / 468.1 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002059/0.1172, allocations: 8 kB / 468.2 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.538e-05/0.1173, allocations: 15.94 kB / 468.2 MB, free: 14.16 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.000164/0.1174, allocations: 157.8 kB / 468.3 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.811e-05/0.1175, allocations: 31.94 kB / 468.4 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001562/0.1191, allocations: 0.5761 MB / 468.9 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.881e-06/0.1191, allocations: 8 kB / 468.9 MB, free: 13.37 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.1191, allocations: 0 / 468.9 MB, free: 13.37 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.167e-06/0.1191, allocations: 0 / 468.9 MB, free: 13.37 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002029/0.1212, allocations: 1.064 MB / 470 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.28e-06/0.1212, allocations: 4 kB / 470 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002229/0.1214, allocations: 43.91 kB / 470 MB, free: 12.19 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002628/0.124, allocations: 0.5247 MB / 470.6 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.075e-05/0.1241, allocations: 4 kB / 470.6 MB, free: 11.65 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008322/0.1249, allocations: 1.292 MB / 471.9 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.1249, allocations: 0 / 471.9 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001723/0.1267, allocations: 0.807 MB / 472.7 MB, free: 9.473 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.638e-05/0.1267, allocations: 108.9 kB / 472.8 MB, free: 9.348 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.452e-05/0.1268, allocations: 11.94 kB / 472.8 MB, free: 9.336 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002191/0.127, allocations: 8 kB / 472.8 MB, free: 9.328 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.567e-05/0.1271, allocations: 31.97 kB / 472.8 MB, free: 9.297 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.871e-05/0.1271, allocations: 8 kB / 472.8 MB, free: 9.289 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001827/0.1273, allocations: 202.1 kB / 473 MB, free: 9.094 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1273, allocations: 0 / 473 MB, free: 9.094 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004008/0.1277, allocations: 99.81 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.002125/0.1299, allocations: 1.384 MB / 474.5 MB, free: 7.574 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007508/0.1306, allocations: 339.8 kB / 474.8 MB, free: 7.242 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.1306, allocations: 0 / 474.8 MB, free: 7.242 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004296/0.1311, allocations: 188.3 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.0003935/0.1315, allocations: 37.36 kB / 475.1 MB, free: 7.02 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006044/0.1375, allocations: 3.75 MB / 478.8 MB, free: 3.141 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003912/0.138, allocations: 0.7876 MB / 479.6 MB, free: 2.328 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000111/0.1381, allocations: 26.28 kB / 479.6 MB, free: 2.301 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000135/0.1382, allocations: 111.4 kB / 479.7 MB, free: 2.191 MB / 350.1 MB Notification: Performance of SimCode: time 6.72e-07/0.1382, allocations: 0 / 479.7 MB, free: 2.191 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02997/0.1682, allocations: 7.123 MB / 486.9 MB, free: 11.2 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.51/11.68, allocations: 0 / 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)