Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.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.InvertingAmp,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.InvertingAmp,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_InvertingAmp",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.00114/0.00114, allocations: 109.8 kB / 17.06 MB, free: 5.973 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.001163/0.001163, allocations: 198.8 kB / 18.01 MB, free: 5.055 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.403/1.403, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001107/0.001107, allocations: 51.92 kB / 350.8 MB, free: 3.727 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2797/0.2808, allocations: 49.44 MB / 400.2 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.004091/0.2849, allocations: 2.794 MB / 403 MB, free: 5.996 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001152/0.2861, allocations: 0.6349 MB / 403.7 MB, free: 5.355 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002494/0.2864, allocations: 8 kB / 403.7 MB, free: 5.348 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001899/0.2866, allocations: 51.5 kB / 403.7 MB, free: 5.297 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002583/0.2869, allocations: 91.19 kB / 403.8 MB, free: 5.207 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002947/0.2872, allocations: 83.88 kB / 403.9 MB, free: 5.125 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000426/0.2876, allocations: 378.5 kB / 404.3 MB, free: 4.754 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002419/0.2879, allocations: 115 kB / 404.4 MB, free: 4.637 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001729/0.288, allocations: 155.4 kB / 404.5 MB, free: 4.484 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002092/0.2883, allocations: 163.4 kB / 404.7 MB, free: 4.324 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.101e-05/0.2883, allocations: 32 kB / 404.7 MB, free: 4.293 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.827e-05/0.2884, allocations: 36 kB / 404.8 MB, free: 4.258 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.604e-05/0.2885, allocations: 79.69 kB / 404.8 MB, free: 4.18 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001474/0.2886, allocations: 159.2 kB / 405 MB, free: 4.023 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003628/0.289, allocations: 376.4 kB / 405.4 MB, free: 3.656 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.289, allocations: 0 / 405.4 MB, free: 3.656 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.289, allocations: 0 / 405.4 MB, free: 3.656 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.853e-06/0.289, allocations: 0 / 405.4 MB, free: 3.656 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001269/0.2903, allocations: 0.6536 MB / 406 MB, free: 2.949 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.827e-05/0.2903, allocations: 11.97 kB / 406 MB, free: 2.938 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.959e-05/0.2904, allocations: 58.73 kB / 406.1 MB, free: 2.871 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.633e-05/0.2905, allocations: 40.56 kB / 406.1 MB, free: 2.832 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003655/0.2909, allocations: 284.6 kB / 406.4 MB, free: 2.512 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.853e-05/0.2909, allocations: 16.94 kB / 406.4 MB, free: 2.496 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.98e-05/0.2909, allocations: 24.38 kB / 406.4 MB, free: 2.473 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006367/0.2916, allocations: 307.5 kB / 406.7 MB, free: 2.164 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.195e-05/0.2916, allocations: 4 kB / 406.8 MB, free: 2.16 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.717e-05/0.2916, allocations: 4 kB / 406.8 MB, free: 2.156 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.606e-06/0.2917, allocations: 8 kB / 406.8 MB, free: 2.148 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000791/0.2924, allocations: 245.6 kB / 407 MB, free: 1.906 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001585/0.294, allocations: 1.089 MB / 408.1 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007957/0.2949, allocations: 214.6 kB / 408.3 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003209/0.2952, allocations: 88.8 kB / 408.4 MB, free: 428 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.513e-05/0.2952, allocations: 0 / 408.4 MB, free: 428 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004589/0.2957, allocations: 179.9 kB / 408.6 MB, free: 228 kB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 1.403e-06/0.2957, allocations: 0 / 408.6 MB, free: 228 kB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.002139/0.2978, allocations: 0.5031 MB / 409.1 MB, free: 15.69 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.446e-05/0.2979, allocations: 106.8 kB / 409.2 MB, free: 15.56 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003003/0.2982, allocations: 286.6 kB / 409.5 MB, free: 15.28 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.583e-05/0.2983, allocations: 29.7 kB / 409.5 MB, free: 15.24 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001274/0.2984, allocations: 195.5 kB / 409.7 MB, free: 15.05 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.486e-05/0.2985, allocations: 43.45 kB / 409.7 MB, free: 15 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.35e-05/0.2985, allocations: 49.94 kB / 409.8 MB, free: 14.95 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001172/0.2987, allocations: 334.8 kB / 410.1 MB, free: 14.61 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003316/0.299, allocations: 96.09 kB / 410.2 MB, free: 14.52 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003933/0.2994, allocations: 206.1 kB / 410.4 MB, free: 14.26 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000709/0.3001, allocations: 309.3 kB / 410.7 MB, free: 13.91 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.3001, allocations: 0 / 410.7 MB, free: 13.91 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0012/0.3013, allocations: 427.7 kB / 411.1 MB, free: 13.48 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.887e-05/0.3014, allocations: 37.69 kB / 411.1 MB, free: 13.43 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.987e-06/0.3014, allocations: 3.938 kB / 411.1 MB, free: 13.43 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003483/0.3018, allocations: 80.91 kB / 411.2 MB, free: 13.35 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002152/0.302, allocations: 47.89 kB / 411.3 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002307/0.3043, allocations: 1.718 MB / 413 MB, free: 11.45 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000341/0.3047, allocations: 51.66 kB / 413 MB, free: 11.39 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.454e-05/0.3047, allocations: 19.92 kB / 413.1 MB, free: 11.38 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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,5)} Notification: Performance of prepare postOptimizeDAE: time 0.000152/0.3049, allocations: 145.7 kB / 413.2 MB, free: 11.22 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.587e-05/0.3049, allocations: 27.78 kB / 413.2 MB, free: 11.2 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.518e-05/0.305, allocations: 21.7 kB / 413.2 MB, free: 11.17 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.387e-06/0.305, allocations: 4 kB / 413.3 MB, free: 11.17 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.483e-06/0.305, allocations: 0 / 413.3 MB, free: 11.17 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.305, allocations: 0 / 413.3 MB, free: 11.17 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002718/0.3053, allocations: 305.5 kB / 413.5 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-06/0.3053, allocations: 4 kB / 413.6 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001238/0.3054, allocations: 19.98 kB / 413.6 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002543/0.3057, allocations: 72.73 kB / 413.6 MB, free: 10.72 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.343e-05/0.3057, allocations: 0 / 413.6 MB, free: 10.72 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002179/0.3079, allocations: 1.703 MB / 415.3 MB, free: 8.879 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.3079, allocations: 8 kB / 415.4 MB, free: 8.871 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001009/0.3089, allocations: 313.3 kB / 415.7 MB, free: 8.543 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000111/0.309, allocations: 112.8 kB / 415.8 MB, free: 8.414 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.706e-05/0.3091, allocations: 0 / 415.8 MB, free: 8.414 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002556/0.3093, allocations: 28.16 kB / 415.8 MB, free: 8.387 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.153e-05/0.3094, allocations: 27.97 kB / 415.8 MB, free: 8.359 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.582e-05/0.3094, allocations: 11.94 kB / 415.8 MB, free: 8.348 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001976/0.3096, allocations: 202 kB / 416 MB, free: 8.148 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3096, allocations: 0 / 416 MB, free: 8.148 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003588/0.31, allocations: 79.84 kB / 416.1 MB, free: 8.07 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 (7): * Single equations (assignments): 4 * 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,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001321/0.3113, allocations: 0.8485 MB / 417 MB, free: 7.191 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001/0.3124, allocations: 405.3 kB / 417.4 MB, free: 6.773 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.569e-06/0.3124, allocations: 4 kB / 417.4 MB, free: 6.77 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004691/0.3128, allocations: 226.5 kB / 417.6 MB, free: 6.535 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003061/0.3132, allocations: 49.42 kB / 417.6 MB, free: 6.488 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005414/0.3186, allocations: 2.992 MB / 420.6 MB, free: 3.312 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003928/0.319, allocations: 0.7479 MB / 421.4 MB, free: 2.539 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000106/0.3191, allocations: 26.3 kB / 421.4 MB, free: 2.516 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000123/0.3192, allocations: 79.41 kB / 421.5 MB, free: 2.441 MB / 334.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3193, allocations: 0 / 421.5 MB, free: 2.441 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02862/0.3479, allocations: 6.792 MB / 428.3 MB, free: 11.8 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.19/11.53, allocations: 12.06 kB / 428.3 MB, free: 11.79 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp_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_InvertingAmp.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/InvertingAmp/InvertingAmp.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches