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.0008817/0.0008854, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.005454/0.005454, allocations: 170.6 kB / 16.27 MB, free: 6.652 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.271/1.271, allocations: 223.3 MB / 240.3 MB, free: 5.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/FluxTubesExtension 1.2.0-main/package.mo): time 0.006901/0.006901, allocations: 1.228 MB / 292.6 MB, free: 0.9883 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002905/0.0002905, allocations: 4 kB / 354.2 MB, free: 1.836 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.237/0.2373, allocations: 50.68 MB / 404.8 MB, free: 9.562 MB / 286.1 MB Notification: Performance of NFInst.instantiate(FluxTubesExtension.Examples.SaturatedInductor): time 0.002715/0.2401, allocations: 2.474 MB / 407.3 MB, free: 8.938 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001921/0.242, allocations: 1.625 MB / 408.9 MB, free: 7.895 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000113/0.2422, allocations: 12.22 kB / 408.9 MB, free: 7.887 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005401/0.2427, allocations: 180.6 kB / 409.1 MB, free: 7.816 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001684/0.2429, allocations: 87 kB / 409.2 MB, free: 7.762 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004793/0.2434, allocations: 230.1 kB / 409.4 MB, free: 7.648 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004318/0.2438, allocations: 422.3 kB / 409.8 MB, free: 7.461 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001582/0.244, allocations: 99.03 kB / 409.9 MB, free: 7.41 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001106/0.2441, allocations: 124.3 kB / 410.1 MB, free: 7.355 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001706/0.2443, allocations: 152.3 kB / 410.2 MB, free: 7.281 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.839e-05/0.2443, allocations: 18.44 kB / 410.2 MB, free: 7.281 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002855/0.2446, allocations: 177.2 kB / 410.4 MB, free: 7.23 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.873e-05/0.2447, allocations: 65.66 kB / 410.5 MB, free: 7.195 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001126/0.2448, allocations: 187 kB / 410.6 MB, free: 7.066 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004457/0.2452, allocations: 441.4 kB / 411.1 MB, free: 6.922 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.2453, allocations: 1.25 kB / 411.1 MB, free: 6.922 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.2453, allocations: 0 / 411.1 MB, free: 6.922 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.442e-06/0.2453, allocations: 0 / 411.1 MB, free: 6.922 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.0007675/0.246, allocations: 0.5975 MB / 411.7 MB, free: 6.426 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.437e-05/0.2461, allocations: 9.156 kB / 411.7 MB, free: 6.426 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.42e-05/0.2461, allocations: 67.64 kB / 411.8 MB, free: 6.367 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.358e-05/0.2462, allocations: 38.72 kB / 411.8 MB, free: 6.348 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002334/0.2464, allocations: 276.9 kB / 412.1 MB, free: 6.086 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.306e-05/0.2465, allocations: 20.62 kB / 412.1 MB, free: 6.078 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.088e-05/0.2465, allocations: 27.16 kB / 412.1 MB, free: 6.07 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004611/0.247, allocations: 285 kB / 412.4 MB, free: 5.945 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.021e-05/0.247, allocations: 0 / 412.4 MB, free: 5.945 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.333e-05/0.247, allocations: 10.53 kB / 412.4 MB, free: 5.938 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.145e-06/0.2471, allocations: 6.719 kB / 412.4 MB, free: 5.938 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004641/0.2475, allocations: 254.6 kB / 412.7 MB, free: 5.859 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001393/0.2489, allocations: 1.085 MB / 413.7 MB, free: 5.121 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004106/0.2493, allocations: 252 kB / 414 MB, free: 5.02 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002315/0.2496, allocations: 124.5 kB / 414.1 MB, free: 4.977 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.033e-05/0.2496, allocations: 18.08 kB / 414.1 MB, free: 4.973 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.565e-05/0.2497, allocations: 36.78 kB / 414.2 MB, free: 4.93 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 1.322e-06/0.2497, allocations: 8.969 kB / 414.2 MB, free: 4.922 MB / 286.1 MB Notification: Performance of matching and sorting (n=34): time 0.003925/0.2536, allocations: 1.648 MB / 415.8 MB, free: 4.137 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.034e-05/0.2536, allocations: 59.44 kB / 415.9 MB, free: 4.07 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002467/0.2539, allocations: 281.5 kB / 416.1 MB, free: 3.906 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.951e-05/0.2539, allocations: 31.05 kB / 416.2 MB, free: 3.871 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.671e-05/0.254, allocations: 195.8 kB / 416.4 MB, free: 3.703 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.139e-05/0.2541, allocations: 119 kB / 416.5 MB, free: 3.609 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.332e-05/0.2541, allocations: 35.61 kB / 416.5 MB, free: 3.582 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 5.66e-05/0.2542, allocations: 343.6 kB / 416.9 MB, free: 3.254 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002275/0.2544, allocations: 121.8 kB / 417 MB, free: 3.215 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002342/0.2547, allocations: 174 kB / 417.1 MB, free: 3.121 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004394/0.2551, allocations: 304.8 kB / 417.4 MB, free: 2.973 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.283e-06/0.2551, allocations: 0 / 417.4 MB, free: 2.973 MB / 286.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001503/0.2566, allocations: 0.6322 MB / 418.1 MB, free: 2.746 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.351e-05/0.2567, allocations: 5.5 kB / 418.1 MB, free: 2.746 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.688e-06/0.2567, allocations: 1.375 kB / 418.1 MB, free: 2.746 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00254/0.2592, allocations: 0.5177 MB / 418.6 MB, free: 2.66 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002596/0.2595, allocations: 63.52 kB / 418.7 MB, free: 2.652 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006378/0.2601, allocations: 1.287 MB / 419.9 MB, free: 1.5 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001861/0.2603, allocations: 10.56 kB / 420 MB, free: 1.496 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.267e-05/0.2604, allocations: 18.25 kB / 420 MB, free: 1.488 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.0001366/0.2605, allocations: 153.2 kB / 420.1 MB, free: 1.348 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.087e-05/0.2606, allocations: 31.2 kB / 420.2 MB, free: 1.332 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001487/0.262, allocations: 0.5807 MB / 420.7 MB, free: 1.117 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.241e-06/0.2621, allocations: 4.25 kB / 420.7 MB, free: 1.117 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.2621, allocations: 0.7031 kB / 420.7 MB, free: 1.117 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.501e-06/0.2621, allocations: 1.312 kB / 420.7 MB, free: 1.117 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002016/0.2641, allocations: 1.073 MB / 421.8 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/0.2641, allocations: 1.688 kB / 421.8 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002196/0.2644, allocations: 44.84 kB / 421.9 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002512/0.2669, allocations: 0.5219 MB / 422.4 MB, free: 448 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.749e-05/0.2669, allocations: 11.44 kB / 422.4 MB, free: 440 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007936/0.2677, allocations: 1.277 MB / 423.7 MB, free: 15.29 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.939e-06/0.2677, allocations: 5.016 kB / 423.7 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001845/0.2696, allocations: 0.8199 MB / 424.5 MB, free: 14.9 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.491e-05/0.2697, allocations: 106.8 kB / 424.6 MB, free: 14.79 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.484e-05/0.2697, allocations: 14.89 kB / 424.6 MB, free: 14.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000197/0.2699, allocations: 13.78 kB / 424.6 MB, free: 14.77 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.981e-05/0.27, allocations: 26.02 kB / 424.7 MB, free: 14.76 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.086e-05/0.2701, allocations: 8.297 kB / 424.7 MB, free: 14.76 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002336/0.2703, allocations: 199.6 kB / 424.9 MB, free: 14.65 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2703, allocations: 0 / 424.9 MB, free: 14.65 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004599/0.2708, allocations: 99.05 kB / 425 MB, free: 14.63 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.002293/0.2731, allocations: 1.38 MB / 426.3 MB, free: 13.72 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009032/0.274, allocations: 333.8 kB / 426.7 MB, free: 13.62 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.274, allocations: 0 / 426.7 MB, free: 13.62 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004342/0.2744, allocations: 192.9 kB / 426.8 MB, free: 13.57 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000425/0.2749, allocations: 50.94 kB / 426.9 MB, free: 13.54 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006557/0.2814, allocations: 3.948 MB / 430.8 MB, free: 10.84 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003958/0.2819, allocations: 0.7846 MB / 431.6 MB, free: 10.11 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001322/0.282, allocations: 25.33 kB / 431.7 MB, free: 10.09 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001564/0.2822, allocations: 115.7 kB / 431.8 MB, free: 9.988 MB / 302.1 MB Notification: Performance of SimCode: time 5.61e-07/0.2822, allocations: 0 / 431.8 MB, free: 9.988 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02155/0.3037, allocations: 6.496 MB / 438.3 MB, free: 4.891 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002797/0.304, allocations: 239.2 kB / 438.5 MB, free: 4.625 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.859/2.163, allocations: 0 / 438.5 MB, free: 4.625 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 & /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)