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.001302/0.001301, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00142/0.00142, allocations: 201.2 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.388/1.388, allocations: 227.4 MB / 246.9 MB, free: 10.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00174/0.00174, allocations: 63.89 kB / 358.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2548/0.2566, allocations: 50.54 MB / 408.8 MB, free: 1.504 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.007189/0.2638, allocations: 6.007 MB / 414.8 MB, free: 11.47 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003563/0.2674, allocations: 1.737 MB / 416.5 MB, free: 9.727 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005802/0.268, allocations: 31.88 kB / 416.6 MB, free: 9.695 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005371/0.2686, allocations: 245.6 kB / 416.8 MB, free: 9.453 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004963/0.2691, allocations: 225.7 kB / 417 MB, free: 9.23 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001025/0.2701, allocations: 0.5149 MB / 417.5 MB, free: 8.715 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001691/0.2718, allocations: 1.395 MB / 418.9 MB, free: 7.309 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009441/0.2728, allocations: 0.6286 MB / 419.6 MB, free: 6.656 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006322/0.2734, allocations: 474.1 kB / 420 MB, free: 6.191 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005889/0.274, allocations: 0.4934 MB / 420.5 MB, free: 5.695 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001562/0.2742, allocations: 124 kB / 420.6 MB, free: 5.574 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002418/0.2745, allocations: 144 kB / 420.8 MB, free: 5.434 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002181/0.2747, allocations: 263 kB / 421 MB, free: 5.176 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005559/0.2752, allocations: 0.6139 MB / 421.7 MB, free: 4.559 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001752/0.277, allocations: 1.637 MB / 423.3 MB, free: 2.918 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.843e-06/0.277, allocations: 4 kB / 423.3 MB, free: 2.914 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.277, allocations: 0 / 423.3 MB, free: 2.914 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.218e-05/0.2771, allocations: 0 / 423.3 MB, free: 2.914 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.002271/0.2793, allocations: 1.492 MB / 424.8 MB, free: 1.367 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.816e-05/0.2794, allocations: 8.031 kB / 424.8 MB, free: 1.359 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002141/0.2796, allocations: 181.6 kB / 425 MB, free: 1.172 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004019/0.28, allocations: 167 kB / 425.1 MB, free: 1.008 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00121/0.2813, allocations: 0.7711 MB / 425.9 MB, free: 196 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.537e-05/0.2813, allocations: 90.41 kB / 426 MB, free: 104 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001773/0.2815, allocations: 124 kB / 426.1 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001932/0.2835, allocations: 1.268 MB / 427.4 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.533e-05/0.2835, allocations: 7.938 kB / 427.4 MB, free: 14.53 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.819e-05/0.2836, allocations: 48 kB / 427.4 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.296e-05/0.2837, allocations: 32 kB / 427.5 MB, free: 14.45 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001326/0.285, allocations: 0.6929 MB / 428.2 MB, free: 13.76 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006368/0.2914, allocations: 6.794 MB / 435 MB, free: 6.637 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006989/0.2921, allocations: 273.2 kB / 435.2 MB, free: 6.352 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003584/0.2925, allocations: 173.6 kB / 435.4 MB, free: 6.176 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001436/0.2926, allocations: 89.09 kB / 435.5 MB, free: 6.07 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.991e-05/0.2927, allocations: 34.56 kB / 435.5 MB, free: 6.027 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 1.924e-06/0.2927, allocations: 4 kB / 435.5 MB, free: 6.023 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.002448/0.2951, allocations: 1.429 MB / 436.9 MB, free: 4.488 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.31e-05/0.2952, allocations: 85.05 kB / 437 MB, free: 4.387 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007659/0.296, allocations: 0.6609 MB / 437.7 MB, free: 3.719 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.251e-05/0.296, allocations: 33.7 kB / 437.7 MB, free: 3.68 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004655/0.2965, allocations: 0.6976 MB / 438.4 MB, free: 2.973 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.876e-05/0.2966, allocations: 127 kB / 438.5 MB, free: 2.848 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001786/0.2968, allocations: 138.6 kB / 438.7 MB, free: 2.703 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000184/0.297, allocations: 386.8 kB / 439.1 MB, free: 2.316 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002723/0.2973, allocations: 149.9 kB / 439.2 MB, free: 2.172 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005789/0.2978, allocations: 0.5467 MB / 439.7 MB, free: 1.422 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.001153/0.299, allocations: 0.9636 MB / 440.7 MB, free: 232 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.937e-06/0.299, allocations: 4 kB / 440.7 MB, free: 228 kB / 350.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001256/0.3003, allocations: 0.7913 MB / 441.5 MB, free: 15.41 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.314e-05/0.3003, allocations: 16.83 kB / 441.5 MB, free: 15.4 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.811e-05/0.3003, allocations: 15.98 kB / 441.5 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002464/0.3006, allocations: 89.69 kB / 441.6 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005312/0.3011, allocations: 179.7 kB / 441.8 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002724/0.3039, allocations: 3.324 MB / 445.1 MB, free: 11.51 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003779/0.3043, allocations: 28 kB / 445.2 MB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.836e-05/0.3043, allocations: 47.92 kB / 445.2 MB, free: 11.44 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.0003889/0.3047, allocations: 281.5 kB / 445.5 MB, free: 11.15 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001238/0.3048, allocations: 79.48 kB / 445.6 MB, free: 11.07 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001134/0.305, allocations: 74.41 kB / 445.6 MB, free: 11 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.067e-06/0.305, allocations: 4 kB / 445.6 MB, free: 11 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.195e-06/0.305, allocations: 4 kB / 445.6 MB, free: 10.99 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.305, allocations: 3.984 kB / 445.6 MB, free: 10.99 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001779/0.3068, allocations: 1.258 MB / 446.9 MB, free: 9.664 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.674e-06/0.3068, allocations: 3.984 kB / 446.9 MB, free: 9.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003072/0.3071, allocations: 59.97 kB / 447 MB, free: 9.602 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001552/0.3073, allocations: 69.78 kB / 447 MB, free: 9.527 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.16e-05/0.3073, allocations: 8 kB / 447 MB, free: 9.52 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002257/0.3096, allocations: 3.049 MB / 450.1 MB, free: 6.191 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.3096, allocations: 4.031 kB / 450.1 MB, free: 6.188 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008977/0.3105, allocations: 0.6355 MB / 450.7 MB, free: 5.516 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001224/0.3106, allocations: 136.6 kB / 450.9 MB, free: 5.363 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.578e-05/0.3107, allocations: 8.062 kB / 450.9 MB, free: 5.355 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002557/0.3109, allocations: 19.98 kB / 450.9 MB, free: 5.336 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.8e-05/0.311, allocations: 31.84 kB / 450.9 MB, free: 5.305 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.814e-05/0.311, allocations: 12 kB / 450.9 MB, free: 5.293 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005023/0.3116, allocations: 435 kB / 451.4 MB, free: 4.871 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3116, allocations: 0 / 451.4 MB, free: 4.871 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00085/0.3124, allocations: 160 kB / 451.5 MB, free: 4.715 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.001265/0.3137, allocations: 1.196 MB / 452.7 MB, free: 3.48 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001145/0.3148, allocations: 0.6524 MB / 453.4 MB, free: 2.805 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.217e-06/0.3149, allocations: 0 / 453.4 MB, free: 2.805 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005076/0.3154, allocations: 369.8 kB / 453.7 MB, free: 2.418 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005378/0.3159, allocations: 75.23 kB / 453.8 MB, free: 2.348 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008764/0.3247, allocations: 6.476 MB / 460.3 MB, free: 11.32 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007342/0.3255, allocations: 1.034 MB / 461.3 MB, free: 10.25 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002613/0.3257, allocations: 86.02 kB / 461.4 MB, free: 10.17 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004979/0.3262, allocations: 423.3 kB / 461.8 MB, free: 9.758 MB / 382.1 MB Notification: Performance of SimCode: time 7.52e-07/0.3262, allocations: 0 / 461.8 MB, free: 9.758 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04334/0.3696, allocations: 12.74 MB / 474.5 MB, free: 13.17 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.71/11.08, allocations: 19.8 kB / 474.6 MB, free: 13.15 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.1.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