Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CompareTransformers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CompareTransformers,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_CompareTransformers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CompareTransformers,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_CompareTransformers",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001323/0.001323, allocations: 121.1 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001274/0.001274, allocations: 203.8 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.39/1.39, allocations: 227.7 MB / 247.2 MB, free: 10.21 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001811/0.001811, allocations: 67.89 kB / 358.6 MB, free: 13.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2686/0.2704, allocations: 50.55 MB / 409.1 MB, free: 1.367 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CompareTransformers): time 0.005435/0.2759, allocations: 4.107 MB / 413.2 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002031/0.2779, allocations: 0.9541 MB / 414.2 MB, free: 12.29 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005188/0.2785, allocations: 11.94 kB / 414.2 MB, free: 12.27 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003361/0.2789, allocations: 95.06 kB / 414.3 MB, free: 12.18 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004651/0.2793, allocations: 182.4 kB / 414.5 MB, free: 12 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004349/0.2798, allocations: 151.8 kB / 414.6 MB, free: 11.85 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007291/0.2805, allocations: 0.6848 MB / 415.3 MB, free: 11.16 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003184/0.2808, allocations: 203 kB / 415.5 MB, free: 10.95 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000333/0.2812, allocations: 263 kB / 415.7 MB, free: 10.7 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000345/0.2815, allocations: 294.6 kB / 416 MB, free: 10.41 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.607e-05/0.2816, allocations: 60 kB / 416.1 MB, free: 10.35 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000125/0.2818, allocations: 56 kB / 416.1 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000113/0.2819, allocations: 127.5 kB / 416.3 MB, free: 10.17 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002919/0.2822, allocations: 306.4 kB / 416.6 MB, free: 9.867 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008127/0.283, allocations: 0.6525 MB / 417.2 MB, free: 9.215 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.283, allocations: 0 / 417.2 MB, free: 9.215 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.283, allocations: 0 / 417.2 MB, free: 9.215 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.818e-06/0.283, allocations: 0 / 417.2 MB, free: 9.215 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001515/0.2846, allocations: 0.88 MB / 418.1 MB, free: 8.285 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.271e-05/0.2846, allocations: 11.97 kB / 418.1 MB, free: 8.273 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001518/0.2848, allocations: 107.9 kB / 418.2 MB, free: 8.156 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002787/0.2851, allocations: 92.48 kB / 418.3 MB, free: 8.066 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006003/0.2857, allocations: 379.9 kB / 418.7 MB, free: 7.66 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.688e-05/0.2857, allocations: 37.69 kB / 418.7 MB, free: 7.625 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.997e-05/0.2858, allocations: 56.33 kB / 418.8 MB, free: 7.57 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008522/0.2867, allocations: 0.5073 MB / 419.3 MB, free: 7.043 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.5e-05/0.2867, allocations: 0 / 419.3 MB, free: 7.043 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.654e-05/0.2867, allocations: 20 kB / 419.3 MB, free: 7.023 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.433e-05/0.2867, allocations: 12 kB / 419.3 MB, free: 7.012 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006464/0.2874, allocations: 340.7 kB / 419.6 MB, free: 6.684 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002697/0.2901, allocations: 1.729 MB / 421.4 MB, free: 4.855 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004543/0.2906, allocations: 249.2 kB / 421.6 MB, free: 4.594 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002513/0.2908, allocations: 145.6 kB / 421.8 MB, free: 4.445 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.611e-05/0.2909, allocations: 7.984 kB / 421.8 MB, free: 4.438 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.408e-05/0.2909, allocations: 46.5 kB / 421.8 MB, free: 4.383 MB / 334.1 MB Notification: Performance of pre-optimization done (n=31): time 1.423e-06/0.2909, allocations: 0 / 421.8 MB, free: 4.383 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.001959/0.2929, allocations: 0.9784 MB / 422.8 MB, free: 3.332 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.346e-05/0.2929, allocations: 81.11 kB / 422.9 MB, free: 3.234 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004349/0.2934, allocations: 389.7 kB / 423.2 MB, free: 2.844 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.132e-05/0.2934, allocations: 29.7 kB / 423.3 MB, free: 2.809 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002383/0.2937, allocations: 304.1 kB / 423.6 MB, free: 2.504 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001127/0.2938, allocations: 123 kB / 423.7 MB, free: 2.383 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001338/0.2939, allocations: 86.02 kB / 423.8 MB, free: 2.293 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002289/0.2942, allocations: 346.8 kB / 424.1 MB, free: 1.945 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002209/0.2944, allocations: 96.83 kB / 424.2 MB, free: 1.848 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003182/0.2947, allocations: 198.6 kB / 424.4 MB, free: 1.621 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005773/0.2953, allocations: 311.2 kB / 424.7 MB, free: 1.281 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.2953, allocations: 0 / 424.7 MB, free: 1.281 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0009711/0.2963, allocations: 448.3 kB / 425.1 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.012e-05/0.2963, allocations: 4 kB / 425.1 MB, free: 0.832 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.537e-05/0.2964, allocations: 7.984 kB / 425.2 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004051/0.2968, allocations: 89.84 kB / 425.2 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003434/0.2971, allocations: 75.91 kB / 425.3 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003225/0.3004, allocations: 3.135 MB / 428.5 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002805/0.3007, allocations: 23.92 kB / 428.5 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.499e-05/0.3007, allocations: 12 kB / 428.5 MB, free: 13.21 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (45): * Single equations (assignments): 43 * 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): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002369/0.3009, allocations: 161.7 kB / 428.6 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.082e-05/0.301, allocations: 47.66 kB / 428.7 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.288e-05/0.3011, allocations: 51.41 kB / 428.7 MB, free: 12.94 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.077e-06/0.3011, allocations: 12 kB / 428.8 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.857e-06/0.3011, allocations: 0 / 428.8 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.3012, allocations: 3.984 kB / 428.8 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001378/0.3025, allocations: 0.9512 MB / 429.7 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.3026, allocations: 0 / 429.7 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001845/0.3028, allocations: 51.91 kB / 429.8 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002786/0.303, allocations: 77.64 kB / 429.8 MB, free: 11.78 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.608e-05/0.3031, allocations: 8 kB / 429.8 MB, free: 11.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002749/0.3058, allocations: 3.128 MB / 433 MB, free: 8.371 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.3058, allocations: 0 / 433 MB, free: 8.371 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009319/0.3068, allocations: 0.6214 MB / 433.6 MB, free: 7.727 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001068/0.3069, allocations: 116.9 kB / 433.7 MB, free: 7.594 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.887e-05/0.307, allocations: 8 kB / 433.7 MB, free: 7.586 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003206/0.3073, allocations: 27.97 kB / 433.7 MB, free: 7.559 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.539e-05/0.3074, allocations: 27.97 kB / 433.8 MB, free: 7.531 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.257e-05/0.3074, allocations: 8 kB / 433.8 MB, free: 7.523 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003325/0.3077, allocations: 279.2 kB / 434 MB, free: 7.254 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3077, allocations: 0 / 434 MB, free: 7.254 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005752/0.3083, allocations: 116 kB / 434.2 MB, free: 7.141 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (inductor22.i,basicTransformer.i1,basicTransformer.i2) * 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 (26): * Single equations (assignments): 24 * 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): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001269/0.3096, allocations: 1.166 MB / 435.3 MB, free: 5.938 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009362/0.3106, allocations: 0.5089 MB / 435.8 MB, free: 5.402 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.09e-06/0.3106, allocations: 4 kB / 435.8 MB, free: 5.398 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000593/0.3112, allocations: 385.7 kB / 436.2 MB, free: 4.996 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005002/0.3117, allocations: 69.66 kB / 436.3 MB, free: 4.93 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005951/0.3176, allocations: 4.225 MB / 440.5 MB, free: 0.543 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006759/0.3183, allocations: 0.8431 MB / 441.4 MB, free: 15.67 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001719/0.3185, allocations: 43.3 kB / 441.4 MB, free: 15.62 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002453/0.3188, allocations: 171.4 kB / 441.6 MB, free: 15.45 MB / 366.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3188, allocations: 0 / 441.6 MB, free: 15.45 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04513/0.3639, allocations: 9.057 MB / 450.6 MB, free: 6.605 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.971/10.33, allocations: 6.281 kB / 450.6 MB, free: 6.602 MB / 366.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CompareTransformers.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CompareTransformers_res.csv --start-time 0 --stop-time 50 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_CompareTransformers.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe 2>&1)