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.001856/0.001856, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001679/0.001679, allocations: 197 kB / 16.53 MB, free: 6.664 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.355/1.355, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/FluxTubesExtension 1.2.0-main/package.mo): time 0.007823/0.007823, allocations: 1.245 MB / 291.6 MB, free: 1.09 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00121/0.00121, allocations: 71.88 kB / 352.4 MB, free: 1.656 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2397/0.2409, allocations: 49.69 MB / 402.1 MB, free: 10.32 MB / 286.1 MB Notification: Performance of NFInst.instantiate(FluxTubesExtension.Examples.SaturatedInductor): time 0.004328/0.2453, allocations: 2.8 MB / 404.9 MB, free: 8.742 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002559/0.2479, allocations: 1.641 MB / 406.6 MB, free: 7.59 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001983/0.2481, allocations: 8.531 kB / 406.6 MB, free: 7.586 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007274/0.2488, allocations: 189.9 kB / 406.8 MB, free: 7.504 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002914/0.2492, allocations: 104.6 kB / 406.9 MB, free: 7.43 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009037/0.2501, allocations: 281.1 kB / 407.1 MB, free: 7.293 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005686/0.2506, allocations: 392.1 kB / 407.5 MB, free: 7.109 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002292/0.2509, allocations: 121.4 kB / 407.6 MB, free: 7.047 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000152/0.251, allocations: 141.7 kB / 407.8 MB, free: 6.98 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002276/0.2513, allocations: 163 kB / 407.9 MB, free: 6.895 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.28e-05/0.2513, allocations: 30.19 kB / 408 MB, free: 6.895 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003972/0.2517, allocations: 189.1 kB / 408.2 MB, free: 6.836 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001107/0.2519, allocations: 74.48 kB / 408.2 MB, free: 6.793 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001755/0.252, allocations: 181.9 kB / 408.4 MB, free: 6.676 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006245/0.2527, allocations: 443.3 kB / 408.8 MB, free: 6.5 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.2527, allocations: 0 / 408.8 MB, free: 6.5 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.305e-06/0.2527, allocations: 0.8438 kB / 408.8 MB, free: 6.5 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.236e-06/0.2527, allocations: 0 / 408.8 MB, free: 6.5 MB / 286.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.001038/0.2537, allocations: 0.6574 MB / 409.5 MB, free: 5.961 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.796e-05/0.2538, allocations: 21.3 kB / 409.5 MB, free: 5.949 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.835e-05/0.2539, allocations: 62.52 kB / 409.6 MB, free: 5.895 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.971e-05/0.2539, allocations: 41.62 kB / 409.6 MB, free: 5.875 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002586/0.2542, allocations: 275.1 kB / 409.9 MB, free: 5.613 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.035e-05/0.2542, allocations: 21.09 kB / 409.9 MB, free: 5.605 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.883e-05/0.2543, allocations: 26.25 kB / 409.9 MB, free: 5.598 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00048/0.2548, allocations: 275.8 kB / 410.2 MB, free: 5.477 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.272e-05/0.2548, allocations: 0 / 410.2 MB, free: 5.477 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.678e-05/0.2548, allocations: 15.34 kB / 410.2 MB, free: 5.465 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.468e-06/0.2548, allocations: 7.094 kB / 410.2 MB, free: 5.465 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004734/0.2553, allocations: 243.5 kB / 410.5 MB, free: 5.391 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001505/0.2568, allocations: 1.079 MB / 411.5 MB, free: 4.652 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004551/0.2573, allocations: 250 kB / 411.8 MB, free: 4.555 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002751/0.2576, allocations: 127.6 kB / 411.9 MB, free: 4.508 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.068e-05/0.2577, allocations: 13.75 kB / 411.9 MB, free: 4.508 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.41e-05/0.2577, allocations: 41.66 kB / 412 MB, free: 4.461 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 1.753e-06/0.2577, allocations: 0 / 412 MB, free: 4.461 MB / 286.1 MB Notification: Performance of matching and sorting (n=34): time 0.004618/0.2623, allocations: 1.627 MB / 413.6 MB, free: 3.68 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.765e-05/0.2624, allocations: 55.66 kB / 413.6 MB, free: 3.617 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002906/0.2627, allocations: 281.1 kB / 413.9 MB, free: 3.453 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.267e-05/0.2627, allocations: 31.08 kB / 413.9 MB, free: 3.418 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.702e-05/0.2628, allocations: 200.2 kB / 414.1 MB, free: 3.246 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.251e-05/0.2629, allocations: 118.5 kB / 414.3 MB, free: 3.152 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.744e-05/0.263, allocations: 63.81 kB / 414.3 MB, free: 3.113 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 7.44e-05/0.2631, allocations: 344.4 kB / 414.7 MB, free: 2.785 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002217/0.2633, allocations: 120.4 kB / 414.8 MB, free: 2.746 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002858/0.2636, allocations: 172.2 kB / 414.9 MB, free: 2.656 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005141/0.2641, allocations: 296.9 kB / 415.2 MB, free: 2.512 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.2641, allocations: 0 / 415.2 MB, free: 2.512 MB / 286.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001753/0.2659, allocations: 0.6322 MB / 415.9 MB, free: 2.281 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.141e-05/0.266, allocations: 7.156 kB / 415.9 MB, free: 2.281 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.266, allocations: 1.594 kB / 415.9 MB, free: 2.281 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002617/0.2686, allocations: 0.5202 MB / 416.4 MB, free: 2.195 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002939/0.2689, allocations: 71.47 kB / 416.5 MB, free: 2.18 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006993/0.2696, allocations: 1.289 MB / 417.8 MB, free: 1.023 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002277/0.2698, allocations: 15.53 kB / 417.8 MB, free: 1.016 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.462e-05/0.2699, allocations: 13.14 kB / 417.8 MB, free: 1.012 MB / 286.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.0002069/0.2701, allocations: 157.2 kB / 417.9 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.396e-05/0.2702, allocations: 30.66 kB / 418 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001586/0.2718, allocations: 0.5725 MB / 418.5 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.357e-06/0.2718, allocations: 7.438 kB / 418.5 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.674e-06/0.2718, allocations: 1.375 kB / 418.5 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.195e-06/0.2718, allocations: 1.875 kB / 418.5 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002123/0.2739, allocations: 1.056 MB / 419.6 MB, free: 60 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.42e-06/0.2739, allocations: 1.625 kB / 419.6 MB, free: 60 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002235/0.2742, allocations: 49.8 kB / 419.7 MB, free: 52 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002637/0.2768, allocations: 0.5236 MB / 420.2 MB, free: 15.96 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.895e-05/0.2769, allocations: 7.016 kB / 420.2 MB, free: 15.95 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00101/0.2779, allocations: 1.28 MB / 421.5 MB, free: 14.8 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.2779, allocations: 1.219 kB / 421.5 MB, free: 14.8 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002022/0.2799, allocations: 0.8131 MB / 422.3 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001109/0.28, allocations: 102.5 kB / 422.4 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.008e-05/0.2801, allocations: 19.23 kB / 422.4 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001961/0.2803, allocations: 13.2 kB / 422.4 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.08e-05/0.2804, allocations: 20.62 kB / 422.4 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.212e-05/0.2804, allocations: 12.39 kB / 422.4 MB, free: 14.29 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002326/0.2807, allocations: 205.1 kB / 422.6 MB, free: 14.17 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2807, allocations: 0 / 422.6 MB, free: 14.17 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004295/0.2811, allocations: 90.59 kB / 422.7 MB, free: 14.16 MB / 302.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.002287/0.2834, allocations: 1.384 MB / 424.1 MB, free: 13.23 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008754/0.2843, allocations: 338.3 kB / 424.4 MB, free: 13.14 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.586e-06/0.2843, allocations: 4.062 kB / 424.5 MB, free: 13.13 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004342/0.2848, allocations: 190.5 kB / 424.6 MB, free: 13.08 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004054/0.2852, allocations: 38.09 kB / 424.7 MB, free: 13.06 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006506/0.2917, allocations: 3.735 MB / 428.4 MB, free: 10.68 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003831/0.2921, allocations: 0.7911 MB / 429.2 MB, free: 9.934 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001331/0.2922, allocations: 30.92 kB / 429.2 MB, free: 9.914 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000147/0.2924, allocations: 111.2 kB / 429.3 MB, free: 9.816 MB / 302.1 MB Notification: Performance of SimCode: time 8.82e-07/0.2924, allocations: 0 / 429.3 MB, free: 9.816 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02628/0.3187, allocations: 6.948 MB / 436.3 MB, free: 4.531 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.11/11.43, allocations: 8.703 kB / 436.3 MB, free: 4.523 MB / 302.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)