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.002/0.001999, allocations: 121.8 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.002201/0.002201, allocations: 202 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.496/1.496, allocations: 227.7 MB / 247.2 MB, free: 10.18 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.001844/0.001844, allocations: 67.89 kB / 358.5 MB, free: 13.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2405/0.2424, allocations: 50.53 MB / 409.1 MB, free: 1.375 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CompareTransformers): time 0.005311/0.2477, allocations: 4.115 MB / 413.2 MB, free: 13.24 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001696/0.2495, allocations: 0.9502 MB / 414.1 MB, free: 12.29 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002143/0.2497, allocations: 8 kB / 414.2 MB, free: 12.28 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002395/0.25, allocations: 91.08 kB / 414.2 MB, free: 12.19 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003532/0.2503, allocations: 186.4 kB / 414.4 MB, free: 12 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004096/0.2508, allocations: 163.7 kB / 414.6 MB, free: 11.84 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006747/0.2514, allocations: 0.6732 MB / 415.3 MB, free: 11.17 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003288/0.2518, allocations: 207 kB / 415.5 MB, free: 10.95 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003637/0.2521, allocations: 263 kB / 415.7 MB, free: 10.7 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000357/0.2525, allocations: 298.6 kB / 416 MB, free: 10.4 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.208e-05/0.2526, allocations: 52 kB / 416.1 MB, free: 10.35 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001305/0.2527, allocations: 60 kB / 416.1 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001104/0.2529, allocations: 131.5 kB / 416.2 MB, free: 10.16 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004107/0.2533, allocations: 310.5 kB / 416.6 MB, free: 9.859 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007578/0.254, allocations: 0.6447 MB / 417.2 MB, free: 9.215 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.2541, allocations: 0 / 417.2 MB, free: 9.215 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.2541, allocations: 0 / 417.2 MB, free: 9.215 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.437e-06/0.2541, 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.001463/0.2556, allocations: 0.8839 MB / 418.1 MB, free: 8.281 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.069e-05/0.2556, allocations: 12.03 kB / 418.1 MB, free: 8.27 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000142/0.2558, allocations: 107.9 kB / 418.2 MB, free: 8.152 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002831/0.256, allocations: 88.48 kB / 418.3 MB, free: 8.066 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005597/0.2566, allocations: 379.9 kB / 418.7 MB, free: 7.66 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.346e-05/0.2567, allocations: 41.62 kB / 418.7 MB, free: 7.621 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.195e-05/0.2567, allocations: 64.31 kB / 418.8 MB, free: 7.559 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008116/0.2576, allocations: 0.4957 MB / 419.3 MB, free: 7.043 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.471e-05/0.2576, allocations: 3.938 kB / 419.3 MB, free: 7.039 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.26e-05/0.2576, allocations: 20 kB / 419.3 MB, free: 7.02 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.306e-05/0.2577, allocations: 12 kB / 419.3 MB, free: 7.008 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006392/0.2583, allocations: 344.6 kB / 419.6 MB, free: 6.676 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002723/0.261, allocations: 1.718 MB / 421.3 MB, free: 4.859 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005/0.2616, allocations: 269.1 kB / 421.6 MB, free: 4.578 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002528/0.2618, allocations: 137.7 kB / 421.7 MB, free: 4.438 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.708e-05/0.2619, allocations: 8 kB / 421.7 MB, free: 4.43 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.787e-05/0.2619, allocations: 42.5 kB / 421.8 MB, free: 4.379 MB / 334.1 MB Notification: Performance of pre-optimization done (n=31): time 3.055e-06/0.2619, allocations: 0 / 421.8 MB, free: 4.379 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.002185/0.2641, allocations: 0.983 MB / 422.8 MB, free: 3.32 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.19e-05/0.2642, allocations: 81.11 kB / 422.9 MB, free: 3.223 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004776/0.2647, allocations: 385.7 kB / 423.2 MB, free: 2.836 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.085e-05/0.2647, allocations: 29.7 kB / 423.3 MB, free: 2.801 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002217/0.265, allocations: 308.1 kB / 423.6 MB, free: 2.492 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001039/0.2651, allocations: 122.9 kB / 423.7 MB, free: 2.371 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001221/0.2652, allocations: 74.09 kB / 423.8 MB, free: 2.293 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001673/0.2654, allocations: 354.8 kB / 424.1 MB, free: 1.938 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002194/0.2656, allocations: 96.83 kB / 424.2 MB, free: 1.84 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002681/0.2659, allocations: 190.6 kB / 424.4 MB, free: 1.621 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004855/0.2664, allocations: 307.2 kB / 424.7 MB, free: 1.285 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.2664, allocations: 8 kB / 424.7 MB, free: 1.277 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0009492/0.2673, allocations: 452.6 kB / 425.1 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.193e-05/0.2674, allocations: 12 kB / 425.1 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.086e-05/0.2674, allocations: 4 kB / 425.1 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003903/0.2678, allocations: 81.59 kB / 425.2 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003204/0.2681, allocations: 79.89 kB / 425.3 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002803/0.2709, allocations: 3.123 MB / 428.4 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003068/0.2713, allocations: 19.97 kB / 428.4 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.176e-05/0.2713, allocations: 12 kB / 428.5 MB, free: 13.22 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.0002453/0.2716, allocations: 161.8 kB / 428.6 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.925e-05/0.2717, allocations: 55.72 kB / 428.7 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.629e-05/0.2718, allocations: 51.39 kB / 428.7 MB, free: 12.94 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.2718, allocations: 0 / 428.7 MB, free: 12.94 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.247e-06/0.2718, allocations: 7.984 kB / 428.7 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.2718, allocations: 0 / 428.7 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001436/0.2732, allocations: 0.9624 MB / 429.7 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.37e-06/0.2732, allocations: 4 kB / 429.7 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001858/0.2734, allocations: 47.92 kB / 429.7 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002834/0.2737, allocations: 81.58 kB / 429.8 MB, free: 11.78 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.392e-05/0.2738, allocations: 11.98 kB / 429.8 MB, free: 11.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002636/0.2764, allocations: 3.12 MB / 433 MB, free: 8.371 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.2764, allocations: 0 / 433 MB, free: 8.371 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000954/0.2774, allocations: 0.6175 MB / 433.6 MB, free: 7.73 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001105/0.2775, allocations: 116.9 kB / 433.7 MB, free: 7.598 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.504e-05/0.2776, allocations: 4 kB / 433.7 MB, free: 7.594 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003328/0.2779, allocations: 35.97 kB / 433.7 MB, free: 7.559 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.588e-05/0.278, allocations: 27.91 kB / 433.7 MB, free: 7.531 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.156e-05/0.278, allocations: 12.08 kB / 433.8 MB, free: 7.52 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003099/0.2783, allocations: 271.2 kB / 434 MB, free: 7.258 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2783, allocations: 0 / 434 MB, free: 7.258 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005839/0.2789, allocations: 120 kB / 434.1 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.001298/0.2802, allocations: 1.17 MB / 435.3 MB, free: 5.934 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009522/0.2812, allocations: 0.5088 MB / 435.8 MB, free: 5.398 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.2812, allocations: 0 / 435.8 MB, free: 5.398 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006168/0.2818, allocations: 393.8 kB / 436.2 MB, free: 4.988 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005068/0.2823, allocations: 53.53 kB / 436.3 MB, free: 4.938 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005826/0.2882, allocations: 4.235 MB / 440.5 MB, free: 0.543 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005042/0.2887, allocations: 0.8431 MB / 441.3 MB, free: 15.67 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001832/0.2889, allocations: 47.22 kB / 441.4 MB, free: 15.62 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002289/0.2891, allocations: 175.4 kB / 441.6 MB, free: 15.45 MB / 366.1 MB Notification: Performance of SimCode: time 1.022e-06/0.2892, allocations: 4 kB / 441.6 MB, free: 15.44 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0401/0.3293, allocations: 9.029 MB / 450.6 MB, free: 6.617 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.34/11.67, allocations: 16.83 kB / 450.6 MB, free: 6.605 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CompareTransformers_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_CompareTransformers_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 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)