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.001038/0.001038, allocations: 109.4 kB / 17.06 MB, free: 6.137 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.001903/0.001903, allocations: 192 kB / 18 MB, free: 5.219 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.36/1.36, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001055/0.001055, allocations: 43.94 kB / 350.8 MB, free: 3.762 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2794/0.2805, allocations: 49.44 MB / 400.3 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.006922/0.2874, allocations: 5.997 MB / 406.2 MB, free: 2.809 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003082/0.2905, allocations: 1.644 MB / 407.9 MB, free: 1.16 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008834/0.2915, allocations: 31.88 kB / 407.9 MB, free: 1.129 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007037/0.2922, allocations: 249.6 kB / 408.2 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008381/0.2931, allocations: 221.7 kB / 408.4 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001139/0.2942, allocations: 0.4993 MB / 408.9 MB, free: 168 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001628/0.2958, allocations: 1.395 MB / 410.3 MB, free: 14.76 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008231/0.2967, allocations: 0.6169 MB / 410.9 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000522/0.2972, allocations: 478.1 kB / 411.4 MB, free: 13.65 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000465/0.2977, allocations: 0.4973 MB / 411.9 MB, free: 13.15 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001487/0.2978, allocations: 120 kB / 412 MB, free: 13.03 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002029/0.2981, allocations: 143.9 kB / 412.1 MB, free: 12.89 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001946/0.2983, allocations: 259.1 kB / 412.4 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005106/0.2988, allocations: 0.6139 MB / 413 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001678/0.3005, allocations: 1.617 MB / 414.6 MB, free: 10.4 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.813e-06/0.3005, allocations: 0 / 414.6 MB, free: 10.4 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.375e-06/0.3005, allocations: 0 / 414.6 MB, free: 10.4 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.764e-05/0.3005, allocations: 0 / 414.6 MB, free: 10.4 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.00225/0.3028, allocations: 1.458 MB / 416.1 MB, free: 8.887 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.116e-05/0.3028, allocations: 8.031 kB / 416.1 MB, free: 8.879 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002063/0.3031, allocations: 185.6 kB / 416.2 MB, free: 8.688 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002075/0.3033, allocations: 146.3 kB / 416.4 MB, free: 8.543 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001129/0.3044, allocations: 0.7511 MB / 417.1 MB, free: 7.75 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.49e-05/0.3045, allocations: 90.41 kB / 417.2 MB, free: 7.66 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001522/0.3046, allocations: 123.9 kB / 417.4 MB, free: 7.539 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00179/0.3064, allocations: 1.268 MB / 418.6 MB, free: 6.102 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.509e-05/0.3065, allocations: 3.938 kB / 418.6 MB, free: 6.098 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.476e-05/0.3066, allocations: 52 kB / 418.7 MB, free: 6.047 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.543e-05/0.3066, allocations: 32 kB / 418.7 MB, free: 6.016 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001279/0.3079, allocations: 0.6929 MB / 419.4 MB, free: 5.32 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005742/0.3136, allocations: 6.769 MB / 426.2 MB, free: 14.21 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00065/0.3143, allocations: 273.1 kB / 426.4 MB, free: 13.93 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003408/0.3147, allocations: 181.7 kB / 426.6 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001352/0.3148, allocations: 85.59 kB / 426.7 MB, free: 13.64 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.374e-05/0.3149, allocations: 42.56 kB / 426.7 MB, free: 13.59 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 2.084e-06/0.3149, allocations: 0 / 426.7 MB, free: 13.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.002389/0.3173, allocations: 1.398 MB / 428.1 MB, free: 12.09 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.819e-05/0.3173, allocations: 85.11 kB / 428.2 MB, free: 11.98 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007242/0.318, allocations: 0.6608 MB / 428.9 MB, free: 11.31 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.84e-05/0.3181, allocations: 33.7 kB / 428.9 MB, free: 11.27 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004117/0.3185, allocations: 0.672 MB / 429.6 MB, free: 10.59 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.379e-05/0.3186, allocations: 122.4 kB / 429.7 MB, free: 10.47 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001805/0.3188, allocations: 150.4 kB / 429.8 MB, free: 10.31 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001615/0.319, allocations: 382.8 kB / 430.2 MB, free: 9.93 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002903/0.3193, allocations: 149.9 kB / 430.4 MB, free: 9.785 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005233/0.3198, allocations: 0.5468 MB / 430.9 MB, free: 9.039 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.001095/0.3209, allocations: 0.9619 MB / 431.9 MB, free: 7.84 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.921e-06/0.3209, allocations: 7.938 kB / 431.9 MB, free: 7.832 MB / 350.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001231/0.3221, allocations: 0.7934 MB / 432.7 MB, free: 7.031 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.276e-05/0.3222, allocations: 12 kB / 432.7 MB, free: 7.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.722e-05/0.3222, allocations: 12 kB / 432.7 MB, free: 7.008 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002416/0.3225, allocations: 77.69 kB / 432.8 MB, free: 6.926 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005268/0.323, allocations: 187.7 kB / 433 MB, free: 6.742 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002558/0.3256, allocations: 3.332 MB / 436.3 MB, free: 3.133 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003755/0.3259, allocations: 31.94 kB / 436.3 MB, free: 3.102 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.593e-05/0.326, allocations: 44.06 kB / 436.4 MB, free: 3.059 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.0003754/0.3264, allocations: 273.1 kB / 436.6 MB, free: 2.785 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001029/0.3265, allocations: 79 kB / 436.7 MB, free: 2.707 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001152/0.3266, allocations: 70.41 kB / 436.8 MB, free: 2.637 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.788e-06/0.3266, allocations: 4 kB / 436.8 MB, free: 2.633 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.3266, allocations: 0 / 436.8 MB, free: 2.633 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.3266, allocations: 4 kB / 436.8 MB, free: 2.629 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001728/0.3284, allocations: 1.241 MB / 438 MB, free: 1.316 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.599e-06/0.3284, allocations: 4 kB / 438 MB, free: 1.312 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003058/0.3287, allocations: 68.05 kB / 438.1 MB, free: 1.246 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001499/0.3289, allocations: 57.56 kB / 438.2 MB, free: 1.184 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.965e-05/0.3289, allocations: 8 kB / 438.2 MB, free: 1.176 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002003/0.3309, allocations: 3.057 MB / 441.2 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.3309, allocations: 0 / 441.2 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000836/0.3318, allocations: 0.6351 MB / 441.9 MB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001156/0.3319, allocations: 140.2 kB / 442 MB, free: 13.01 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.697e-05/0.332, allocations: 11.98 kB / 442 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002408/0.3322, allocations: 16.19 kB / 442 MB, free: 12.98 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.031e-05/0.3323, allocations: 35.83 kB / 442.1 MB, free: 12.95 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.923e-05/0.3323, allocations: 7.984 kB / 442.1 MB, free: 12.94 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004771/0.3328, allocations: 435 kB / 442.5 MB, free: 12.52 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3328, allocations: 4 kB / 442.5 MB, free: 12.51 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008374/0.3337, allocations: 152 kB / 442.6 MB, free: 12.36 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.001095/0.3348, allocations: 1.188 MB / 443.8 MB, free: 11.13 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001028/0.3358, allocations: 0.6492 MB / 444.5 MB, free: 10.46 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.3358, allocations: 4.188 kB / 444.5 MB, free: 10.46 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004451/0.3363, allocations: 365.1 kB / 444.8 MB, free: 10.07 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005004/0.3368, allocations: 71.3 kB / 444.9 MB, free: 10.01 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007706/0.3445, allocations: 6.428 MB / 451.3 MB, free: 3.07 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005962/0.3451, allocations: 1.034 MB / 452.4 MB, free: 2.008 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002402/0.3454, allocations: 82.03 kB / 452.4 MB, free: 1.926 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000429/0.3458, allocations: 427.3 kB / 452.9 MB, free: 1.512 MB / 366.1 MB Notification: Performance of SimCode: time 7.82e-07/0.3458, allocations: 0 / 452.9 MB, free: 1.512 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04259/0.3884, allocations: 12.68 MB / 465.5 MB, free: 5 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.37/10.76, allocations: 8.75 kB / 465.6 MB, free: 4.992 MB / 382.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