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.0009331/0.0009331, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.0009106/0.0009106, allocations: 190.7 kB / 16.25 MB, free: 6.633 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.184/1.184, allocations: 222.9 MB / 239.9 MB, free: 4.547 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/FluxTubesExtension 1.2.0-main/package.mo): time 0.2176/0.2176, allocations: 1.252 MB / 291.3 MB, free: 1.242 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001199/0.001199, allocations: 63.91 kB / 351.9 MB, free: 6.957 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08207/0.08329, allocations: 49.69 MB / 401.6 MB, free: 5.223 MB / 334.1 MB Notification: Performance of NFInst.instantiate(FluxTubesExtension.Examples.SaturatedInductor): time 0.003469/0.08678, allocations: 2.844 MB / 404.5 MB, free: 2.363 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002066/0.08887, allocations: 1.631 MB / 406.1 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001669/0.08905, allocations: 4 kB / 406.1 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004819/0.08954, allocations: 187.5 kB / 406.3 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002281/0.08979, allocations: 83.42 kB / 406.4 MB, free: 464 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005815/0.09038, allocations: 251.5 kB / 406.6 MB, free: 212 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004597/0.09085, allocations: 402.5 kB / 407 MB, free: 15.81 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001556/0.09102, allocations: 105.7 kB / 407.1 MB, free: 15.71 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001486/0.09117, allocations: 143.4 kB / 407.2 MB, free: 15.57 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001632/0.09134, allocations: 167.2 kB / 407.4 MB, free: 15.41 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.63e-05/0.09139, allocations: 28 kB / 407.4 MB, free: 15.38 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000276/0.09167, allocations: 191.7 kB / 407.6 MB, free: 15.19 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.957e-05/0.09175, allocations: 79.69 kB / 407.7 MB, free: 15.11 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000129/0.09188, allocations: 179.1 kB / 407.9 MB, free: 14.94 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003759/0.09227, allocations: 446.5 kB / 408.3 MB, free: 14.5 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.09228, allocations: 4 kB / 408.3 MB, free: 14.5 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.42e-07/0.09228, allocations: 0 / 408.3 MB, free: 14.5 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.243e-06/0.0923, allocations: 0 / 408.3 MB, free: 14.5 MB / 350.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.0007904/0.09309, allocations: 0.6506 MB / 409 MB, free: 13.8 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.618e-05/0.09312, allocations: 15.89 kB / 409 MB, free: 13.78 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.518e-05/0.09318, allocations: 66.72 kB / 409 MB, free: 13.71 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.498e-05/0.09324, allocations: 40.47 kB / 409.1 MB, free: 13.67 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002378/0.09349, allocations: 270.6 kB / 409.3 MB, free: 13.36 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.007e-05/0.09352, allocations: 24.92 kB / 409.4 MB, free: 13.34 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.482e-05/0.09356, allocations: 28.38 kB / 409.4 MB, free: 13.31 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004356/0.094, allocations: 269 kB / 409.7 MB, free: 13.04 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.186e-06/0.09402, allocations: 4 kB / 409.7 MB, free: 13.04 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.368e-05/0.09405, allocations: 12 kB / 409.7 MB, free: 13.02 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.384e-06/0.09406, allocations: 8 kB / 409.7 MB, free: 13.02 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004135/0.09448, allocations: 250 kB / 409.9 MB, free: 12.77 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00139/0.09588, allocations: 1.087 MB / 411 MB, free: 11.6 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003806/0.09627, allocations: 242.4 kB / 411.3 MB, free: 11.35 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002208/0.0965, allocations: 120.8 kB / 411.4 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.868e-05/0.09655, allocations: 20 kB / 411.4 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.905e-05/0.09657, allocations: 34.55 kB / 411.4 MB, free: 11.17 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.353e-06/0.09658, allocations: 0 / 411.4 MB, free: 11.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=34): time 0.003919/0.1005, allocations: 1.626 MB / 413.1 MB, free: 9.465 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.424e-05/0.1005, allocations: 55.41 kB / 413.1 MB, free: 9.398 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002315/0.1008, allocations: 282.9 kB / 413.4 MB, free: 9.117 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.516e-05/0.1008, allocations: 29.7 kB / 413.4 MB, free: 9.082 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.805e-05/0.1009, allocations: 200.1 kB / 413.6 MB, free: 8.879 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.026e-05/0.101, allocations: 118.3 kB / 413.7 MB, free: 8.762 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.47e-05/0.1011, allocations: 69.69 kB / 413.8 MB, free: 8.688 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.35e-05/0.1012, allocations: 342.8 kB / 414.1 MB, free: 8.344 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002091/0.1014, allocations: 119.9 kB / 414.2 MB, free: 8.227 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002299/0.1016, allocations: 164.5 kB / 414.4 MB, free: 8.051 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004356/0.1021, allocations: 306.1 kB / 414.7 MB, free: 7.738 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.412e-06/0.1021, allocations: 3.938 kB / 414.7 MB, free: 7.734 MB / 350.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001525/0.1036, allocations: 0.617 MB / 415.3 MB, free: 7.105 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.322e-05/0.1036, allocations: 10.5 kB / 415.3 MB, free: 7.098 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.1037, allocations: 3.984 kB / 415.3 MB, free: 7.094 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002623/0.1063, allocations: 0.5246 MB / 415.9 MB, free: 6.562 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002554/0.1065, allocations: 67.84 kB / 415.9 MB, free: 6.496 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007576/0.1073, allocations: 1.28 MB / 417.2 MB, free: 5.164 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002055/0.1075, allocations: 12.08 kB / 417.2 MB, free: 5.152 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.467e-05/0.1076, allocations: 19.88 kB / 417.2 MB, free: 5.133 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.0001425/0.1077, allocations: 157.7 kB / 417.4 MB, free: 4.969 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.403e-05/0.1078, allocations: 31.61 kB / 417.4 MB, free: 4.938 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001462/0.1092, allocations: 0.5801 MB / 418 MB, free: 4.34 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.844e-06/0.1093, allocations: 8 kB / 418 MB, free: 4.332 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.1093, allocations: 0 / 418 MB, free: 4.332 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.297e-06/0.1093, allocations: 0 / 418 MB, free: 4.332 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001881/0.1112, allocations: 1.064 MB / 419.1 MB, free: 3.199 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.128e-06/0.1112, allocations: 4 kB / 419.1 MB, free: 3.195 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002049/0.1114, allocations: 39.97 kB / 419.1 MB, free: 3.156 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002558/0.114, allocations: 0.5324 MB / 419.7 MB, free: 2.617 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.02e-05/0.114, allocations: 8 kB / 419.7 MB, free: 2.609 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007108/0.1147, allocations: 1.28 MB / 420.9 MB, free: 1.277 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.1147, allocations: 0 / 420.9 MB, free: 1.277 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001709/0.1164, allocations: 0.8183 MB / 421.8 MB, free: 440 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.275e-05/0.1165, allocations: 104.8 kB / 421.9 MB, free: 316 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.098e-05/0.1166, allocations: 11.94 kB / 421.9 MB, free: 304 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001834/0.1167, allocations: 11.98 kB / 421.9 MB, free: 292 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.666e-05/0.1168, allocations: 28.03 kB / 421.9 MB, free: 264 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.547e-05/0.1168, allocations: 4 kB / 421.9 MB, free: 260 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000158/0.117, allocations: 202 kB / 422.1 MB, free: 64 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.117, allocations: 0 / 422.1 MB, free: 64 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.1525/0.2695, allocations: 91.62 kB / 422.2 MB, free: 53.24 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.001957/0.2714, allocations: 1.38 MB / 423.6 MB, free: 52.55 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006462/0.2721, allocations: 341 kB / 423.9 MB, free: 52.55 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.2721, allocations: 0 / 423.9 MB, free: 52.55 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003301/0.2724, allocations: 184.5 kB / 424.1 MB, free: 52.55 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003416/0.2728, allocations: 39.55 kB / 424.1 MB, free: 52.55 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004542/0.2773, allocations: 3.892 MB / 428 MB, free: 50.57 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001397/0.2775, allocations: 0.7852 MB / 428.8 MB, free: 49.87 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.304e-05/0.2776, allocations: 29.5 kB / 428.8 MB, free: 49.86 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.378e-05/0.2777, allocations: 107 kB / 428.9 MB, free: 49.77 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2777, allocations: 0 / 428.9 MB, free: 49.77 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08242/0.3601, allocations: 6.85 MB / 435.8 MB, free: 49.19 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001341/0.3603, allocations: 230.5 kB / 436 MB, free: 48.94 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.933/2.294, allocations: 0 / 436 MB, free: 48.94 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 & /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)