Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.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.InvertingAmplifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier",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.001617/0.001617, allocations: 114.3 kB / 17.07 MB, free: 6.016 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.00186/0.00186, allocations: 191 kB / 18 MB, free: 5.098 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.316/1.316, allocations: 222.9 MB / 241.7 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001206/0.001206, allocations: 51.92 kB / 350.8 MB, free: 3.742 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2698/0.271, allocations: 49.43 MB / 400.3 MB, free: 8.449 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.004374/0.2755, allocations: 2.941 MB / 403.2 MB, free: 5.879 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001362/0.2769, allocations: 0.7245 MB / 403.9 MB, free: 5.148 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001737/0.277, allocations: 4 kB / 403.9 MB, free: 5.145 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000171/0.2772, allocations: 51.5 kB / 404 MB, free: 5.094 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001923/0.2774, allocations: 103.2 kB / 404.1 MB, free: 4.992 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002814/0.2777, allocations: 119.8 kB / 404.2 MB, free: 4.875 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003825/0.2781, allocations: 422.4 kB / 404.6 MB, free: 4.461 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002107/0.2783, allocations: 123.3 kB / 404.7 MB, free: 4.332 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001676/0.2785, allocations: 155.4 kB / 404.9 MB, free: 4.18 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001902/0.2787, allocations: 171.3 kB / 405.1 MB, free: 4.012 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.277e-05/0.2788, allocations: 47.92 kB / 405.1 MB, free: 3.965 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.938e-05/0.2788, allocations: 44 kB / 405.1 MB, free: 3.922 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.3e-05/0.2789, allocations: 67.77 kB / 405.2 MB, free: 3.855 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000159/0.2791, allocations: 179.1 kB / 405.4 MB, free: 3.68 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004073/0.2795, allocations: 453.3 kB / 405.8 MB, free: 3.238 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.2795, allocations: 0 / 405.8 MB, free: 3.238 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.103e-06/0.2795, allocations: 0 / 405.8 MB, free: 3.238 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.791e-06/0.2795, allocations: 0 / 405.8 MB, free: 3.238 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001178/0.2807, allocations: 0.6806 MB / 406.5 MB, free: 2.504 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.657e-05/0.2807, allocations: 12.03 kB / 406.5 MB, free: 2.492 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.612e-05/0.2808, allocations: 62.73 kB / 406.6 MB, free: 2.422 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.095e-05/0.2809, allocations: 32.75 kB / 406.6 MB, free: 2.391 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003705/0.2812, allocations: 307.7 kB / 406.9 MB, free: 2.051 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.815e-05/0.2813, allocations: 16.94 kB / 406.9 MB, free: 2.035 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.827e-05/0.2813, allocations: 24.38 kB / 407 MB, free: 2.012 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006685/0.282, allocations: 331.8 kB / 407.3 MB, free: 1.68 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.04e-05/0.282, allocations: 0 / 407.3 MB, free: 1.68 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.134e-05/0.282, allocations: 12 kB / 407.3 MB, free: 1.668 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.233e-06/0.2821, allocations: 7.938 kB / 407.3 MB, free: 1.66 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007697/0.2828, allocations: 286 kB / 407.6 MB, free: 1.379 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001683/0.2845, allocations: 1.147 MB / 408.7 MB, free: 160 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008064/0.2853, allocations: 250.6 kB / 409 MB, free: 15.9 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003196/0.2857, allocations: 104.8 kB / 409.1 MB, free: 15.8 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.784e-05/0.2857, allocations: 0 / 409.1 MB, free: 15.8 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004362/0.2861, allocations: 185.8 kB / 409.3 MB, free: 15.59 MB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 1.182e-06/0.2862, allocations: 0 / 409.3 MB, free: 15.59 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.00218/0.2883, allocations: 0.67 MB / 409.9 MB, free: 14.9 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.991e-05/0.2884, allocations: 110.8 kB / 410 MB, free: 14.77 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002755/0.2887, allocations: 282.7 kB / 410.3 MB, free: 14.48 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.209e-05/0.2887, allocations: 25.7 kB / 410.3 MB, free: 14.45 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001219/0.2889, allocations: 200 kB / 410.5 MB, free: 14.25 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.795e-05/0.2889, allocations: 55.55 kB / 410.6 MB, free: 14.19 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.384e-05/0.289, allocations: 53.89 kB / 410.6 MB, free: 14.13 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001124/0.2891, allocations: 338.8 kB / 411 MB, free: 13.79 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003423/0.2895, allocations: 100.4 kB / 411.1 MB, free: 13.69 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003903/0.2899, allocations: 206.2 kB / 411.3 MB, free: 13.45 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006857/0.2906, allocations: 314.3 kB / 411.6 MB, free: 13.1 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.2906, allocations: 0 / 411.6 MB, free: 13.1 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001199/0.2918, allocations: 475.7 kB / 412 MB, free: 12.62 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.456e-05/0.2918, allocations: 37.75 kB / 412.1 MB, free: 12.58 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-06/0.2918, allocations: 4 kB / 412.1 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003579/0.2922, allocations: 76.81 kB / 412.2 MB, free: 12.5 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002068/0.2924, allocations: 60.11 kB / 412.2 MB, free: 12.44 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002501/0.2949, allocations: 1.998 MB / 414.2 MB, free: 10.3 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000327/0.2953, allocations: 51.75 kB / 414.3 MB, free: 10.25 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.628e-05/0.2953, allocations: 23.91 kB / 414.3 MB, free: 10.23 MB / 334.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: 5 (vIn.signalSource.count,$PRE.vIn.signalSource.count,vIn.signalSource.T_start,$PRE.vIn.signalSource.T_start,$whenCondition1) * 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: 1 * 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,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001427/0.2955, allocations: 157.7 kB / 414.4 MB, free: 10.06 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.907e-05/0.2956, allocations: 23.86 kB / 414.5 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.534e-05/0.2956, allocations: 25.83 kB / 414.5 MB, free: 10.01 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.416e-06/0.2956, allocations: 4 kB / 414.5 MB, free: 10 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.873e-06/0.2956, allocations: 0 / 414.5 MB, free: 10 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.446e-06/0.2956, allocations: 0 / 414.5 MB, free: 10 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000265/0.2959, allocations: 321.4 kB / 414.8 MB, free: 9.641 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.2959, allocations: 0 / 414.8 MB, free: 9.641 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001329/0.296, allocations: 27.97 kB / 414.8 MB, free: 9.613 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002771/0.2963, allocations: 84.73 kB / 414.9 MB, free: 9.527 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.27e-05/0.2964, allocations: 0 / 414.9 MB, free: 9.527 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002139/0.2985, allocations: 1.824 MB / 416.7 MB, free: 7.559 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.2985, allocations: 0 / 416.7 MB, free: 7.559 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001023/0.2995, allocations: 365.6 kB / 417.1 MB, free: 7.18 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.313e-05/0.2996, allocations: 109 kB / 417.2 MB, free: 7.055 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.648e-05/0.2997, allocations: 0 / 417.2 MB, free: 7.055 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000246/0.2999, allocations: 35.95 kB / 417.2 MB, free: 7.02 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.226e-05/0.3, allocations: 19.97 kB / 417.3 MB, free: 7 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.754e-05/0.3, allocations: 7.938 kB / 417.3 MB, free: 6.992 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001991/0.3002, allocations: 198 kB / 417.5 MB, free: 6.801 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3002, allocations: 0 / 417.5 MB, free: 6.801 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003688/0.3006, allocations: 87.83 kB / 417.5 MB, free: 6.715 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: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001363/0.302, allocations: 0.9019 MB / 418.4 MB, free: 5.777 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0011/0.3031, allocations: 434 kB / 418.9 MB, free: 5.328 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.3031, allocations: 0 / 418.9 MB, free: 5.328 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005052/0.3036, allocations: 244.5 kB / 419.1 MB, free: 5.078 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003846/0.304, allocations: 53.16 kB / 419.2 MB, free: 5.023 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005605/0.3096, allocations: 3.104 MB / 422.3 MB, free: 1.766 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000374/0.3101, allocations: 0.7558 MB / 423 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000133/0.3102, allocations: 26.28 kB / 423 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001394/0.3104, allocations: 83.41 kB / 423.1 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3104, allocations: 0 / 423.1 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04128/0.3517, allocations: 6.864 MB / 430 MB, free: 10.21 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.25/11.6, allocations: 11.72 kB / 430 MB, free: 10.2 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_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_InvertingAmplifier.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/InvertingAmplifier/InvertingAmplifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches