Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.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.Subtracter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter",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.001263/0.001263, allocations: 110 kB / 17.06 MB, free: 5.793 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.00118/0.00118, allocations: 200 kB / 18.01 MB, free: 4.918 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.393/1.393, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001346/0.001346, allocations: 51.91 kB / 350.8 MB, free: 3.727 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2883/0.2897, allocations: 49.43 MB / 400.3 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.005077/0.2948, allocations: 3.372 MB / 403.6 MB, free: 5.418 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001736/0.2966, allocations: 0.7987 MB / 404.4 MB, free: 4.617 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001742/0.2968, allocations: 4 kB / 404.4 MB, free: 4.613 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002051/0.297, allocations: 71.3 kB / 404.5 MB, free: 4.543 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002329/0.2972, allocations: 119 kB / 404.6 MB, free: 4.426 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003309/0.2976, allocations: 139.8 kB / 404.8 MB, free: 4.289 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005919/0.2982, allocations: 498 kB / 405.2 MB, free: 3.801 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000311/0.2985, allocations: 169 kB / 405.4 MB, free: 3.629 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000262/0.2988, allocations: 195.2 kB / 405.6 MB, free: 3.438 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002548/0.299, allocations: 199.2 kB / 405.8 MB, free: 3.242 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.351e-05/0.2991, allocations: 48 kB / 405.8 MB, free: 3.195 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.093e-05/0.2992, allocations: 48 kB / 405.9 MB, free: 3.148 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.11e-05/0.2993, allocations: 95.69 kB / 406 MB, free: 3.055 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002212/0.2995, allocations: 226.9 kB / 406.2 MB, free: 2.832 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006581/0.3002, allocations: 0.5633 MB / 406.8 MB, free: 2.27 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.153e-06/0.3002, allocations: 0 / 406.8 MB, free: 2.27 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.3002, allocations: 0 / 406.8 MB, free: 2.27 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.081e-05/0.3002, allocations: 0 / 406.8 MB, free: 2.27 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 87 * Number of variables: 87 Notification: Performance of Generate backend data structure: time 0.001288/0.3015, allocations: 0.7054 MB / 407.5 MB, free: 1.516 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.385e-05/0.3016, allocations: 8.031 kB / 407.5 MB, free: 1.508 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.457e-05/0.3017, allocations: 74.72 kB / 407.6 MB, free: 1.426 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001123/0.3018, allocations: 52.66 kB / 407.6 MB, free: 1.375 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000541/0.3024, allocations: 320.8 kB / 407.9 MB, free: 1.02 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.994e-05/0.3024, allocations: 21.38 kB / 407.9 MB, free: 1 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.559e-05/0.3025, allocations: 43.94 kB / 408 MB, free: 0.957 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008041/0.3033, allocations: 394.1 kB / 408.4 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.608e-05/0.3033, allocations: 4 kB / 408.4 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.495e-05/0.3033, allocations: 8 kB / 408.4 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.255e-05/0.3034, allocations: 12 kB / 408.4 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006863/0.3041, allocations: 299.9 kB / 408.7 MB, free: 248 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002496/0.3066, allocations: 1.444 MB / 410.1 MB, free: 14.71 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006667/0.3072, allocations: 230.8 kB / 410.4 MB, free: 14.47 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002315/0.3075, allocations: 100.8 kB / 410.5 MB, free: 14.37 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.32e-05/0.3075, allocations: 3.984 kB / 410.5 MB, free: 14.37 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.048e-05/0.3076, allocations: 38.56 kB / 410.5 MB, free: 14.32 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.343e-06/0.3076, allocations: 0 / 410.5 MB, free: 14.32 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.002282/0.3098, allocations: 0.755 MB / 411.3 MB, free: 13.51 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.573e-05/0.3099, allocations: 63.28 kB / 411.3 MB, free: 13.44 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003738/0.3103, allocations: 311.3 kB / 411.6 MB, free: 13.12 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.526e-05/0.3103, allocations: 29.7 kB / 411.6 MB, free: 13.09 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001895/0.3105, allocations: 228.2 kB / 411.9 MB, free: 12.86 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.311e-05/0.3106, allocations: 67.45 kB / 411.9 MB, free: 12.79 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001104/0.3107, allocations: 53.66 kB / 412 MB, free: 12.73 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002218/0.3109, allocations: 334.8 kB / 412.3 MB, free: 12.4 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002351/0.3112, allocations: 91.89 kB / 412.4 MB, free: 12.31 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002932/0.3115, allocations: 157.4 kB / 412.6 MB, free: 12.12 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005169/0.312, allocations: 248.4 kB / 412.8 MB, free: 11.85 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.09e-06/0.312, allocations: 4 kB / 412.8 MB, free: 11.84 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001035/0.3131, allocations: 422.9 kB / 413.2 MB, free: 11.42 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.977e-05/0.3131, allocations: 8 kB / 413.2 MB, free: 11.41 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.676e-06/0.3131, allocations: 4 kB / 413.2 MB, free: 11.41 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005182/0.3136, allocations: 113.7 kB / 413.3 MB, free: 11.29 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001746/0.3138, allocations: 39.92 kB / 413.4 MB, free: 11.25 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004542/0.3184, allocations: 3.572 MB / 417 MB, free: 7.406 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002578/0.3187, allocations: 39.77 kB / 417 MB, free: 7.367 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.233e-05/0.3187, allocations: 12 kB / 417 MB, free: 7.355 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (23): * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0002039/0.3189, allocations: 157.8 kB / 417.2 MB, free: 7.191 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.819e-05/0.319, allocations: 35.75 kB / 417.2 MB, free: 7.156 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.764e-05/0.319, allocations: 26.3 kB / 417.2 MB, free: 7.129 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.425e-06/0.319, allocations: 4 kB / 417.2 MB, free: 7.125 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.3191, allocations: 0 / 417.2 MB, free: 7.125 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.3191, allocations: 3.984 kB / 417.2 MB, free: 7.121 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004812/0.3195, allocations: 361.4 kB / 417.6 MB, free: 6.719 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.305e-06/0.3196, allocations: 0 / 417.6 MB, free: 6.719 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.959e-05/0.3196, allocations: 15.98 kB / 417.6 MB, free: 6.703 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004365/0.3201, allocations: 121.5 kB / 417.7 MB, free: 6.578 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.303e-05/0.3201, allocations: 4 kB / 417.7 MB, free: 6.574 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003872/0.324, allocations: 3.467 MB / 421.2 MB, free: 2.82 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.324, allocations: 4.062 kB / 421.2 MB, free: 2.816 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009483/0.325, allocations: 428.7 kB / 421.6 MB, free: 2.375 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.843e-05/0.3251, allocations: 112.9 kB / 421.7 MB, free: 2.246 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.91e-05/0.3251, allocations: 0 / 421.7 MB, free: 2.246 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002218/0.3253, allocations: 31.97 kB / 421.7 MB, free: 2.215 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.696e-05/0.3254, allocations: 11.98 kB / 421.8 MB, free: 2.203 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.481e-05/0.3254, allocations: 8 kB / 421.8 MB, free: 2.195 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002567/0.3257, allocations: 221.9 kB / 422 MB, free: 1.984 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.3e-07/0.3257, allocations: 0 / 422 MB, free: 1.984 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005243/0.3262, allocations: 99.78 kB / 422.1 MB, free: 1.887 MB / 334.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 (9): * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001295/0.3276, allocations: 0.9786 MB / 423.1 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001174/0.3287, allocations: 0.5154 MB / 423.6 MB, free: 348 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.828e-06/0.3288, allocations: 0 / 423.6 MB, free: 348 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000491/0.3293, allocations: 345.7 kB / 423.9 MB, free: 15.98 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004077/0.3297, allocations: 54.39 kB / 424 MB, free: 15.93 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005466/0.3351, allocations: 3.263 MB / 427.2 MB, free: 12.5 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000503/0.3357, allocations: 0.7756 MB / 428 MB, free: 11.7 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001219/0.3358, allocations: 26.98 kB / 428 MB, free: 11.68 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001606/0.336, allocations: 103.4 kB / 428.1 MB, free: 11.57 MB / 350.1 MB Notification: Performance of SimCode: time 6.62e-07/0.336, allocations: 0 / 428.1 MB, free: 11.57 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03831/0.3743, allocations: 7.112 MB / 435.2 MB, free: 4.633 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.31/12.68, allocations: 4.062 kB / 435.2 MB, free: 4.629 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_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_Subtracter.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Subtracter/Subtracter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches