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.0009654/0.0009654, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.0009905/0.0009906, allocations: 192.7 kB / 16.13 MB, free: 6.707 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.227/1.227, allocations: 222.9 MB / 239.8 MB, free: 4.633 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/FluxTubesExtension 1.2.0-main/package.mo): time 0.007104/0.007104, allocations: 1.24 MB / 291.2 MB, free: 1.324 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001112/0.001112, allocations: 63.91 kB / 351.7 MB, free: 7.098 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08249/0.08361, allocations: 49.7 MB / 401.4 MB, free: 5.363 MB / 334.1 MB Notification: Performance of NFInst.instantiate(FluxTubesExtension.Examples.SaturatedInductor): time 0.003678/0.08732, allocations: 2.848 MB / 404.3 MB, free: 2.5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002105/0.08944, allocations: 1.643 MB / 405.9 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001129/0.08957, allocations: 4 kB / 405.9 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005708/0.09016, allocations: 183.4 kB / 406.1 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001741/0.09034, allocations: 91.36 kB / 406.2 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000506/0.09086, allocations: 247.5 kB / 406.4 MB, free: 340 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004195/0.09129, allocations: 410.6 kB / 406.8 MB, free: 15.93 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001506/0.09145, allocations: 90.25 kB / 406.9 MB, free: 15.84 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001201/0.09158, allocations: 131.3 kB / 407.1 MB, free: 15.71 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001794/0.09176, allocations: 159.2 kB / 407.2 MB, free: 15.56 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.803e-05/0.09181, allocations: 24 kB / 407.2 MB, free: 15.54 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002975/0.09211, allocations: 187.6 kB / 407.4 MB, free: 15.35 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.368e-05/0.09219, allocations: 67.69 kB / 407.5 MB, free: 15.29 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001262/0.09233, allocations: 159.1 kB / 407.6 MB, free: 15.13 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004081/0.09274, allocations: 454.4 kB / 408.1 MB, free: 14.68 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.09275, allocations: 0 / 408.1 MB, free: 14.68 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.01e-07/0.09276, allocations: 0 / 408.1 MB, free: 14.68 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.621e-06/0.09277, allocations: 0 / 408.1 MB, free: 14.68 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.0009423/0.09372, allocations: 0.6507 MB / 408.7 MB, free: 13.98 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.882e-05/0.09376, allocations: 8.031 kB / 408.7 MB, free: 13.98 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.579e-05/0.09384, allocations: 70.72 kB / 408.8 MB, free: 13.9 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.444e-05/0.09391, allocations: 36.47 kB / 408.9 MB, free: 13.86 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002769/0.09419, allocations: 278.6 kB / 409.1 MB, free: 13.55 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.185e-05/0.09422, allocations: 24.88 kB / 409.1 MB, free: 13.52 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.324e-05/0.09427, allocations: 36.38 kB / 409.2 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004713/0.09475, allocations: 269 kB / 409.4 MB, free: 13.22 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.378e-06/0.09477, allocations: 0 / 409.4 MB, free: 13.22 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.627e-05/0.0948, allocations: 12 kB / 409.5 MB, free: 13.21 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.532e-06/0.09481, allocations: 4 kB / 409.5 MB, free: 13.2 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004491/0.09526, allocations: 246.1 kB / 409.7 MB, free: 12.96 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00149/0.09676, allocations: 1.087 MB / 410.8 MB, free: 11.79 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004254/0.0972, allocations: 242.4 kB / 411 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002334/0.09745, allocations: 124.8 kB / 411.1 MB, free: 11.42 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.049e-05/0.09751, allocations: 19.98 kB / 411.2 MB, free: 11.4 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.89e-05/0.09754, allocations: 34.56 kB / 411.2 MB, free: 11.36 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.282e-06/0.09755, allocations: 0 / 411.2 MB, free: 11.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=34): time 0.004139/0.1017, allocations: 1.626 MB / 412.8 MB, free: 9.652 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.097e-05/0.1017, allocations: 55.41 kB / 412.9 MB, free: 9.586 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000249/0.102, allocations: 278.9 kB / 413.2 MB, free: 9.309 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.283e-05/0.102, allocations: 29.7 kB / 413.2 MB, free: 9.273 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001103/0.1021, allocations: 208 kB / 413.4 MB, free: 9.062 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.896e-05/0.1022, allocations: 110.4 kB / 413.5 MB, free: 8.953 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.952e-05/0.1023, allocations: 65.69 kB / 413.6 MB, free: 8.883 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001082/0.1024, allocations: 350.8 kB / 413.9 MB, free: 8.531 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002312/0.1027, allocations: 119.9 kB / 414 MB, free: 8.414 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002465/0.1029, allocations: 164.5 kB / 414.2 MB, free: 8.238 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004612/0.1034, allocations: 302.1 kB / 414.5 MB, free: 7.93 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.452e-06/0.1034, allocations: 3.938 kB / 414.5 MB, free: 7.926 MB / 350.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001513/0.1049, allocations: 0.617 MB / 415.1 MB, free: 7.297 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.653e-05/0.1049, allocations: 8 kB / 415.1 MB, free: 7.289 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.1049, allocations: 0 / 415.1 MB, free: 7.289 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002601/0.1076, allocations: 0.5285 MB / 415.6 MB, free: 6.754 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002633/0.1078, allocations: 71.83 kB / 415.7 MB, free: 6.684 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007663/0.1086, allocations: 1.276 MB / 417 MB, free: 5.355 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001787/0.1088, allocations: 12.03 kB / 417 MB, free: 5.344 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.262e-05/0.1088, allocations: 15.94 kB / 417 MB, free: 5.328 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.0001435/0.109, allocations: 161.8 kB / 417.2 MB, free: 5.16 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.643e-05/0.109, allocations: 31.62 kB / 417.2 MB, free: 5.129 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001452/0.1105, allocations: 0.58 MB / 417.8 MB, free: 4.531 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.861e-06/0.1105, allocations: 4 kB / 417.8 MB, free: 4.527 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.1105, allocations: 4 kB / 417.8 MB, free: 4.523 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.112e-06/0.1105, allocations: 3.984 kB / 417.8 MB, free: 4.52 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001946/0.1125, allocations: 1.064 MB / 418.9 MB, free: 3.387 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.1125, allocations: 0 / 418.9 MB, free: 3.387 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002126/0.1127, allocations: 43.97 kB / 418.9 MB, free: 3.344 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002518/0.1153, allocations: 0.5246 MB / 419.4 MB, free: 2.812 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.056e-05/0.1153, allocations: 8 kB / 419.4 MB, free: 2.805 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007683/0.1161, allocations: 1.284 MB / 420.7 MB, free: 1.469 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.1161, allocations: 0 / 420.7 MB, free: 1.469 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001621/0.1177, allocations: 0.8227 MB / 421.5 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.426e-05/0.1178, allocations: 108.8 kB / 421.6 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.156e-05/0.1178, allocations: 11.94 kB / 421.7 MB, free: 492 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001867/0.118, allocations: 11.98 kB / 421.7 MB, free: 480 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.75e-05/0.1181, allocations: 19.97 kB / 421.7 MB, free: 460 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.854e-05/0.1181, allocations: 11.98 kB / 421.7 MB, free: 448 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001764/0.1183, allocations: 202 kB / 421.9 MB, free: 248 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1183, allocations: 0 / 421.9 MB, free: 248 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003788/0.1187, allocations: 92.19 kB / 422 MB, free: 156 kB / 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.1349/0.2535, allocations: 1.37 MB / 423.4 MB, free: 52.68 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006438/0.2542, allocations: 335.4 kB / 423.7 MB, free: 52.68 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.2542, allocations: 0 / 423.7 MB, free: 52.68 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003461/0.2546, allocations: 188.9 kB / 423.9 MB, free: 52.68 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003854/0.255, allocations: 36.88 kB / 423.9 MB, free: 52.68 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004688/0.2597, allocations: 3.888 MB / 427.8 MB, free: 50.72 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001551/0.2598, allocations: 0.789 MB / 428.6 MB, free: 50.02 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.843e-05/0.2599, allocations: 25.39 kB / 428.6 MB, free: 50.02 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000101/0.26, allocations: 110.6 kB / 428.7 MB, free: 49.93 MB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.26, allocations: 0 / 428.7 MB, free: 49.93 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01522/0.2753, allocations: 6.647 MB / 435.4 MB, free: 49.34 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001227/0.2754, allocations: 240.7 kB / 435.6 MB, free: 49.08 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.735/2.011, allocations: 3.938 kB / 435.6 MB, free: 49.08 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)