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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001099/0.001099, allocations: 106.8 kB / 16.92 MB, free: 5.773 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.001095/0.001096, allocations: 191.3 kB / 17.85 MB, free: 5.168 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.375/1.375, allocations: 222.9 MB / 241.5 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009962/0.0009963, allocations: 50.8 kB / 300.7 MB, free: 5.77 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09613/0.09715, allocations: 49.44 MB / 350.2 MB, free: 4.309 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.007522/0.1047, allocations: 5.988 MB / 356.2 MB, free: 14.28 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003751/0.1085, allocations: 1.648 MB / 357.8 MB, free: 12.63 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001207/0.1097, allocations: 31.81 kB / 357.8 MB, free: 12.6 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009518/0.1108, allocations: 249.6 kB / 358.1 MB, free: 12.35 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001234/0.112, allocations: 221.8 kB / 358.3 MB, free: 12.13 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00147/0.1135, allocations: 0.4915 MB / 358.8 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002212/0.1157, allocations: 1.384 MB / 360.2 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001141/0.1169, allocations: 0.6247 MB / 360.8 MB, free: 9.605 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008621/0.1178, allocations: 474.1 kB / 361.3 MB, free: 9.141 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000743/0.1185, allocations: 0.5012 MB / 361.8 MB, free: 8.637 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002773/0.1188, allocations: 120 kB / 361.9 MB, free: 8.52 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003855/0.1192, allocations: 136 kB / 362 MB, free: 8.387 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002729/0.1195, allocations: 259.1 kB / 362.3 MB, free: 8.133 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008613/0.1204, allocations: 0.6216 MB / 362.9 MB, free: 7.508 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001849/0.1222, allocations: 1.553 MB / 364.4 MB, free: 5.949 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.203e-06/0.1222, allocations: 0 / 364.4 MB, free: 5.949 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.775e-06/0.1223, allocations: 4 kB / 364.4 MB, free: 5.945 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.572e-05/0.1223, allocations: 3.938 kB / 364.4 MB, free: 5.941 MB / 302.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.1252, allocations: 1.462 MB / 365.9 MB, free: 4.426 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.981e-05/0.1252, allocations: 8.031 kB / 365.9 MB, free: 4.418 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002882/0.1255, allocations: 177.7 kB / 366.1 MB, free: 4.234 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002821/0.1258, allocations: 142.2 kB / 366.2 MB, free: 4.094 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001135/0.127, allocations: 0.7276 MB / 367 MB, free: 3.324 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.264e-05/0.127, allocations: 86.41 kB / 367 MB, free: 3.238 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001675/0.1272, allocations: 116 kB / 367.2 MB, free: 3.125 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002039/0.1293, allocations: 1.268 MB / 368.4 MB, free: 1.688 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.531e-05/0.1293, allocations: 7.938 kB / 368.4 MB, free: 1.68 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.433e-05/0.1294, allocations: 56 kB / 368.5 MB, free: 1.625 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.191e-05/0.1294, allocations: 35.98 kB / 368.5 MB, free: 1.59 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001379/0.1308, allocations: 0.689 MB / 369.2 MB, free: 0.8984 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.17/0.3009, allocations: 6.816 MB / 376 MB, free: 19.73 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000746/0.3016, allocations: 266.9 kB / 376.3 MB, free: 19.68 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003792/0.302, allocations: 182.3 kB / 376.5 MB, free: 19.66 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001854/0.3022, allocations: 86.92 kB / 376.5 MB, free: 19.57 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.416e-05/0.3023, allocations: 45.56 kB / 376.6 MB, free: 19.52 MB / 302.1 MB Notification: Performance of pre-optimization done (n=27): time 2.405e-06/0.3023, allocations: 0 / 376.6 MB, free: 19.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.002309/0.3046, allocations: 1.394 MB / 378 MB, free: 18.5 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.144e-05/0.3046, allocations: 79.7 kB / 378.1 MB, free: 18.41 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007534/0.3054, allocations: 0.6552 MB / 378.7 MB, free: 18.12 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.882e-05/0.3054, allocations: 31.08 kB / 378.8 MB, free: 18.08 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003249/0.3058, allocations: 0.683 MB / 379.4 MB, free: 17.54 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.538e-05/0.3058, allocations: 114.1 kB / 379.5 MB, free: 17.46 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000157/0.306, allocations: 144.4 kB / 379.7 MB, free: 17.38 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001073/0.3061, allocations: 387.7 kB / 380.1 MB, free: 17.03 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002675/0.3064, allocations: 147.9 kB / 380.2 MB, free: 16.98 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004002/0.3068, allocations: 0.5448 MB / 380.8 MB, free: 16.38 MB / 302.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.0008807/0.3077, allocations: 0.9652 MB / 381.7 MB, free: 15.43 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.893e-06/0.3077, allocations: 3.688 kB / 381.7 MB, free: 15.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.00112/0.3088, allocations: 0.7911 MB / 382.5 MB, free: 15.08 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.97e-05/0.3089, allocations: 13.48 kB / 382.5 MB, free: 15.08 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.07e-05/0.3089, allocations: 15.22 kB / 382.5 MB, free: 15.08 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002305/0.3091, allocations: 91.03 kB / 382.6 MB, free: 15.04 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005112/0.3097, allocations: 180.6 kB / 382.8 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00183/0.3115, allocations: 3.337 MB / 386.1 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000393/0.3119, allocations: 30.86 kB / 386.2 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.794e-05/0.312, allocations: 48.25 kB / 386.2 MB, free: 11.74 MB / 302.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.000397/0.3124, allocations: 268.9 kB / 386.5 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001074/0.3125, allocations: 74.86 kB / 386.6 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001039/0.3126, allocations: 73.81 kB / 386.6 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.3126, allocations: 7.469 kB / 386.6 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.795e-06/0.3126, allocations: 2.094 kB / 386.6 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.864e-06/0.3126, allocations: 2.938 kB / 386.6 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001693/0.3143, allocations: 1.258 MB / 387.9 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.267e-06/0.3143, allocations: 3.719 kB / 387.9 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003009/0.3146, allocations: 59.52 kB / 388 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001524/0.3148, allocations: 52.48 kB / 388 MB, free: 10.68 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.292e-05/0.3148, allocations: 15.95 kB / 388 MB, free: 10.67 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001545/0.3164, allocations: 3.056 MB / 391.1 MB, free: 7.621 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.3164, allocations: 5.125 kB / 391.1 MB, free: 7.617 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008497/0.3173, allocations: 0.6261 MB / 391.7 MB, free: 7.203 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001003/0.3174, allocations: 135.8 kB / 391.8 MB, free: 7.07 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.771e-05/0.3174, allocations: 7.938 kB / 391.9 MB, free: 7.066 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002585/0.3177, allocations: 16.3 kB / 391.9 MB, free: 7.062 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.997e-05/0.3178, allocations: 31.59 kB / 391.9 MB, free: 7.051 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.948e-05/0.3178, allocations: 11.98 kB / 391.9 MB, free: 7.047 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005179/0.3183, allocations: 433 kB / 392.3 MB, free: 6.859 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3183, allocations: 3.938 kB / 392.3 MB, free: 6.855 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009503/0.3193, allocations: 158.7 kB / 392.5 MB, free: 6.836 MB / 302.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.0009943/0.3203, allocations: 1.189 MB / 393.7 MB, free: 5.883 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001159/0.3215, allocations: 0.6561 MB / 394.3 MB, free: 5.512 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.055e-06/0.3215, allocations: 0.6875 kB / 394.3 MB, free: 5.512 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004328/0.3219, allocations: 361.4 kB / 394.7 MB, free: 5.242 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005418/0.3225, allocations: 76.44 kB / 394.8 MB, free: 5.199 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008369/0.3309, allocations: 6.646 MB / 401.4 MB, free: 0.5742 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005786/0.3315, allocations: 1.04 MB / 402.5 MB, free: 15.86 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002944/0.3318, allocations: 84.16 kB / 402.5 MB, free: 15.84 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000413/0.3322, allocations: 421 kB / 402.9 MB, free: 15.5 MB / 318.1 MB Notification: Performance of SimCode: time 7.12e-07/0.3322, allocations: 0 / 402.9 MB, free: 15.5 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.041/0.3732, allocations: 12.34 MB / 415.3 MB, free: 5.996 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.869/10.24, allocations: 15.62 kB / 415.3 MB, free: 5.984 MB / 318.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Electrical_Analog_Examples_GenerationOfFMUs.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches