Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.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.Subtracter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.00129/0.001289, allocations: 118.2 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00141/0.00141, allocations: 205.2 kB / 18.74 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.436/1.436, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001893/0.001894, allocations: 59.91 kB / 358.3 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2719/0.2738, allocations: 50.54 MB / 408.8 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.005011/0.2789, allocations: 3.387 MB / 412.2 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001583/0.2805, allocations: 0.861 MB / 413 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001794/0.2807, allocations: 8 kB / 413 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002212/0.2809, allocations: 63.36 kB / 413.1 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002494/0.2812, allocations: 123 kB / 413.2 MB, free: 13.08 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004244/0.2816, allocations: 147.7 kB / 413.4 MB, free: 12.94 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005874/0.2822, allocations: 0.4942 MB / 413.9 MB, free: 12.44 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003211/0.2825, allocations: 181 kB / 414 MB, free: 12.26 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002936/0.2828, allocations: 187.3 kB / 414.2 MB, free: 12.07 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002303/0.2831, allocations: 203.1 kB / 414.4 MB, free: 11.88 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.326e-05/0.2832, allocations: 48 kB / 414.5 MB, free: 11.83 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001002/0.2833, allocations: 52 kB / 414.5 MB, free: 11.78 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.906e-05/0.2833, allocations: 103.7 kB / 414.6 MB, free: 11.68 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00019/0.2835, allocations: 218.9 kB / 414.8 MB, free: 11.46 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005618/0.2841, allocations: 0.5672 MB / 415.4 MB, free: 10.89 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.167e-06/0.2841, allocations: 0 / 415.4 MB, free: 10.89 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.2841, allocations: 0 / 415.4 MB, free: 10.89 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.484e-06/0.2841, allocations: 8 kB / 415.4 MB, free: 10.89 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: 87 * Number of variables: 87 Notification: Performance of Generate backend data structure: time 0.00119/0.2853, allocations: 0.7092 MB / 416.1 MB, free: 10.13 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.254e-05/0.2854, allocations: 8.031 kB / 416.1 MB, free: 10.12 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.807e-05/0.2855, allocations: 74.66 kB / 416.2 MB, free: 10.04 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002083/0.2857, allocations: 68.58 kB / 416.3 MB, free: 9.973 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004649/0.2862, allocations: 328.7 kB / 416.6 MB, free: 9.609 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.432e-05/0.2862, allocations: 21.38 kB / 416.6 MB, free: 9.59 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.215e-05/0.2863, allocations: 39.94 kB / 416.7 MB, free: 9.551 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006738/0.287, allocations: 390.2 kB / 417 MB, free: 9.156 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.307e-05/0.287, allocations: 0 / 417 MB, free: 9.156 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.528e-05/0.287, allocations: 12 kB / 417 MB, free: 9.145 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.039e-05/0.287, allocations: 8 kB / 417.1 MB, free: 9.137 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006138/0.2877, allocations: 307.8 kB / 417.4 MB, free: 8.836 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002038/0.2897, allocations: 1.432 MB / 418.8 MB, free: 7.312 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006021/0.2903, allocations: 238.7 kB / 419 MB, free: 7.07 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002082/0.2905, allocations: 100.8 kB / 419.1 MB, free: 6.969 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.385e-05/0.2906, allocations: 0 / 419.1 MB, free: 6.969 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.63e-05/0.2906, allocations: 38.56 kB / 419.2 MB, free: 6.922 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.242e-06/0.2906, allocations: 0 / 419.2 MB, free: 6.922 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.002172/0.2928, allocations: 0.7589 MB / 419.9 MB, free: 6.113 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.768e-05/0.2928, allocations: 55.34 kB / 420 MB, free: 6.047 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000314/0.2932, allocations: 316.5 kB / 420.3 MB, free: 5.734 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.378e-05/0.2932, allocations: 29.7 kB / 420.3 MB, free: 5.699 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001398/0.2933, allocations: 236.1 kB / 420.5 MB, free: 5.461 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.153e-05/0.2934, allocations: 55.55 kB / 420.6 MB, free: 5.406 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.464e-05/0.2935, allocations: 53.7 kB / 420.6 MB, free: 5.348 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001166/0.2936, allocations: 334.8 kB / 421 MB, free: 5.012 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002128/0.2938, allocations: 83.95 kB / 421 MB, free: 4.93 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002509/0.2941, allocations: 161.4 kB / 421.2 MB, free: 4.738 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004422/0.2945, allocations: 251.6 kB / 421.5 MB, free: 4.461 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.484e-06/0.2945, allocations: 0 / 421.5 MB, free: 4.461 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009342/0.2955, allocations: 422.9 kB / 421.9 MB, free: 4.035 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.753e-05/0.2955, allocations: 8.062 kB / 421.9 MB, free: 4.027 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.594e-06/0.2955, allocations: 4 kB / 421.9 MB, free: 4.023 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004494/0.296, allocations: 113.6 kB / 422 MB, free: 3.906 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001667/0.2962, allocations: 51.86 kB / 422 MB, free: 3.855 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003868/0.3, allocations: 3.568 MB / 425.6 MB, free: 8 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002461/0.3003, allocations: 35.83 kB / 425.6 MB, free: 15.97 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.056e-05/0.3003, allocations: 11.94 kB / 425.7 MB, free: 15.96 MB / 350.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.000157/0.3005, allocations: 153.7 kB / 425.8 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.167e-05/0.3006, allocations: 39.81 kB / 425.8 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.145e-05/0.3006, allocations: 30.31 kB / 425.9 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.953e-06/0.3006, allocations: 0 / 425.9 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.895e-06/0.3006, allocations: 3.938 kB / 425.9 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.3006, allocations: 0 / 425.9 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003826/0.301, allocations: 373.3 kB / 426.2 MB, free: 15.31 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.509e-06/0.301, allocations: 4 kB / 426.2 MB, free: 15.31 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.103e-05/0.3011, allocations: 11.94 kB / 426.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000344/0.3015, allocations: 117.6 kB / 426.4 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.536e-05/0.3015, allocations: 3.984 kB / 426.4 MB, free: 15.17 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003343/0.3049, allocations: 3.472 MB / 429.8 MB, free: 11.42 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.3049, allocations: 0 / 429.8 MB, free: 11.42 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008506/0.3057, allocations: 439.1 kB / 430.3 MB, free: 10.97 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.767e-05/0.3058, allocations: 108.8 kB / 430.4 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.831e-05/0.3059, allocations: 8 kB / 430.4 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002265/0.3061, allocations: 23.98 kB / 430.4 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.255e-05/0.3062, allocations: 11.98 kB / 430.4 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.572e-05/0.3062, allocations: 7.984 kB / 430.4 MB, free: 10.8 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000217/0.3064, allocations: 219.1 kB / 430.6 MB, free: 10.58 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.3064, allocations: 7.938 kB / 430.7 MB, free: 10.57 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005013/0.3069, allocations: 99.78 kB / 430.8 MB, free: 10.48 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 (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.00124/0.3082, allocations: 0.9598 MB / 431.7 MB, free: 9.484 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001198/0.3094, allocations: 0.5167 MB / 432.2 MB, free: 8.941 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.3094, allocations: 0 / 432.2 MB, free: 8.941 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004419/0.3099, allocations: 345.7 kB / 432.6 MB, free: 8.578 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004342/0.3103, allocations: 63.14 kB / 432.6 MB, free: 8.523 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004743/0.3151, allocations: 3.26 MB / 435.9 MB, free: 5.102 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003633/0.3154, allocations: 0.7834 MB / 436.7 MB, free: 4.289 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001085/0.3156, allocations: 26.97 kB / 436.7 MB, free: 4.266 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001346/0.3157, allocations: 107.4 kB / 436.8 MB, free: 4.16 MB / 350.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3157, allocations: 0 / 436.8 MB, free: 4.16 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03047/0.3462, allocations: 7.149 MB / 444 MB, free: 13.18 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.54/11.89, allocations: 13.83 kB / 444 MB, free: 13.17 MB / 366.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches