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.001458/0.001457, allocations: 113.2 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001839/0.001839, allocations: 203.8 kB / 18.73 MB, free: 4.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.568/1.568, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001541/0.001542, allocations: 59.91 kB / 358.7 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.492/0.4936, allocations: 50.55 MB / 409.3 MB, free: 1.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.008397/0.502, allocations: 6.011 MB / 415.3 MB, free: 11.53 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004152/0.5062, allocations: 1.741 MB / 417 MB, free: 9.781 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001233/0.5075, allocations: 27.88 kB / 417.1 MB, free: 9.754 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007016/0.5083, allocations: 245.6 kB / 417.3 MB, free: 9.512 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000865/0.5092, allocations: 225.7 kB / 417.5 MB, free: 9.289 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001436/0.5106, allocations: 0.5149 MB / 418 MB, free: 8.773 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001785/0.5124, allocations: 1.399 MB / 419.4 MB, free: 7.363 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001044/0.5135, allocations: 0.6169 MB / 420 MB, free: 6.723 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001023/0.5145, allocations: 482.1 kB / 420.5 MB, free: 6.25 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005703/0.5151, allocations: 0.4934 MB / 421 MB, free: 5.754 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001758/0.5153, allocations: 120 kB / 421.1 MB, free: 5.637 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002988/0.5156, allocations: 139.9 kB / 421.3 MB, free: 5.5 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002266/0.5158, allocations: 267 kB / 421.5 MB, free: 5.238 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005601/0.5164, allocations: 0.6178 MB / 422.1 MB, free: 4.617 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001995/0.5184, allocations: 1.626 MB / 423.8 MB, free: 2.988 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.225e-06/0.5184, allocations: 0 / 423.8 MB, free: 2.988 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.207e-06/0.5184, allocations: 0 / 423.8 MB, free: 2.988 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.412e-05/0.5185, allocations: 3.938 kB / 423.8 MB, free: 2.984 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.00281/0.5213, allocations: 1.5 MB / 425.3 MB, free: 1.43 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.796e-05/0.5214, allocations: 12.03 kB / 425.3 MB, free: 1.418 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004657/0.5218, allocations: 163 kB / 425.4 MB, free: 1.258 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001249/0.5231, allocations: 0.7711 MB / 426.2 MB, free: 452 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.242e-05/0.5232, allocations: 90.41 kB / 426.3 MB, free: 360 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001429/0.5233, allocations: 123.9 kB / 426.4 MB, free: 236 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001951/0.5253, allocations: 1.268 MB / 427.7 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.617e-05/0.5253, allocations: 7.938 kB / 427.7 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.504e-05/0.5254, allocations: 59.98 kB / 427.8 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.754e-05/0.5255, allocations: 32 kB / 427.8 MB, free: 14.7 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001215/0.5267, allocations: 0.6812 MB / 428.5 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006351/0.533, allocations: 6.802 MB / 435.3 MB, free: 6.879 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007361/0.5338, allocations: 265.3 kB / 435.5 MB, free: 6.602 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003751/0.5342, allocations: 185.6 kB / 435.7 MB, free: 6.414 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001618/0.5344, allocations: 81.11 kB / 435.8 MB, free: 6.316 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.477e-05/0.5344, allocations: 38.56 kB / 435.8 MB, free: 6.27 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 2.985e-06/0.5345, allocations: 4 kB / 435.8 MB, free: 6.266 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.003006/0.5375, allocations: 1.421 MB / 437.2 MB, free: 4.738 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.97e-05/0.5376, allocations: 85.11 kB / 437.3 MB, free: 4.637 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000884/0.5385, allocations: 0.6648 MB / 438 MB, free: 3.965 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.039e-05/0.5385, allocations: 29.7 kB / 438 MB, free: 3.93 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004961/0.539, allocations: 0.7094 MB / 438.7 MB, free: 3.211 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001058/0.5391, allocations: 119 kB / 438.9 MB, free: 3.094 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002175/0.5393, allocations: 142.6 kB / 439 MB, free: 2.945 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000223/0.5396, allocations: 382.8 kB / 439.4 MB, free: 2.562 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000297/0.5399, allocations: 149.9 kB / 439.5 MB, free: 2.418 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006958/0.5406, allocations: 0.5507 MB / 440.1 MB, free: 1.664 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.001456/0.5421, allocations: 0.9493 MB / 441 MB, free: 492 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.566e-06/0.5421, allocations: 8 kB / 441 MB, free: 484 kB / 350.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001608/0.5437, allocations: 0.8015 MB / 441.8 MB, free: 15.66 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.357e-05/0.5437, allocations: 16.75 kB / 441.8 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.178e-05/0.5438, allocations: 19.94 kB / 441.9 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003134/0.5441, allocations: 85.69 kB / 441.9 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005364/0.5446, allocations: 183.7 kB / 442.1 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003185/0.5478, allocations: 3.324 MB / 445.4 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000705/0.5486, allocations: 35.98 kB / 445.5 MB, free: 11.72 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.617e-05/0.5486, allocations: 44 kB / 445.5 MB, free: 11.68 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.0005877/0.5492, allocations: 269.5 kB / 445.8 MB, free: 11.4 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001263/0.5494, allocations: 71.53 kB / 445.9 MB, free: 11.33 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001137/0.5495, allocations: 74.42 kB / 445.9 MB, free: 11.26 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.5495, allocations: 4 kB / 445.9 MB, free: 11.25 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.053e-05/0.5495, allocations: 0 / 445.9 MB, free: 11.25 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.5495, allocations: 3.984 kB / 445.9 MB, free: 11.25 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001785/0.5513, allocations: 1.259 MB / 447.2 MB, free: 9.918 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.471e-06/0.5513, allocations: 7.938 kB / 447.2 MB, free: 9.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002904/0.5516, allocations: 59.95 kB / 447.3 MB, free: 9.852 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001896/0.5518, allocations: 65.7 kB / 447.3 MB, free: 9.781 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.293e-05/0.5519, allocations: 8 kB / 447.3 MB, free: 9.773 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0021/0.554, allocations: 3.062 MB / 450.4 MB, free: 6.434 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.554, allocations: 3.938 kB / 450.4 MB, free: 6.43 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008809/0.5549, allocations: 0.6316 MB / 451 MB, free: 5.762 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001599/0.5551, allocations: 140.6 kB / 451.2 MB, free: 5.605 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.236e-05/0.5551, allocations: 12.06 kB / 451.2 MB, free: 5.594 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002818/0.5554, allocations: 11.98 kB / 451.2 MB, free: 5.582 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.455e-05/0.5555, allocations: 31.91 kB / 451.2 MB, free: 5.551 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.952e-05/0.5555, allocations: 11.98 kB / 451.2 MB, free: 5.539 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005672/0.5561, allocations: 439 kB / 451.7 MB, free: 5.113 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5561, allocations: 0 / 451.7 MB, free: 5.113 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001156/0.5573, allocations: 156 kB / 451.8 MB, free: 4.961 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.0002313/0.5575, allocations: 107.2 kB / 451.9 MB, free: 4.848 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001425/0.559, allocations: 0.6593 MB / 452.6 MB, free: 4.164 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.049e-06/0.559, allocations: 0 / 452.6 MB, free: 4.164 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005547/0.5595, allocations: 362.7 kB / 452.9 MB, free: 3.785 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006492/0.5602, allocations: 83.36 kB / 453 MB, free: 3.707 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004205/0.5644, allocations: 1.847 MB / 454.9 MB, free: 1.812 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008028/0.5653, allocations: 1.034 MB / 455.9 MB, free: 0.75 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003397/0.5656, allocations: 86.02 kB / 456 MB, free: 0.6641 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001337/0.5657, allocations: 55.42 kB / 456 MB, free: 0.6094 MB / 366.1 MB Notification: Performance of SimCode: time 5.68e-06/0.5658, allocations: 0 / 456 MB, free: 0.6094 MB / 366.1 MB Notification: Performance of Templates: time 0.01585/0.5816, allocations: 5.588 MB / 461.6 MB, free: 11.06 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