Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder.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.OpAmps.Adder,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Adder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Adder,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001064/0.001064, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.00105/0.00105, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.406/1.406, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001485/0.001485, allocations: 47.27 kB / 300.7 MB, free: 5.77 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09867/0.1002, allocations: 49.45 MB / 350.2 MB, free: 4.309 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Adder): time 0.004651/0.1049, allocations: 3.174 MB / 353.4 MB, free: 1.113 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001387/0.1063, allocations: 0.7635 MB / 354.1 MB, free: 352 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003855/0.1067, allocations: 4 kB / 354.1 MB, free: 348 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002803/0.107, allocations: 63.36 kB / 354.2 MB, free: 284 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004623/0.1075, allocations: 111.1 kB / 354.3 MB, free: 172 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004915/0.108, allocations: 119.8 kB / 354.4 MB, free: 52 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000675/0.1087, allocations: 438.2 kB / 354.8 MB, free: 15.62 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003441/0.1091, allocations: 159.9 kB / 355 MB, free: 15.46 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003356/0.1094, allocations: 171.4 kB / 355.2 MB, free: 15.29 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003658/0.1098, allocations: 179.2 kB / 355.3 MB, free: 15.12 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001179/0.1099, allocations: 44 kB / 355.4 MB, free: 15.07 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001047/0.11, allocations: 48 kB / 355.4 MB, free: 15.03 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.961e-05/0.1101, allocations: 91.67 kB / 355.5 MB, free: 14.94 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002436/0.1104, allocations: 191.1 kB / 355.7 MB, free: 14.75 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005541/0.1109, allocations: 498.5 kB / 356.2 MB, free: 14.26 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.111, allocations: 0 / 356.2 MB, free: 14.26 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.111, allocations: 0 / 356.2 MB, free: 14.26 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.221e-05/0.111, allocations: 0 / 356.2 MB, free: 14.26 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.001311/0.1123, allocations: 0.6806 MB / 356.9 MB, free: 13.54 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.863e-05/0.1124, allocations: 8.031 kB / 356.9 MB, free: 13.53 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.956e-05/0.1124, allocations: 70.72 kB / 356.9 MB, free: 13.45 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.712e-05/0.1125, allocations: 40.47 kB / 357 MB, free: 13.41 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003378/0.1129, allocations: 299.5 kB / 357.3 MB, free: 13.08 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.409e-05/0.1129, allocations: 25.03 kB / 357.3 MB, free: 13.05 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.198e-05/0.113, allocations: 32.38 kB / 357.3 MB, free: 13.02 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006716/0.1136, allocations: 349.2 kB / 357.7 MB, free: 12.67 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.153e-05/0.1137, allocations: 0 / 357.7 MB, free: 12.67 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.393e-05/0.1137, allocations: 19.94 kB / 357.7 MB, free: 12.65 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.581e-05/0.1137, allocations: 12 kB / 357.7 MB, free: 12.64 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006219/0.1144, allocations: 270.4 kB / 358 MB, free: 12.38 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001998/0.1164, allocations: 1.264 MB / 359.2 MB, free: 11.03 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005987/0.117, allocations: 299.8 kB / 359.5 MB, free: 10.71 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002137/0.1172, allocations: 92.81 kB / 359.6 MB, free: 10.62 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.06e-05/0.1172, allocations: 0 / 359.6 MB, free: 10.62 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.356e-05/0.1173, allocations: 38.5 kB / 359.7 MB, free: 10.57 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.352e-06/0.1173, allocations: 4 kB / 359.7 MB, free: 10.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.002401/0.1197, allocations: 0.6394 MB / 360.3 MB, free: 9.898 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.459e-05/0.1197, allocations: 55.41 kB / 360.4 MB, free: 9.832 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003563/0.1201, allocations: 291 kB / 360.6 MB, free: 9.547 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.543e-05/0.1201, allocations: 25.7 kB / 360.7 MB, free: 9.516 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001414/0.1203, allocations: 219.7 kB / 360.9 MB, free: 9.293 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.987e-05/0.1203, allocations: 51.27 kB / 360.9 MB, free: 9.242 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.898e-05/0.1204, allocations: 45.7 kB / 361 MB, free: 9.191 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001406/0.1206, allocations: 342.8 kB / 361.3 MB, free: 8.848 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002296/0.1208, allocations: 71.95 kB / 361.4 MB, free: 8.777 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002605/0.1211, allocations: 174.1 kB / 361.5 MB, free: 8.57 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004919/0.1216, allocations: 246 kB / 361.8 MB, free: 8.293 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/0.1216, allocations: 0 / 361.8 MB, free: 8.293 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001043/0.1226, allocations: 409.9 kB / 362.2 MB, free: 7.883 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.879e-05/0.1227, allocations: 14.5 kB / 362.2 MB, free: 7.871 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.676e-06/0.1227, allocations: 4 kB / 362.2 MB, free: 7.867 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004343/0.1231, allocations: 104.8 kB / 362.3 MB, free: 7.762 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000164/0.1233, allocations: 39.92 kB / 362.3 MB, free: 7.723 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00336/0.1267, allocations: 2.17 MB / 364.5 MB, free: 5.406 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002426/0.1269, allocations: 43.64 kB / 364.6 MB, free: 5.363 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.818e-05/0.127, allocations: 12 kB / 364.6 MB, free: 5.352 MB / 302.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.0001637/0.1271, allocations: 141.8 kB / 364.7 MB, free: 5.203 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.064e-05/0.1272, allocations: 27.72 kB / 364.7 MB, free: 5.176 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.962e-05/0.1273, allocations: 25.91 kB / 364.8 MB, free: 5.145 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.039e-06/0.1273, allocations: 11.88 kB / 364.8 MB, free: 5.133 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.078e-05/0.1273, allocations: 8 kB / 364.8 MB, free: 5.125 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.1273, allocations: 0 / 364.8 MB, free: 5.125 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001413/0.1287, allocations: 0.7137 MB / 365.5 MB, free: 4.352 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.916e-06/0.1288, allocations: 0 / 365.5 MB, free: 4.352 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.644e-05/0.1288, allocations: 15.98 kB / 365.5 MB, free: 4.336 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003762/0.1292, allocations: 109 kB / 365.6 MB, free: 4.227 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.461e-05/0.1293, allocations: 3.984 kB / 365.6 MB, free: 4.223 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00295/0.1322, allocations: 2.162 MB / 367.8 MB, free: 1.926 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.1322, allocations: 0 / 367.8 MB, free: 1.926 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009281/0.1332, allocations: 415 kB / 368.2 MB, free: 1.504 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.404e-05/0.1333, allocations: 104.8 kB / 368.3 MB, free: 1.383 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.583e-05/0.1333, allocations: 12 kB / 368.3 MB, free: 1.371 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002092/0.1335, allocations: 15.98 kB / 368.3 MB, free: 1.355 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.623e-05/0.1336, allocations: 19.92 kB / 368.3 MB, free: 1.336 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.182e-05/0.1336, allocations: 0 / 368.3 MB, free: 1.336 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002524/0.1339, allocations: 213.9 kB / 368.5 MB, free: 1.129 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1339, allocations: 0 / 368.5 MB, free: 1.129 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005075/0.1344, allocations: 87.84 kB / 368.6 MB, free: 1.043 MB / 302.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.001286/0.1357, allocations: 0.9508 MB / 369.6 MB, free: 60 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.1729/0.3086, allocations: 332.9 kB / 369.9 MB, free: 25.57 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.161e-06/0.3087, allocations: 4.391 kB / 369.9 MB, free: 25.57 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005547/0.3092, allocations: 233.3 kB / 370.1 MB, free: 25.46 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007112/0.31, allocations: 40.5 kB / 370.2 MB, free: 25.45 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007152/0.3171, allocations: 3.16 MB / 373.3 MB, free: 23.9 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002915/0.3175, allocations: 0.7708 MB / 374.1 MB, free: 23.2 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001433/0.3176, allocations: 24.56 kB / 374.1 MB, free: 23.2 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000162/0.3178, allocations: 96.95 kB / 374.2 MB, free: 23.2 MB / 302.1 MB Notification: Performance of SimCode: time 6.51e-07/0.3178, allocations: 0 / 374.2 MB, free: 23.2 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03636/0.3542, allocations: 6.468 MB / 380.7 MB, free: 22.2 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.26/11.61, allocations: 7.812 kB / 380.7 MB, free: 22.2 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Adder.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches