Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.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.AmplifierWithOpAmpDetailed,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_AmplifierWithOpAmpDetailed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_AmplifierWithOpAmpDetailed",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.001629/0.001629, allocations: 109.2 kB / 17.06 MB, free: 5.828 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.001738/0.001738, allocations: 195.9 kB / 18 MB, free: 4.965 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.436/1.436, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001167/0.001168, allocations: 47.94 kB / 350.8 MB, free: 3.766 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2922/0.2934, allocations: 49.44 MB / 400.2 MB, free: 8.422 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed): time 0.004798/0.2983, allocations: 3.215 MB / 403.5 MB, free: 5.609 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002024/0.3003, allocations: 0.9661 MB / 404.4 MB, free: 4.637 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004122/0.3008, allocations: 8 kB / 404.4 MB, free: 4.629 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002885/0.3011, allocations: 59.41 kB / 404.5 MB, free: 4.57 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006557/0.3018, allocations: 126.9 kB / 404.6 MB, free: 4.445 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000481/0.3023, allocations: 147.7 kB / 404.8 MB, free: 4.301 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007309/0.303, allocations: 485.9 kB / 405.2 MB, free: 3.824 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002773/0.3033, allocations: 131.1 kB / 405.4 MB, free: 3.691 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003629/0.3037, allocations: 187.3 kB / 405.5 MB, free: 3.508 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003836/0.3041, allocations: 207.1 kB / 405.8 MB, free: 3.305 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.268e-05/0.3041, allocations: 40 kB / 405.8 MB, free: 3.266 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001991/0.3043, allocations: 71.97 kB / 405.9 MB, free: 3.195 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001066/0.3045, allocations: 95.61 kB / 406 MB, free: 3.102 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002423/0.3047, allocations: 211 kB / 406.2 MB, free: 2.895 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006436/0.3054, allocations: 0.5047 MB / 406.7 MB, free: 2.391 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.3054, allocations: 0 / 406.7 MB, free: 2.391 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.3054, allocations: 0 / 406.7 MB, free: 2.391 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.803e-05/0.3054, allocations: 0 / 406.7 MB, free: 2.391 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001535/0.307, allocations: 0.7438 MB / 407.4 MB, free: 1.598 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.387e-05/0.307, allocations: 8.031 kB / 407.4 MB, free: 1.59 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.874e-05/0.3071, allocations: 70.72 kB / 407.5 MB, free: 1.512 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001125/0.3072, allocations: 48.59 kB / 407.5 MB, free: 1.465 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004921/0.3077, allocations: 303.6 kB / 407.8 MB, free: 1.133 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.729e-05/0.3078, allocations: 36.97 kB / 407.9 MB, free: 1.098 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.272e-05/0.3078, allocations: 32.38 kB / 407.9 MB, free: 1.066 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006793/0.3085, allocations: 349.2 kB / 408.2 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.391e-05/0.3085, allocations: 0 / 408.2 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.707e-05/0.3086, allocations: 16 kB / 408.3 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.808e-06/0.3086, allocations: 11.94 kB / 408.3 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004962/0.3091, allocations: 234.5 kB / 408.5 MB, free: 468 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002046/0.3112, allocations: 1.174 MB / 409.7 MB, free: 15.2 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006753/0.3118, allocations: 287.6 kB / 410 MB, free: 14.91 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005249/0.3124, allocations: 213.9 kB / 410.2 MB, free: 14.7 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008178/0.3132, allocations: 1.113 MB / 411.3 MB, free: 13.32 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.001e-05/0.3133, allocations: 38.8 kB / 411.3 MB, free: 13.28 MB / 334.1 MB Notification: Performance of pre-optimization done (n=27): time 1.563e-06/0.3133, allocations: 0 / 411.3 MB, free: 13.28 MB / 334.1 MB Notification: Performance of matching and sorting (n=27): time 0.001408/0.3147, allocations: 0.5342 MB / 411.8 MB, free: 12.72 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.894e-05/0.3148, allocations: 81.11 kB / 411.9 MB, free: 12.62 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000369/0.3151, allocations: 332.5 kB / 412.2 MB, free: 12.28 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.337e-05/0.3152, allocations: 33.7 kB / 412.3 MB, free: 12.24 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001568/0.3154, allocations: 216.5 kB / 412.5 MB, free: 12.03 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.614e-05/0.3154, allocations: 107.1 kB / 412.6 MB, free: 11.92 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001124/0.3156, allocations: 74.02 kB / 412.7 MB, free: 11.84 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001421/0.3157, allocations: 346.7 kB / 413 MB, free: 11.49 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002387/0.316, allocations: 100.7 kB / 413.1 MB, free: 11.39 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002887/0.3163, allocations: 193.7 kB / 413.3 MB, free: 11.18 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005003/0.3168, allocations: 288.3 kB / 413.6 MB, free: 10.87 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.28e-06/0.3168, allocations: 4 kB / 413.6 MB, free: 10.86 MB / 334.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0008309/0.3176, allocations: 433.6 kB / 414 MB, free: 10.43 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.786e-05/0.3177, allocations: 8.25 kB / 414 MB, free: 10.42 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.044e-05/0.3177, allocations: 4 kB / 414 MB, free: 10.42 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002761/0.3179, allocations: 64.81 kB / 414.1 MB, free: 10.35 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003262/0.3183, allocations: 75.83 kB / 414.2 MB, free: 10.28 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002083/0.3204, allocations: 1.955 MB / 416.1 MB, free: 8.184 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002816/0.3207, allocations: 47.67 kB / 416.2 MB, free: 8.137 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.231e-05/0.3207, allocations: 15.98 kB / 416.2 MB, free: 8.121 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (37): * Single equations (assignments): 36 * 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): 1 system {(1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001935/0.3209, allocations: 157.7 kB / 416.3 MB, free: 7.957 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.896e-05/0.321, allocations: 35.77 kB / 416.4 MB, free: 7.922 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007573/0.3218, allocations: 330.3 kB / 416.7 MB, free: 7.59 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.3218, allocations: 4 kB / 416.7 MB, free: 7.586 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/0.3218, allocations: 4.125 kB / 416.7 MB, free: 7.582 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.3218, allocations: 0 / 416.7 MB, free: 7.582 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005159/0.3223, allocations: 405.2 kB / 417.1 MB, free: 7.137 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.988e-06/0.3223, allocations: 0 / 417.1 MB, free: 7.137 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004014/0.3228, allocations: 59.89 kB / 417.1 MB, free: 7.078 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002001/0.323, allocations: 60.83 kB / 417.2 MB, free: 7.016 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.611e-05/0.323, allocations: 4 kB / 417.2 MB, free: 7.012 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004303/0.3234, allocations: 0.607 MB / 417.8 MB, free: 6.379 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.3235, allocations: 0 / 417.8 MB, free: 6.379 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009208/0.3244, allocations: 0.5278 MB / 418.3 MB, free: 5.828 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001034/0.3245, allocations: 112.8 kB / 418.5 MB, free: 5.699 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.31e-05/0.3246, allocations: 8 kB / 418.5 MB, free: 5.691 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002674/0.3248, allocations: 19.98 kB / 418.5 MB, free: 5.672 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.997e-05/0.3249, allocations: 19.97 kB / 418.5 MB, free: 5.652 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.783e-05/0.3249, allocations: 7.938 kB / 418.5 MB, free: 5.645 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002503/0.3252, allocations: 239 kB / 418.7 MB, free: 5.414 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3252, allocations: 0 / 418.7 MB, free: 5.414 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004835/0.3257, allocations: 115.8 kB / 418.9 MB, free: 5.301 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (opAmp.v_in,opAmp.q_fr1,opAmp.q_fr2,opAmp.q_fr3,opAmp.q_fp1,opAmp.v_source,opAmp.x) * 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 (20): * Single equations (assignments): 19 * 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.001357/0.327, allocations: 1.091 MB / 419.9 MB, free: 4.18 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008666/0.3279, allocations: 422.2 kB / 420.4 MB, free: 3.754 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.442e-06/0.3279, allocations: 0 / 420.4 MB, free: 3.754 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003496/0.3283, allocations: 147.7 kB / 420.5 MB, free: 3.609 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003952/0.3287, allocations: 48.95 kB / 420.5 MB, free: 3.566 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005232/0.334, allocations: 3.756 MB / 424.3 MB, free: 15.68 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004151/0.3344, allocations: 0.7912 MB / 425.1 MB, free: 14.86 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001842/0.3346, allocations: 38.95 kB / 425.1 MB, free: 14.82 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001804/0.3348, allocations: 127.4 kB / 425.3 MB, free: 14.7 MB / 350.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3348, allocations: 3.938 kB / 425.3 MB, free: 14.69 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0323/0.3671, allocations: 7.734 MB / 433 MB, free: 7.148 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.84/12.21, allocations: 10.45 kB / 433 MB, free: 7.141 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed_res.csv --start-time 0 --stop-time 0.003 --timeout 50 --relative-tolerance 2e-07 --interface-type ModelExchange --solver CVode --output-interval 1.2e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_AmplifierWithOpAmpDetailed.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/AmplifierWithOpAmpDetailed/AmplifierWithOpAmpDetailed.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches