Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.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) 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: 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_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001593/0.001594, allocations: 110.5 kB / 17.06 MB, free: 6.023 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.00136/0.001361, allocations: 191 kB / 18 MB, free: 5.105 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.616/1.616, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001214/0.001214, allocations: 47.94 kB / 351.3 MB, free: 3.227 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.465/0.4662, allocations: 49.43 MB / 400.7 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.008607/0.4749, allocations: 6.002 MB / 406.7 MB, free: 2.836 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004795/0.4797, allocations: 1.652 MB / 408.4 MB, free: 1.18 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001607/0.4814, allocations: 31.88 kB / 408.4 MB, free: 1.148 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008544/0.4823, allocations: 245.6 kB / 408.7 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001019/0.4834, allocations: 221.7 kB / 408.9 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001468/0.4849, allocations: 0.5032 MB / 409.4 MB, free: 188 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002274/0.4872, allocations: 1.399 MB / 410.8 MB, free: 14.78 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001131/0.4883, allocations: 0.6169 MB / 411.4 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000996/0.4893, allocations: 470.1 kB / 411.9 MB, free: 13.67 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007017/0.4901, allocations: 0.4973 MB / 412.4 MB, free: 13.17 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000194/0.4903, allocations: 124 kB / 412.5 MB, free: 13.05 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002588/0.4905, allocations: 135.9 kB / 412.6 MB, free: 12.92 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002307/0.4908, allocations: 267.1 kB / 412.9 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005466/0.4913, allocations: 0.6178 MB / 413.5 MB, free: 12.04 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001632/0.493, allocations: 1.612 MB / 415.1 MB, free: 10.42 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.776e-06/0.493, allocations: 0 / 415.1 MB, free: 10.42 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.278e-06/0.493, allocations: 4 kB / 415.1 MB, free: 10.42 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.155e-05/0.493, allocations: 0 / 415.1 MB, free: 10.42 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.002149/0.4952, allocations: 1.462 MB / 416.6 MB, free: 8.902 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.711e-05/0.4952, allocations: 15.97 kB / 416.6 MB, free: 8.887 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002044/0.4955, allocations: 138.3 kB / 416.7 MB, free: 8.75 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001056/0.4965, allocations: 0.7511 MB / 417.5 MB, free: 7.957 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.353e-05/0.4966, allocations: 90.41 kB / 417.6 MB, free: 7.867 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001397/0.4967, allocations: 123.9 kB / 417.7 MB, free: 7.746 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001915/0.4987, allocations: 1.26 MB / 418.9 MB, free: 6.316 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.413e-05/0.4987, allocations: 7.938 kB / 418.9 MB, free: 6.309 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.196e-05/0.4988, allocations: 59.98 kB / 419 MB, free: 6.25 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.33e-05/0.4989, allocations: 36 kB / 419 MB, free: 6.215 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001225/0.5001, allocations: 0.689 MB / 419.7 MB, free: 5.523 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006424/0.5065, allocations: 6.773 MB / 426.5 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008325/0.5074, allocations: 276.7 kB / 426.8 MB, free: 14.13 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003996/0.5078, allocations: 177.6 kB / 426.9 MB, free: 13.95 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001671/0.508, allocations: 85.09 kB / 427 MB, free: 13.85 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.461e-05/0.5081, allocations: 38.56 kB / 427.1 MB, free: 13.8 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 3.096e-06/0.5081, allocations: 0 / 427.1 MB, free: 13.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.002497/0.5106, allocations: 1.397 MB / 428.5 MB, free: 12.3 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.826e-05/0.5106, allocations: 81.11 kB / 428.5 MB, free: 12.2 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007629/0.5114, allocations: 0.6646 MB / 429.2 MB, free: 11.52 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.1e-05/0.5114, allocations: 29.7 kB / 429.2 MB, free: 11.49 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000453/0.5119, allocations: 0.6759 MB / 429.9 MB, free: 10.8 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.422e-05/0.512, allocations: 118.4 kB / 430 MB, free: 10.68 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002022/0.5122, allocations: 146.4 kB / 430.2 MB, free: 10.53 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000189/0.5124, allocations: 382.8 kB / 430.5 MB, free: 10.15 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002633/0.5127, allocations: 153.9 kB / 430.7 MB, free: 10 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005443/0.5132, allocations: 0.5507 MB / 431.2 MB, free: 9.25 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.00106/0.5143, allocations: 0.9621 MB / 432.2 MB, free: 8.051 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.008e-05/0.5143, allocations: 4 kB / 432.2 MB, free: 8.047 MB / 350.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001243/0.5156, allocations: 0.7933 MB / 433 MB, free: 7.242 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.474e-05/0.5156, allocations: 8 kB / 433 MB, free: 7.234 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.736e-05/0.5156, allocations: 16 kB / 433 MB, free: 7.219 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002672/0.5159, allocations: 82.38 kB / 433.1 MB, free: 7.133 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005297/0.5164, allocations: 187.7 kB / 433.3 MB, free: 6.949 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002611/0.5191, allocations: 3.332 MB / 436.6 MB, free: 3.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004286/0.5195, allocations: 35.94 kB / 436.7 MB, free: 3.305 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.893e-05/0.5196, allocations: 40 kB / 436.7 MB, free: 3.266 MB / 350.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.0005511/0.5201, allocations: 271.1 kB / 437 MB, free: 2.992 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001335/0.5203, allocations: 75.22 kB / 437 MB, free: 2.918 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001071/0.5204, allocations: 70.41 kB / 437.1 MB, free: 2.848 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.957e-06/0.5204, allocations: 7.938 kB / 437.1 MB, free: 2.84 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.041e-05/0.5204, allocations: 0 / 437.1 MB, free: 2.84 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.508e-06/0.5204, allocations: 0 / 437.1 MB, free: 2.84 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001732/0.5222, allocations: 1.251 MB / 438.4 MB, free: 1.516 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.217e-06/0.5222, allocations: 3.938 kB / 438.4 MB, free: 1.512 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003031/0.5225, allocations: 67.95 kB / 438.4 MB, free: 1.445 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001537/0.5226, allocations: 49.69 kB / 438.5 MB, free: 1.391 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.553e-05/0.5227, allocations: 16.22 kB / 438.5 MB, free: 1.375 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00197/0.5247, allocations: 3.045 MB / 441.5 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.077e-06/0.5247, allocations: 8 kB / 441.5 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008335/0.5255, allocations: 0.6368 MB / 442.2 MB, free: 13.37 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001212/0.5257, allocations: 144.2 kB / 442.3 MB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.626e-05/0.5257, allocations: 8 kB / 442.3 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002704/0.526, allocations: 15.98 kB / 442.4 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.07e-05/0.5261, allocations: 27.91 kB / 442.4 MB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.73e-05/0.5261, allocations: 8 kB / 442.4 MB, free: 13.15 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004777/0.5266, allocations: 439 kB / 442.8 MB, free: 12.72 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5266, allocations: 0 / 442.8 MB, free: 12.72 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008906/0.5275, allocations: 156 kB / 443 MB, free: 12.57 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.0001409/0.5276, allocations: 107.2 kB / 443.1 MB, free: 12.46 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001035/0.5287, allocations: 0.6631 MB / 443.7 MB, free: 11.77 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.5287, allocations: 0 / 443.7 MB, free: 11.77 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004367/0.5291, allocations: 353.3 kB / 444.1 MB, free: 11.4 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005287/0.5297, allocations: 84.42 kB / 444.2 MB, free: 11.32 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002871/0.5325, allocations: 1.814 MB / 446 MB, free: 9.469 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000565/0.5331, allocations: 1.038 MB / 447 MB, free: 8.402 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002388/0.5334, allocations: 78.03 kB / 447.1 MB, free: 8.324 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001112/0.5335, allocations: 59.42 kB / 447.1 MB, free: 8.266 MB / 366.1 MB Notification: Performance of SimCode: time 2.695e-06/0.5335, allocations: 0 / 447.1 MB, free: 8.266 MB / 366.1 MB Notification: Performance of Templates: time 0.01208/0.5456, allocations: 5.582 MB / 452.7 MB, free: 2.723 MB / 366.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches