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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001136/0.001136, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001328/0.001328, 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 trunk/package.mo): time 1.364/1.364, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001171/0.001171, allocations: 55.91 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2622/0.2634, allocations: 50.55 MB / 408.8 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.006865/0.2703, allocations: 6.014 MB / 414.8 MB, free: 11.49 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003374/0.2738, allocations: 1.73 MB / 416.5 MB, free: 9.758 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007538/0.2745, allocations: 31.88 kB / 416.6 MB, free: 9.727 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006225/0.2752, allocations: 249.5 kB / 416.8 MB, free: 9.48 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000714/0.276, allocations: 225.7 kB / 417 MB, free: 9.258 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001145/0.2771, allocations: 0.511 MB / 417.5 MB, free: 8.746 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001663/0.2788, allocations: 1.399 MB / 418.9 MB, free: 7.336 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008422/0.2796, allocations: 0.6286 MB / 419.6 MB, free: 6.684 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000671/0.2803, allocations: 486.1 kB / 420 MB, free: 6.207 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004969/0.2808, allocations: 0.4934 MB / 420.5 MB, free: 5.711 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001457/0.281, allocations: 124 kB / 420.6 MB, free: 5.59 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002297/0.2812, allocations: 140 kB / 420.8 MB, free: 5.453 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001921/0.2814, allocations: 267 kB / 421 MB, free: 5.191 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005175/0.2819, allocations: 0.61 MB / 421.7 MB, free: 4.578 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001785/0.2837, allocations: 1.633 MB / 423.3 MB, free: 2.941 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.102e-06/0.2838, allocations: 4 kB / 423.3 MB, free: 2.938 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.827e-06/0.2838, allocations: 0 / 423.3 MB, free: 2.938 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.748e-05/0.2838, allocations: 3.938 kB / 423.3 MB, free: 2.934 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.002178/0.286, allocations: 1.496 MB / 424.8 MB, free: 1.383 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.082e-05/0.286, allocations: 8.031 kB / 424.8 MB, free: 1.375 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000212/0.2863, allocations: 185.6 kB / 425 MB, free: 1.184 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003824/0.2867, allocations: 163 kB / 425.1 MB, free: 1.023 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001184/0.2879, allocations: 0.7711 MB / 425.9 MB, free: 212 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.127e-05/0.2879, allocations: 86.41 kB / 426 MB, free: 124 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001638/0.2881, allocations: 124.1 kB / 426.1 MB, free: 16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001845/0.2899, allocations: 1.264 MB / 427.4 MB, free: 14.56 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.573e-05/0.29, allocations: 3.938 kB / 427.4 MB, free: 14.56 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.65e-05/0.2901, allocations: 60 kB / 427.4 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.334e-05/0.2901, allocations: 35.98 kB / 427.5 MB, free: 14.46 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001307/0.2915, allocations: 0.689 MB / 428.2 MB, free: 13.78 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006753/0.2982, allocations: 6.79 MB / 435 MB, free: 6.652 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007125/0.299, allocations: 276.9 kB / 435.2 MB, free: 6.367 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000354/0.2993, allocations: 173.6 kB / 435.4 MB, free: 6.191 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001439/0.2995, allocations: 93.08 kB / 435.5 MB, free: 6.082 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.973e-05/0.2995, allocations: 30.56 kB / 435.5 MB, free: 6.043 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 2.525e-06/0.2995, allocations: 3.938 kB / 435.5 MB, free: 6.039 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.002826/0.3024, allocations: 1.429 MB / 436.9 MB, free: 4.504 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.823e-05/0.3025, allocations: 89.05 kB / 437 MB, free: 4.398 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007567/0.3032, allocations: 0.6648 MB / 437.7 MB, free: 3.727 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.048e-05/0.3033, allocations: 29.7 kB / 437.7 MB, free: 3.691 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004246/0.3037, allocations: 0.7016 MB / 438.4 MB, free: 2.98 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.828e-05/0.3038, allocations: 127 kB / 438.6 MB, free: 2.855 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001724/0.304, allocations: 138.6 kB / 438.7 MB, free: 2.711 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001686/0.3042, allocations: 382.8 kB / 439.1 MB, free: 2.328 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002651/0.3044, allocations: 149.9 kB / 439.2 MB, free: 2.184 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005372/0.305, allocations: 0.5468 MB / 439.8 MB, free: 1.434 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.001154/0.3061, allocations: 0.9658 MB / 440.7 MB, free: 236 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.428e-06/0.3061, allocations: 4 kB / 440.7 MB, free: 232 kB / 350.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.00145/0.3076, allocations: 0.8046 MB / 441.5 MB, free: 15.42 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.746e-05/0.3076, allocations: 12 kB / 441.5 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.843e-05/0.3077, allocations: 12.69 kB / 441.6 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002813/0.308, allocations: 85.62 kB / 441.6 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005237/0.3085, allocations: 179.7 kB / 441.8 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002896/0.3114, allocations: 3.324 MB / 445.1 MB, free: 11.53 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004805/0.3119, allocations: 28 kB / 445.2 MB, free: 11.5 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.631e-05/0.312, allocations: 47.98 kB / 445.2 MB, free: 11.45 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.0004421/0.3124, allocations: 277.4 kB / 445.5 MB, free: 11.17 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001123/0.3125, allocations: 79.48 kB / 445.6 MB, free: 11.09 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001242/0.3127, allocations: 70.41 kB / 445.6 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.3127, allocations: 4 kB / 445.6 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.344e-05/0.3127, allocations: 4 kB / 445.6 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-06/0.3127, allocations: 3.984 kB / 445.6 MB, free: 11.01 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001796/0.3145, allocations: 1.251 MB / 446.9 MB, free: 9.688 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.68e-06/0.3145, allocations: 7.922 kB / 446.9 MB, free: 9.68 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003078/0.3148, allocations: 59.97 kB / 447 MB, free: 9.621 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001789/0.315, allocations: 65.7 kB / 447 MB, free: 9.551 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.281e-05/0.3151, allocations: 8 kB / 447 MB, free: 9.543 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002092/0.3171, allocations: 3.05 MB / 450.1 MB, free: 6.215 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.3172, allocations: 4.031 kB / 450.1 MB, free: 6.211 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008777/0.3181, allocations: 0.6316 MB / 450.7 MB, free: 5.543 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001564/0.3182, allocations: 140.7 kB / 450.9 MB, free: 5.387 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.314e-05/0.3183, allocations: 8 kB / 450.9 MB, free: 5.379 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002513/0.3185, allocations: 15.98 kB / 450.9 MB, free: 5.363 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.582e-05/0.3186, allocations: 39.78 kB / 450.9 MB, free: 5.324 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.646e-05/0.3186, allocations: 8 kB / 450.9 MB, free: 5.316 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005109/0.3192, allocations: 439 kB / 451.4 MB, free: 4.891 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3192, allocations: 0 / 451.4 MB, free: 4.891 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008823/0.32, allocations: 156 kB / 451.5 MB, free: 4.738 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.00115/0.3212, allocations: 1.2 MB / 452.7 MB, free: 3.496 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001122/0.3223, allocations: 0.6411 MB / 453.3 MB, free: 2.832 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.3224, allocations: 0 / 453.3 MB, free: 2.832 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00047/0.3228, allocations: 377.3 kB / 453.7 MB, free: 2.438 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005334/0.3234, allocations: 79.73 kB / 453.8 MB, free: 2.363 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007872/0.3313, allocations: 6.473 MB / 460.3 MB, free: 11.33 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006639/0.3319, allocations: 1.034 MB / 461.3 MB, free: 10.27 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002567/0.3322, allocations: 82.03 kB / 461.4 MB, free: 10.18 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004554/0.3327, allocations: 427.3 kB / 461.8 MB, free: 9.77 MB / 382.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3327, allocations: 0 / 461.8 MB, free: 9.77 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03568/0.3684, allocations: 12.74 MB / 474.5 MB, free: 13.18 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.08/10.45, allocations: 19.86 kB / 474.6 MB, free: 13.16 MB / 398.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_trunk_Modelica_Electrical_Analog_Examples_GenerationOfFMUs.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches