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.001222/0.001222, allocations: 107.7 kB / 17.06 MB, free: 5.996 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.001182/0.001182, allocations: 198.8 kB / 18.01 MB, free: 5.066 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.345/1.345, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001092/0.001092, allocations: 51.92 kB / 350.8 MB, free: 3.742 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2672/0.2683, allocations: 49.44 MB / 400.3 MB, free: 8.422 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.006899/0.2753, allocations: 6 MB / 406.3 MB, free: 2.805 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003079/0.2784, allocations: 1.652 MB / 407.9 MB, free: 1.148 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001082/0.2795, allocations: 31.88 kB / 407.9 MB, free: 1.117 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008269/0.2803, allocations: 245.6 kB / 408.2 MB, free: 0.875 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000891/0.2813, allocations: 217.7 kB / 408.4 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001137/0.2824, allocations: 0.4993 MB / 408.9 MB, free: 164 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001699/0.2842, allocations: 1.407 MB / 410.3 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009114/0.2851, allocations: 0.6247 MB / 410.9 MB, free: 14.1 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000619/0.2857, allocations: 470.1 kB / 411.4 MB, free: 13.63 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005917/0.2863, allocations: 0.4973 MB / 411.9 MB, free: 13.13 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002212/0.2866, allocations: 124 kB / 412 MB, free: 13.01 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002766/0.2868, allocations: 136 kB / 412.1 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002155/0.2871, allocations: 267 kB / 412.4 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005901/0.2877, allocations: 0.6139 MB / 413 MB, free: 12 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001518/0.2892, allocations: 1.617 MB / 414.6 MB, free: 10.38 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.181e-06/0.2892, allocations: 4 kB / 414.6 MB, free: 10.38 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.146e-06/0.2892, allocations: 4 kB / 414.6 MB, free: 10.37 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.22e-05/0.2893, allocations: 3.938 kB / 414.6 MB, free: 10.37 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.002257/0.2915, allocations: 1.492 MB / 416.1 MB, free: 8.82 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.15e-05/0.2916, allocations: 12.03 kB / 416.1 MB, free: 8.809 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002007/0.2918, allocations: 181.6 kB / 416.3 MB, free: 8.621 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002015/0.292, allocations: 151.1 kB / 416.5 MB, free: 8.473 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001131/0.2931, allocations: 0.7594 MB / 417.2 MB, free: 7.672 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.613e-05/0.2932, allocations: 90.41 kB / 417.3 MB, free: 7.582 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001343/0.2934, allocations: 116 kB / 417.4 MB, free: 7.469 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001861/0.2952, allocations: 1.268 MB / 418.7 MB, free: 6.031 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.461e-05/0.2953, allocations: 7.938 kB / 418.7 MB, free: 6.023 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.114e-05/0.2954, allocations: 52 kB / 418.7 MB, free: 5.973 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.6e-05/0.2954, allocations: 32 kB / 418.8 MB, free: 5.941 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001263/0.2967, allocations: 0.689 MB / 419.5 MB, free: 5.25 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005821/0.3025, allocations: 6.794 MB / 426.3 MB, free: 14.12 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006653/0.3032, allocations: 261.2 kB / 426.5 MB, free: 13.85 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003616/0.3036, allocations: 189.6 kB / 426.7 MB, free: 13.66 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001293/0.3037, allocations: 85.09 kB / 426.8 MB, free: 13.55 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.126e-05/0.3038, allocations: 38.56 kB / 426.8 MB, free: 13.51 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 4.238e-06/0.3038, allocations: 3.984 kB / 426.8 MB, free: 13.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.002423/0.3062, allocations: 1.423 MB / 428.2 MB, free: 11.98 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.847e-05/0.3063, allocations: 81.11 kB / 428.3 MB, free: 11.88 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007814/0.3071, allocations: 0.6609 MB / 429 MB, free: 11.21 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.023e-05/0.3071, allocations: 33.7 kB / 429 MB, free: 11.17 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004481/0.3076, allocations: 0.6976 MB / 429.7 MB, free: 10.46 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001043/0.3077, allocations: 131 kB / 429.8 MB, free: 10.33 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001748/0.3078, allocations: 142.5 kB / 430 MB, free: 10.18 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001909/0.308, allocations: 386.8 kB / 430.4 MB, free: 9.797 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002874/0.3083, allocations: 145.9 kB / 430.5 MB, free: 9.656 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005631/0.3089, allocations: 0.5506 MB / 431.1 MB, free: 8.906 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.001224/0.3101, allocations: 0.9617 MB / 432 MB, free: 7.711 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.046e-05/0.3102, allocations: 4 kB / 432 MB, free: 7.707 MB / 350.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001377/0.3116, allocations: 0.7978 MB / 432.8 MB, free: 6.898 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.244e-05/0.3116, allocations: 8 kB / 432.8 MB, free: 6.891 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.307e-05/0.3116, allocations: 19.98 kB / 432.8 MB, free: 6.871 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002456/0.3119, allocations: 78.25 kB / 432.9 MB, free: 6.789 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005318/0.3124, allocations: 187.7 kB / 433.1 MB, free: 6.605 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002767/0.3152, allocations: 3.324 MB / 436.4 MB, free: 3.004 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004392/0.3156, allocations: 39.88 kB / 436.5 MB, free: 2.965 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.47e-05/0.3157, allocations: 43.98 kB / 436.5 MB, free: 2.922 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.0004054/0.3161, allocations: 265.5 kB / 436.8 MB, free: 2.652 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001311/0.3163, allocations: 79.42 kB / 436.9 MB, free: 2.574 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001258/0.3164, allocations: 82.47 kB / 436.9 MB, free: 2.492 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.3164, allocations: 4 kB / 436.9 MB, free: 2.488 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.294e-06/0.3164, allocations: 128 / 436.9 MB, free: 2.488 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.253e-06/0.3164, allocations: 7.984 kB / 436.9 MB, free: 2.48 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001875/0.3183, allocations: 1.245 MB / 438.2 MB, free: 1.164 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.3183, allocations: 0 / 438.2 MB, free: 1.164 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003247/0.3187, allocations: 71.89 kB / 438.3 MB, free: 1.094 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001599/0.3188, allocations: 49.69 kB / 438.3 MB, free: 1.039 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.152e-05/0.3189, allocations: 11.98 kB / 438.3 MB, free: 1.027 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002171/0.3211, allocations: 3.05 MB / 441.4 MB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.669e-06/0.3211, allocations: 0 / 441.4 MB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008831/0.322, allocations: 0.6511 MB / 442 MB, free: 13.01 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001536/0.3221, allocations: 140.7 kB / 442.2 MB, free: 12.85 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.592e-05/0.3222, allocations: 4 kB / 442.2 MB, free: 12.85 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002738/0.3225, allocations: 19.98 kB / 442.2 MB, free: 12.83 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.933e-05/0.3226, allocations: 28.03 kB / 442.2 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.913e-05/0.3226, allocations: 8 kB / 442.2 MB, free: 12.79 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005833/0.3232, allocations: 443 kB / 442.6 MB, free: 12.36 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3232, allocations: 0 / 442.6 MB, free: 12.36 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009312/0.3241, allocations: 156 kB / 442.8 MB, free: 12.21 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.001295/0.3254, allocations: 1.192 MB / 444 MB, free: 10.98 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001222/0.3267, allocations: 0.6527 MB / 444.6 MB, free: 10.3 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.3267, allocations: 0 / 444.6 MB, free: 10.3 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004929/0.3272, allocations: 362.1 kB / 445 MB, free: 9.922 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005616/0.3278, allocations: 79.22 kB / 445.1 MB, free: 9.848 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008498/0.3363, allocations: 6.47 MB / 451.5 MB, free: 2.863 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006484/0.3369, allocations: 1.034 MB / 452.6 MB, free: 1.801 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000249/0.3372, allocations: 82.03 kB / 452.7 MB, free: 1.719 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004361/0.3377, allocations: 423.3 kB / 453.1 MB, free: 1.309 MB / 366.1 MB Notification: Performance of SimCode: time 7.11e-07/0.3377, allocations: 0 / 453.1 MB, free: 1.309 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05465/0.3923, allocations: 12.68 MB / 465.8 MB, free: 4.797 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.41/10.8, allocations: 4.688 kB / 465.8 MB, free: 4.793 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