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.0109/0.0109, allocations: 101.7 kB / 15.73 MB, free: 5.586 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.001743/0.001743, allocations: 191.3 kB / 16.67 MB, free: 5.523 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.312/1.312, 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.007324/0.007324, allocations: 1.234 MB / 291.8 MB, free: 13.63 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001159/0.001159, allocations: 60.73 kB / 402.8 MB, free: 32.06 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0857/0.08687, allocations: 49.71 MB / 452.5 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFInst.instantiate(FluxTubesExtension.Examples.SaturatedInductor): time 0.004589/0.0915, allocations: 2.804 MB / 455.3 MB, free: 11.49 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003714/0.09525, allocations: 1.643 MB / 456.9 MB, free: 9.84 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002367/0.09552, allocations: 4 kB / 456.9 MB, free: 9.836 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009885/0.09656, allocations: 197.8 kB / 457.1 MB, free: 9.645 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003793/0.09696, allocations: 99.25 kB / 457.2 MB, free: 9.547 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001053/0.09803, allocations: 287 kB / 457.5 MB, free: 9.27 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006124/0.09866, allocations: 390.5 kB / 457.9 MB, free: 8.887 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002389/0.09891, allocations: 117.6 kB / 458 MB, free: 8.77 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001583/0.09908, allocations: 143.4 kB / 458.1 MB, free: 8.629 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000227/0.09931, allocations: 159.2 kB / 458.3 MB, free: 8.473 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.656e-05/0.09937, allocations: 36 kB / 458.3 MB, free: 8.438 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003957/0.09977, allocations: 195.6 kB / 458.5 MB, free: 8.246 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.44e-05/0.09988, allocations: 75.75 kB / 458.6 MB, free: 8.172 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001686/0.1001, allocations: 175.1 kB / 458.8 MB, free: 8 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000555/0.1006, allocations: 451.3 kB / 459.2 MB, free: 7.559 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.66e-06/0.1006, allocations: 0 / 459.2 MB, free: 7.559 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.604e-06/0.1006, allocations: 0 / 459.2 MB, free: 7.559 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.217e-06/0.1007, allocations: 0 / 459.2 MB, free: 7.559 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.001149/0.1018, allocations: 0.6506 MB / 459.9 MB, free: 6.859 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.928e-05/0.1019, allocations: 15.83 kB / 459.9 MB, free: 6.844 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.605e-05/0.102, allocations: 66.72 kB / 459.9 MB, free: 6.77 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.382e-05/0.102, allocations: 40.47 kB / 460 MB, free: 6.73 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004401/0.1025, allocations: 282.6 kB / 460.3 MB, free: 6.41 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.055e-05/0.1025, allocations: 24.94 kB / 460.3 MB, free: 6.387 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.283e-05/0.1026, allocations: 32.38 kB / 460.3 MB, free: 6.355 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005123/0.1031, allocations: 269 kB / 460.6 MB, free: 6.086 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.137e-05/0.1031, allocations: 0 / 460.6 MB, free: 6.086 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.723e-05/0.1032, allocations: 12 kB / 460.6 MB, free: 6.074 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.198e-06/0.1032, allocations: 4 kB / 460.6 MB, free: 6.07 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000485/0.1037, allocations: 246.1 kB / 460.8 MB, free: 5.828 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001715/0.1054, allocations: 1.072 MB / 461.9 MB, free: 4.668 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004659/0.1059, allocations: 250.4 kB / 462.1 MB, free: 4.414 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000251/0.1061, allocations: 116.8 kB / 462.3 MB, free: 4.297 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.132e-05/0.1062, allocations: 20.06 kB / 462.3 MB, free: 4.277 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.959e-05/0.1062, allocations: 38.56 kB / 462.3 MB, free: 4.23 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 1.773e-06/0.1063, allocations: 0 / 462.3 MB, free: 4.23 MB / 334.1 MB Notification: Performance of matching and sorting (n=34): time 0.004363/0.1106, allocations: 1.622 MB / 463.9 MB, free: 2.531 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.656e-05/0.1107, allocations: 55.41 kB / 464 MB, free: 2.465 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002882/0.111, allocations: 274.9 kB / 464.3 MB, free: 2.191 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.571e-05/0.111, allocations: 37.7 kB / 464.3 MB, free: 2.148 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000127/0.1112, allocations: 196.1 kB / 464.5 MB, free: 1.953 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.184e-05/0.1112, allocations: 118.3 kB / 464.6 MB, free: 1.836 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.459e-05/0.1113, allocations: 61.7 kB / 464.7 MB, free: 1.77 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001354/0.1115, allocations: 354.7 kB / 465 MB, free: 1.414 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002183/0.1117, allocations: 115.9 kB / 465.1 MB, free: 1.301 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002476/0.112, allocations: 164.5 kB / 465.3 MB, free: 1.121 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004572/0.1124, allocations: 302.1 kB / 465.6 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.1124, allocations: 0 / 465.6 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001545/0.114, allocations: 0.6251 MB / 466.2 MB, free: 180 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.137e-05/0.114, allocations: 8 kB / 466.2 MB, free: 172 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.594e-06/0.1141, allocations: 11.88 kB / 466.2 MB, free: 160 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002537/0.1166, allocations: 0.5285 MB / 466.8 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002845/0.1169, allocations: 63.84 kB / 466.8 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009201/0.1178, allocations: 1.273 MB / 468.1 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002166/0.1181, allocations: 12.02 kB / 468.1 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.982e-05/0.1181, allocations: 20.06 kB / 468.1 MB, free: 14.2 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.0001855/0.1183, allocations: 153.8 kB / 468.3 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.886e-05/0.1184, allocations: 31.62 kB / 468.3 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001511/0.1199, allocations: 0.5878 MB / 468.9 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.241e-06/0.1199, allocations: 4 kB / 468.9 MB, free: 13.4 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.1199, allocations: 0 / 468.9 MB, free: 13.4 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.12e-06/0.1199, allocations: 0 / 468.9 MB, free: 13.4 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002019/0.1219, allocations: 1.06 MB / 469.9 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.19e-06/0.122, allocations: 4 kB / 470 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002176/0.1222, allocations: 47.95 kB / 470 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002465/0.1247, allocations: 0.5285 MB / 470.5 MB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.061e-05/0.1247, allocations: 12 kB / 470.5 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008119/0.1255, allocations: 1.284 MB / 471.8 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.408e-06/0.1255, allocations: 0 / 471.8 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001693/0.1272, allocations: 0.8146 MB / 472.6 MB, free: 9.496 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.768e-05/0.1273, allocations: 104.8 kB / 472.7 MB, free: 9.375 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.092e-05/0.1274, allocations: 7.938 kB / 472.7 MB, free: 9.367 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001917/0.1276, allocations: 15.98 kB / 472.8 MB, free: 9.352 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.894e-05/0.1277, allocations: 23.91 kB / 472.8 MB, free: 9.328 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.493e-05/0.1277, allocations: 12 kB / 472.8 MB, free: 9.316 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001929/0.1279, allocations: 194 kB / 473 MB, free: 9.129 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1279, allocations: 4 kB / 473 MB, free: 9.125 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004129/0.1283, allocations: 95.92 kB / 473.1 MB, free: 9.031 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.002053/0.1304, allocations: 1.38 MB / 474.5 MB, free: 7.613 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007669/0.1312, allocations: 339.8 kB / 474.8 MB, free: 7.281 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.1312, allocations: 4 kB / 474.8 MB, free: 7.277 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004049/0.1316, allocations: 187.8 kB / 475 MB, free: 7.094 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004029/0.132, allocations: 41.3 kB / 475 MB, free: 7.051 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00601/0.138, allocations: 3.733 MB / 478.8 MB, free: 3.188 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003835/0.1384, allocations: 0.7875 MB / 479.5 MB, free: 2.375 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001202/0.1386, allocations: 26.28 kB / 479.6 MB, free: 2.348 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001402/0.1387, allocations: 107.4 kB / 479.7 MB, free: 2.242 MB / 350.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1387, allocations: 4 kB / 479.7 MB, free: 2.238 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03287/0.1716, allocations: 7.129 MB / 486.8 MB, free: 11.25 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.6/12.77, allocations: 0 / 486.8 MB, free: 11.25 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_FluxTubesExtension_FluxTubesExtension_Examples_SaturatedInductor_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 FluxTubesExtension_FluxTubesExtension_Examples_SaturatedInductor.fmu > FluxTubesExtension_FluxTubesExtension.Examples.SaturatedInductor.pipe 2>&1)