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.001135/0.001135, allocations: 109.4 kB / 17.06 MB, free: 5.965 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.001016/0.001016, allocations: 200 kB / 18.01 MB, free: 5.047 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.315/1.315, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001171/0.001171, allocations: 51.92 kB / 350.8 MB, free: 3.691 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2976/0.2987, allocations: 49.43 MB / 400.3 MB, free: 8.391 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.004601/0.3034, allocations: 3.367 MB / 403.6 MB, free: 5.398 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001475/0.3049, allocations: 0.7987 MB / 404.4 MB, free: 4.598 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002096/0.3052, allocations: 8 kB / 404.4 MB, free: 4.59 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002198/0.3054, allocations: 67.36 kB / 404.5 MB, free: 4.523 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002442/0.3057, allocations: 123 kB / 404.6 MB, free: 4.402 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003393/0.306, allocations: 139.8 kB / 404.8 MB, free: 4.266 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004818/0.3065, allocations: 0.494 MB / 405.2 MB, free: 3.77 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003051/0.3068, allocations: 173 kB / 405.4 MB, free: 3.594 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002534/0.3071, allocations: 187.3 kB / 405.6 MB, free: 3.41 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002316/0.3073, allocations: 207 kB / 405.8 MB, free: 3.207 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.242e-05/0.3074, allocations: 48 kB / 405.8 MB, free: 3.16 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.644e-05/0.3075, allocations: 48 kB / 405.9 MB, free: 3.113 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.231e-05/0.3076, allocations: 99.62 kB / 406 MB, free: 3.016 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000198/0.3078, allocations: 226.9 kB / 406.2 MB, free: 2.793 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005711/0.3084, allocations: 0.5594 MB / 406.8 MB, free: 2.234 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.3084, allocations: 0 / 406.8 MB, free: 2.234 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3084, allocations: 0 / 406.8 MB, free: 2.234 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.358e-05/0.3084, allocations: 0 / 406.8 MB, free: 2.234 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.001173/0.3096, allocations: 0.7118 MB / 407.5 MB, free: 1.477 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.856e-05/0.3096, allocations: 8.031 kB / 407.5 MB, free: 1.469 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.758e-05/0.3097, allocations: 74.72 kB / 407.6 MB, free: 1.387 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.866e-05/0.3098, allocations: 48.66 kB / 407.6 MB, free: 1.34 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000458/0.3103, allocations: 312.8 kB / 407.9 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.577e-05/0.3103, allocations: 33.38 kB / 408 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.972e-05/0.3104, allocations: 35.94 kB / 408 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006874/0.311, allocations: 398.1 kB / 408.4 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.192e-05/0.3111, allocations: 0 / 408.4 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.451e-05/0.3111, allocations: 12 kB / 408.4 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.434e-05/0.3111, allocations: 8 kB / 408.4 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006249/0.3118, allocations: 303.9 kB / 408.7 MB, free: 212 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002181/0.3139, allocations: 1.436 MB / 410.1 MB, free: 14.68 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006143/0.3146, allocations: 234.8 kB / 410.4 MB, free: 14.44 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002192/0.3148, allocations: 96.81 kB / 410.5 MB, free: 14.34 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.059e-05/0.3148, allocations: 4 kB / 410.5 MB, free: 14.34 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.544e-05/0.3149, allocations: 38.5 kB / 410.5 MB, free: 14.29 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.443e-06/0.3149, allocations: 3.938 kB / 410.5 MB, free: 14.29 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.002212/0.3171, allocations: 0.7581 MB / 411.3 MB, free: 13.48 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.287e-05/0.3172, allocations: 59.34 kB / 411.3 MB, free: 13.41 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003293/0.3175, allocations: 311.3 kB / 411.6 MB, free: 13.1 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.239e-05/0.3175, allocations: 25.7 kB / 411.6 MB, free: 13.07 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001473/0.3177, allocations: 236.2 kB / 411.9 MB, free: 12.83 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.613e-05/0.3177, allocations: 67.45 kB / 411.9 MB, free: 12.76 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.933e-05/0.3178, allocations: 49.66 kB / 412 MB, free: 12.71 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001212/0.318, allocations: 334.8 kB / 412.3 MB, free: 12.37 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002069/0.3182, allocations: 87.95 kB / 412.4 MB, free: 12.29 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002611/0.3184, allocations: 165.3 kB / 412.6 MB, free: 12.09 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004371/0.3189, allocations: 245.3 kB / 412.8 MB, free: 11.82 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-06/0.3189, allocations: 0 / 412.8 MB, free: 11.82 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009948/0.3199, allocations: 433.5 kB / 413.2 MB, free: 11.38 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.726e-05/0.3199, allocations: 7.938 kB / 413.2 MB, free: 11.38 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.3199, allocations: 4 kB / 413.2 MB, free: 11.37 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004487/0.3204, allocations: 113.7 kB / 413.3 MB, free: 11.25 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001629/0.3206, allocations: 47.91 kB / 413.4 MB, free: 11.21 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003963/0.3245, allocations: 3.556 MB / 417 MB, free: 7.379 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002385/0.3248, allocations: 39.77 kB / 417 MB, free: 7.34 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.049e-05/0.3248, allocations: 12 kB / 417 MB, free: 7.328 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.0001784/0.325, allocations: 157.8 kB / 417.2 MB, free: 7.164 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.722e-05/0.3251, allocations: 35.75 kB / 417.2 MB, free: 7.129 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.139e-05/0.3251, allocations: 30.3 kB / 417.2 MB, free: 7.098 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.3251, allocations: 0 / 417.2 MB, free: 7.098 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.3251, allocations: 3.984 kB / 417.2 MB, free: 7.094 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.836e-06/0.3252, allocations: 0 / 417.2 MB, free: 7.094 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003769/0.3255, allocations: 361.5 kB / 417.6 MB, free: 6.691 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.3255, allocations: 4 kB / 417.6 MB, free: 6.688 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.143e-05/0.3256, allocations: 15.98 kB / 417.6 MB, free: 6.672 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003576/0.326, allocations: 121.6 kB / 417.7 MB, free: 6.547 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.26e-05/0.326, allocations: 4 kB / 417.7 MB, free: 6.543 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00345/0.3295, allocations: 3.467 MB / 421.2 MB, free: 2.789 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.3295, allocations: 7.922 kB / 421.2 MB, free: 2.781 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008929/0.3304, allocations: 436.7 kB / 421.6 MB, free: 2.332 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.062e-05/0.3305, allocations: 108.9 kB / 421.7 MB, free: 2.207 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.729e-05/0.3305, allocations: 8 kB / 421.7 MB, free: 2.199 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002283/0.3308, allocations: 31.97 kB / 421.8 MB, free: 2.168 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.785e-05/0.3308, allocations: 7.984 kB / 421.8 MB, free: 2.16 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.395e-05/0.3308, allocations: 4 kB / 421.8 MB, free: 2.156 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002242/0.3311, allocations: 225.9 kB / 422 MB, free: 1.941 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3311, allocations: 0 / 422 MB, free: 1.941 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005218/0.3316, allocations: 103.8 kB / 422.1 MB, free: 1.84 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.001231/0.3329, allocations: 0.9709 MB / 423.1 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001134/0.334, allocations: 0.5128 MB / 423.6 MB, free: 308 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.334, allocations: 0 / 423.6 MB, free: 308 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004488/0.3345, allocations: 341.8 kB / 423.9 MB, free: 15.94 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004128/0.3349, allocations: 50.06 kB / 424 MB, free: 15.89 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004734/0.3396, allocations: 3.26 MB / 427.2 MB, free: 12.47 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003616/0.34, allocations: 0.7795 MB / 428 MB, free: 11.66 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001094/0.3401, allocations: 22.98 kB / 428 MB, free: 11.64 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001398/0.3403, allocations: 103.4 kB / 428.1 MB, free: 11.54 MB / 350.1 MB Notification: Performance of SimCode: time 8.52e-07/0.3403, allocations: 0 / 428.1 MB, free: 11.54 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02847/0.3688, allocations: 7.121 MB / 435.2 MB, free: 4.598 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.56/11.93, allocations: 7.922 kB / 435.3 MB, free: 4.59 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