Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Adder.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.OpAmps.Adder,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Adder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Adder,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Adder",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001203/0.001203, allocations: 117.6 kB / 17.78 MB, free: 5.25 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001205/0.001206, allocations: 199.9 kB / 18.73 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.404/1.404, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00113/0.00113, allocations: 55.91 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2989/0.3001, allocations: 50.54 MB / 408.8 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Adder): time 0.004526/0.3046, allocations: 3.211 MB / 412 MB, free: 14.33 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001587/0.3062, allocations: 0.8141 MB / 412.8 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001492/0.3064, allocations: 12 kB / 412.8 MB, free: 13.49 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00018/0.3066, allocations: 59.36 kB / 412.9 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001925/0.3068, allocations: 107.1 kB / 413 MB, free: 13.33 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003318/0.3071, allocations: 135.8 kB / 413.1 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004098/0.3076, allocations: 446.1 kB / 413.6 MB, free: 12.76 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002767/0.3078, allocations: 163.9 kB / 413.7 MB, free: 12.59 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002741/0.3081, allocations: 167.4 kB / 413.9 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002081/0.3083, allocations: 187.2 kB / 414.1 MB, free: 12.25 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.413e-05/0.3084, allocations: 44 kB / 414.1 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.777e-05/0.3085, allocations: 44 kB / 414.1 MB, free: 12.16 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.454e-05/0.3086, allocations: 87.69 kB / 414.2 MB, free: 12.07 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001814/0.3088, allocations: 195.1 kB / 414.4 MB, free: 11.88 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005715/0.3093, allocations: 0.5049 MB / 414.9 MB, free: 11.38 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.3094, allocations: 0 / 414.9 MB, free: 11.38 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.504e-06/0.3094, allocations: 4 kB / 414.9 MB, free: 11.38 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.897e-06/0.3094, allocations: 4 kB / 414.9 MB, free: 11.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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.001129/0.3105, allocations: 0.6662 MB / 415.6 MB, free: 10.66 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.82e-05/0.3106, allocations: 15.97 kB / 415.6 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.401e-05/0.3107, allocations: 66.72 kB / 415.7 MB, free: 10.57 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001721/0.3108, allocations: 48.69 kB / 415.7 MB, free: 10.52 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004289/0.3113, allocations: 315.7 kB / 416 MB, free: 10.17 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.389e-05/0.3113, allocations: 28.97 kB / 416.1 MB, free: 10.14 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.354e-05/0.3114, allocations: 32.38 kB / 416.1 MB, free: 10.11 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006405/0.312, allocations: 357.1 kB / 416.4 MB, free: 9.754 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.3e-05/0.312, allocations: 0 / 416.4 MB, free: 9.754 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.37e-05/0.3121, allocations: 16 kB / 416.5 MB, free: 9.738 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.388e-06/0.3121, allocations: 8 kB / 416.5 MB, free: 9.73 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000555/0.3126, allocations: 266.5 kB / 416.7 MB, free: 9.473 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001802/0.3145, allocations: 1.261 MB / 418 MB, free: 8.129 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005827/0.3151, allocations: 299.7 kB / 418.3 MB, free: 7.809 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002096/0.3153, allocations: 100.8 kB / 418.4 MB, free: 7.707 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.812e-05/0.3153, allocations: 0 / 418.4 MB, free: 7.707 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.587e-05/0.3153, allocations: 30.56 kB / 418.4 MB, free: 7.668 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 9.52e-07/0.3154, allocations: 4 kB / 418.4 MB, free: 7.664 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.002033/0.3174, allocations: 0.6318 MB / 419 MB, free: 7.004 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.412e-05/0.3174, allocations: 59.28 kB / 419.1 MB, free: 6.934 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002943/0.3177, allocations: 303 kB / 419.4 MB, free: 6.629 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.861e-05/0.3178, allocations: 29.7 kB / 419.4 MB, free: 6.594 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001275/0.3179, allocations: 220.2 kB / 419.6 MB, free: 6.375 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.14e-05/0.318, allocations: 59.52 kB / 419.7 MB, free: 6.316 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.997e-05/0.318, allocations: 49.66 kB / 419.8 MB, free: 6.262 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001233/0.3182, allocations: 338.8 kB / 420.1 MB, free: 5.922 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001987/0.3184, allocations: 75.97 kB / 420.2 MB, free: 5.848 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002368/0.3186, allocations: 158.2 kB / 420.3 MB, free: 5.656 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004289/0.3191, allocations: 246.1 kB / 420.6 MB, free: 5.379 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.3191, allocations: 0 / 420.6 MB, free: 5.379 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009153/0.32, allocations: 413.2 kB / 421 MB, free: 4.969 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.167e-05/0.32, allocations: 11.94 kB / 421 MB, free: 4.957 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.32, allocations: 3.938 kB / 421 MB, free: 4.953 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004008/0.3204, allocations: 104.9 kB / 421.1 MB, free: 4.848 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001532/0.3206, allocations: 43.91 kB / 421.1 MB, free: 4.805 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002818/0.3234, allocations: 2.185 MB / 423.3 MB, free: 2.484 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002153/0.3237, allocations: 35.77 kB / 423.3 MB, free: 2.449 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.674e-05/0.3237, allocations: 12 kB / 423.3 MB, free: 2.438 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (22): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0001489/0.3238, allocations: 161.7 kB / 423.5 MB, free: 2.27 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.087e-05/0.3239, allocations: 23.86 kB / 423.5 MB, free: 2.246 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.346e-05/0.324, allocations: 29.91 kB / 423.6 MB, free: 2.211 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.935e-06/0.324, allocations: 3.938 kB / 423.6 MB, free: 2.207 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.575e-06/0.324, allocations: 0 / 423.6 MB, free: 2.207 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.324, allocations: 0 / 423.6 MB, free: 2.207 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00122/0.3252, allocations: 0.7329 MB / 424.3 MB, free: 1.414 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.3252, allocations: 0 / 424.3 MB, free: 1.414 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.734e-05/0.3253, allocations: 12 kB / 424.3 MB, free: 1.402 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003152/0.3256, allocations: 100.7 kB / 424.4 MB, free: 1.301 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.041e-05/0.3257, allocations: 12 kB / 424.4 MB, free: 1.289 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002696/0.3284, allocations: 2.159 MB / 426.6 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.3284, allocations: 0 / 426.6 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008367/0.3292, allocations: 420.4 kB / 427 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.725e-05/0.3293, allocations: 104.9 kB / 427.1 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.95e-05/0.3293, allocations: 0 / 427.1 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002016/0.3295, allocations: 23.97 kB / 427.1 MB, free: 14.42 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.214e-05/0.3296, allocations: 15.92 kB / 427.1 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.312e-05/0.3296, allocations: 8 kB / 427.1 MB, free: 14.4 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002031/0.3298, allocations: 214 kB / 427.3 MB, free: 14.19 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3298, allocations: 0 / 427.3 MB, free: 14.19 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004399/0.3303, allocations: 83.89 kB / 427.4 MB, free: 14.11 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (8): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00111/0.3314, allocations: 0.9472 MB / 428.4 MB, free: 13.13 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007034/0.3321, allocations: 346.8 kB / 428.7 MB, free: 12.78 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.3321, allocations: 4.188 kB / 428.7 MB, free: 12.77 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003487/0.3325, allocations: 226.1 kB / 428.9 MB, free: 12.54 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003679/0.3329, allocations: 44.81 kB / 429 MB, free: 12.5 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004528/0.3374, allocations: 3.15 MB / 432.1 MB, free: 9.188 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002961/0.3377, allocations: 0.7675 MB / 432.9 MB, free: 8.395 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001011/0.3378, allocations: 30.27 kB / 432.9 MB, free: 8.363 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001181/0.3379, allocations: 95.41 kB / 433 MB, free: 8.27 MB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.338, allocations: 0 / 433 MB, free: 8.27 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02686/0.3648, allocations: 6.639 MB / 439.7 MB, free: 1.781 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.97/11.33, allocations: 4.391 kB / 439.7 MB, free: 1.781 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Adder.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Adder.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Adder.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Adder.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Adder_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_OpAmps_Adder.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Adder.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Adder_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Adder/Adder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Adder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches