Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.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 trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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: translateModel(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|capacitor2a.v|capacitor2b.v|directCapacitor1.capacitor.v|directInductor3.inductor.i|inductor4a.i|inductor4b.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs") translateModel(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|capacitor2a.v|capacitor2b.v|directCapacitor1.capacitor.v|directInductor3.inductor.i|inductor4a.i|inductor4b.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001212/0.001211, allocations: 117.2 kB / 17.78 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001384/0.001384, allocations: 208.6 kB / 18.74 MB, free: 4.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.473/1.473, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001405/0.001405, allocations: 59.91 kB / 358.7 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4652/0.4666, allocations: 50.55 MB / 409.3 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.007752/0.4745, allocations: 6.014 MB / 415.3 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004708/0.4792, allocations: 1.741 MB / 417 MB, free: 9.777 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001253/0.4805, allocations: 31.88 kB / 417 MB, free: 9.746 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007427/0.4813, allocations: 245.6 kB / 417.3 MB, free: 9.504 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008618/0.4822, allocations: 217.7 kB / 417.5 MB, free: 9.289 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001351/0.4835, allocations: 0.5149 MB / 418 MB, free: 8.773 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001779/0.4853, allocations: 1.407 MB / 419.4 MB, free: 7.355 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00104/0.4864, allocations: 0.6325 MB / 420.1 MB, free: 6.699 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008489/0.4873, allocations: 474.1 kB / 420.5 MB, free: 6.234 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005308/0.4878, allocations: 0.4973 MB / 421 MB, free: 5.734 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000185/0.488, allocations: 120 kB / 421.1 MB, free: 5.617 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003197/0.4883, allocations: 143.9 kB / 421.3 MB, free: 5.477 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002392/0.4886, allocations: 267 kB / 421.5 MB, free: 5.215 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005616/0.4891, allocations: 0.6139 MB / 422.1 MB, free: 4.598 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001739/0.4909, allocations: 1.62 MB / 423.8 MB, free: 2.977 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.664e-06/0.4909, allocations: 0 / 423.8 MB, free: 2.977 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.966e-06/0.4909, allocations: 0 / 423.8 MB, free: 2.977 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.506e-05/0.4909, allocations: 4 kB / 423.8 MB, free: 2.973 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: 306 * Number of variables: 306 Notification: Performance of Generate backend data structure: time 0.002206/0.4932, allocations: 1.466 MB / 425.2 MB, free: 1.453 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.481e-05/0.4932, allocations: 12.03 kB / 425.2 MB, free: 1.441 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004131/0.4936, allocations: 166.2 kB / 425.4 MB, free: 1.277 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001296/0.4949, allocations: 0.7589 MB / 426.2 MB, free: 484 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.368e-05/0.4951, allocations: 90.41 kB / 426.3 MB, free: 392 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001525/0.4952, allocations: 119.9 kB / 426.4 MB, free: 272 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002014/0.4972, allocations: 1.264 MB / 427.6 MB, free: 14.83 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.008e-05/0.4973, allocations: 7.938 kB / 427.6 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.774e-05/0.4974, allocations: 52 kB / 427.7 MB, free: 14.77 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.799e-05/0.4974, allocations: 32 kB / 427.7 MB, free: 14.74 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001227/0.4986, allocations: 0.6929 MB / 428.4 MB, free: 14.05 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006728/0.5054, allocations: 6.773 MB / 435.2 MB, free: 6.941 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007733/0.5062, allocations: 261.5 kB / 435.5 MB, free: 6.668 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003674/0.5066, allocations: 193.9 kB / 435.6 MB, free: 6.473 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001614/0.5068, allocations: 81.11 kB / 435.7 MB, free: 6.375 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.361e-05/0.5068, allocations: 42.55 kB / 435.8 MB, free: 6.324 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 3.998e-06/0.5068, allocations: 0 / 435.8 MB, free: 6.324 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.002646/0.5095, allocations: 1.402 MB / 437.2 MB, free: 4.812 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.624e-05/0.5095, allocations: 81.09 kB / 437.2 MB, free: 4.715 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008615/0.5104, allocations: 0.6609 MB / 437.9 MB, free: 4.047 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.261e-05/0.5105, allocations: 37.7 kB / 437.9 MB, free: 4.004 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004671/0.5109, allocations: 0.6797 MB / 438.6 MB, free: 3.312 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.79e-05/0.511, allocations: 118.5 kB / 438.7 MB, free: 3.195 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001974/0.5112, allocations: 146.4 kB / 438.9 MB, free: 3.043 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001935/0.5114, allocations: 386.8 kB / 439.3 MB, free: 2.656 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002676/0.5117, allocations: 145.9 kB / 439.4 MB, free: 2.516 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005392/0.5123, allocations: 0.5506 MB / 439.9 MB, free: 1.762 MB / 350.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: directCapacitor1.currentToVoltage.y = $START.directCapacitor1.currentToVoltage.y ($START.inverseCapacitor1.capacitor.v = $START.directCapacitor1.currentToVoltage.y) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: directInductor3.currentToVoltage.y = $START.directInductor3.currentToVoltage.y ($START.inverseInductor3.inductor.i = $START.directInductor3.currentToVoltage.y) Notification: Performance of analyzeInitialSystem (initialization): time 0.001233/0.5135, allocations: 0.96 MB / 440.9 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.362e-06/0.5135, allocations: 4 kB / 440.9 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.00131/0.5148, allocations: 0.7911 MB / 441.7 MB, free: 15.76 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.147e-05/0.5149, allocations: 12 kB / 441.7 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.513e-05/0.5149, allocations: 19.94 kB / 441.7 MB, free: 15.73 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003398/0.5153, allocations: 77.69 kB / 441.8 MB, free: 15.65 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005787/0.5159, allocations: 192.2 kB / 442 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003603/0.5195, allocations: 3.317 MB / 445.3 MB, free: 11.87 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006416/0.5202, allocations: 35.94 kB / 445.4 MB, free: 11.83 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.482e-05/0.5202, allocations: 40 kB / 445.4 MB, free: 11.79 MB / 366.1 MB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization system: directCapacitor1.currentToVoltage.y = $START.directCapacitor1.currentToVoltage.y directInductor3.currentToVoltage.y = $START.directInductor3.currentToVoltage.y. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 65 * 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 (91): * Single equations (assignments): 89 * 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,4,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006827/0.5209, allocations: 269.5 kB / 445.7 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001864/0.5211, allocations: 75.06 kB / 445.7 MB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001165/0.5212, allocations: 78.47 kB / 445.8 MB, free: 11.37 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-06/0.5212, allocations: 0 / 445.8 MB, free: 11.37 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.037e-05/0.5213, allocations: 4 kB / 445.8 MB, free: 11.36 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/0.5213, allocations: 0 / 445.8 MB, free: 11.36 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002034/0.5233, allocations: 1.251 MB / 447.1 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.5233, allocations: 0 / 447.1 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003176/0.5237, allocations: 71.89 kB / 447.1 MB, free: 9.969 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001916/0.5239, allocations: 53.77 kB / 447.2 MB, free: 9.91 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.682e-05/0.5239, allocations: 11.94 kB / 447.2 MB, free: 9.898 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002654/0.5266, allocations: 3.062 MB / 450.3 MB, free: 6.559 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.154e-05/0.5266, allocations: 0 / 450.3 MB, free: 6.559 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000972/0.5276, allocations: 0.635 MB / 450.9 MB, free: 5.887 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001784/0.5278, allocations: 144.2 kB / 451 MB, free: 5.727 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.888e-05/0.5278, allocations: 8 kB / 451 MB, free: 5.719 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000256/0.5281, allocations: 15.98 kB / 451.1 MB, free: 5.703 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.524e-05/0.5282, allocations: 27.91 kB / 451.1 MB, free: 5.676 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.049e-05/0.5282, allocations: 7.938 kB / 451.1 MB, free: 5.668 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000673/0.5289, allocations: 443 kB / 451.5 MB, free: 5.238 MB / 366.1 MB Notification: Performance of sort global known variables: time 5.91e-07/0.5289, allocations: 4 kB / 451.5 MB, free: 5.234 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001157/0.5301, allocations: 152 kB / 451.7 MB, free: 5.086 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (inverseInductor3.inductor.i,inductor4a.i,inductor4b.i,directCapacitor1.currentToVoltage.y,capacitor2a.v,capacitor2b.v) * 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 (24): * Single equations (assignments): 22 * 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,3,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002047/0.5303, allocations: 118.5 kB / 451.8 MB, free: 4.965 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001346/0.5316, allocations: 0.6587 MB / 452.4 MB, free: 4.285 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.217e-06/0.5317, allocations: 0 / 452.4 MB, free: 4.285 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005395/0.5322, allocations: 357.2 kB / 452.8 MB, free: 3.91 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005618/0.5328, allocations: 79.84 kB / 452.9 MB, free: 3.836 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004322/0.5371, allocations: 1.818 MB / 454.7 MB, free: 1.973 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009463/0.5381, allocations: 1.031 MB / 455.7 MB, free: 0.9141 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003066/0.5384, allocations: 86.02 kB / 455.8 MB, free: 0.8281 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001372/0.5386, allocations: 59.41 kB / 455.9 MB, free: 0.7695 MB / 366.1 MB Notification: Performance of SimCode: time 1.503e-06/0.5386, allocations: 0 / 455.9 MB, free: 0.7695 MB / 366.1 MB Notification: Performance of Templates: time 0.01602/0.5546, allocations: 5.58 MB / 461.4 MB, free: 11.22 MB / 382.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches