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.0014/0.001399, allocations: 112.8 kB / 17.06 MB, free: 5.969 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.001521/0.001521, 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.366/1.366, allocations: 222.9 MB / 241.7 MB, free: 15.1 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009668/0.000967, allocations: 51.91 kB / 350.8 MB, free: 3.719 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2566/0.2576, allocations: 49.42 MB / 400.2 MB, free: 8.402 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.00384/0.2615, allocations: 2.798 MB / 403 MB, free: 6.004 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001347/0.2629, allocations: 0.6349 MB / 403.7 MB, free: 5.363 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001587/0.263, allocations: 4 kB / 403.7 MB, free: 5.359 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001456/0.2632, allocations: 47.56 kB / 403.7 MB, free: 5.312 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000195/0.2634, allocations: 91.19 kB / 403.8 MB, free: 5.223 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002632/0.2637, allocations: 99.77 kB / 403.9 MB, free: 5.125 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003753/0.2641, allocations: 370.5 kB / 404.3 MB, free: 4.762 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000228/0.2643, allocations: 126.9 kB / 404.4 MB, free: 4.633 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001673/0.2645, allocations: 147.4 kB / 404.5 MB, free: 4.488 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001889/0.2647, allocations: 163.3 kB / 404.7 MB, free: 4.328 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.362e-05/0.2647, allocations: 36 kB / 404.7 MB, free: 4.293 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.441e-05/0.2648, allocations: 32 kB / 404.8 MB, free: 4.262 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.135e-05/0.2649, allocations: 75.7 kB / 404.8 MB, free: 4.188 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001815/0.2651, allocations: 159.2 kB / 405 MB, free: 4.031 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000404/0.2655, allocations: 377.5 kB / 405.4 MB, free: 3.664 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.055e-06/0.2655, allocations: 4 kB / 405.4 MB, free: 3.66 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.2655, allocations: 0 / 405.4 MB, free: 3.66 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.951e-06/0.2655, allocations: 0 / 405.4 MB, free: 3.66 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.001145/0.2667, allocations: 0.665 MB / 406 MB, free: 2.941 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.519e-05/0.2667, allocations: 12.03 kB / 406.1 MB, free: 2.93 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.145e-05/0.2668, allocations: 58.73 kB / 406.1 MB, free: 2.863 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.622e-05/0.2668, allocations: 32.75 kB / 406.1 MB, free: 2.832 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003412/0.2672, allocations: 284.7 kB / 406.4 MB, free: 2.512 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.474e-05/0.2672, allocations: 16.94 kB / 406.4 MB, free: 2.496 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.973e-05/0.2673, allocations: 24.38 kB / 406.5 MB, free: 2.473 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006541/0.2679, allocations: 307.5 kB / 406.8 MB, free: 2.164 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/0.2679, allocations: 0 / 406.8 MB, free: 2.164 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.106e-05/0.268, allocations: 12 kB / 406.8 MB, free: 2.152 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.224e-06/0.268, allocations: 4 kB / 406.8 MB, free: 2.148 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007707/0.2688, allocations: 253.6 kB / 407 MB, free: 1.898 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001591/0.2704, allocations: 1.082 MB / 408.1 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000751/0.2711, allocations: 214.6 kB / 408.3 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003014/0.2714, allocations: 92.8 kB / 408.4 MB, free: 424 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.118e-05/0.2715, allocations: 4 kB / 408.4 MB, free: 420 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004291/0.2719, allocations: 173.7 kB / 408.6 MB, free: 224 kB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 1.253e-06/0.2719, allocations: 0 / 408.6 MB, free: 224 kB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.002033/0.274, allocations: 0.5029 MB / 409.1 MB, free: 15.69 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.164e-05/0.274, allocations: 106.8 kB / 409.2 MB, free: 15.56 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002823/0.2743, allocations: 290.6 kB / 409.5 MB, free: 15.27 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.626e-05/0.2744, allocations: 29.7 kB / 409.5 MB, free: 15.23 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001184/0.2745, allocations: 207.9 kB / 409.7 MB, free: 15.03 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.551e-05/0.2745, allocations: 47.61 kB / 409.7 MB, free: 14.98 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.254e-05/0.2746, allocations: 53.89 kB / 409.8 MB, free: 14.92 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000102/0.2747, allocations: 334.8 kB / 410.1 MB, free: 14.58 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000319/0.2751, allocations: 92.16 kB / 410.2 MB, free: 14.49 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003762/0.2754, allocations: 206.1 kB / 410.4 MB, free: 14.24 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006542/0.2761, allocations: 309.4 kB / 410.7 MB, free: 13.89 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.559e-06/0.2761, allocations: 4 kB / 410.7 MB, free: 13.88 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.00115/0.2773, allocations: 427.8 kB / 411.1 MB, free: 13.45 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.32e-05/0.2773, allocations: 33.7 kB / 411.2 MB, free: 13.41 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.075e-05/0.2773, allocations: 11.92 kB / 411.2 MB, free: 13.4 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003255/0.2777, allocations: 68.81 kB / 411.3 MB, free: 13.33 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002044/0.2779, allocations: 51.95 kB / 411.3 MB, free: 13.28 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002189/0.2801, allocations: 1.717 MB / 413 MB, free: 11.43 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003414/0.2804, allocations: 51.88 kB / 413.1 MB, free: 11.38 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.407e-05/0.2805, allocations: 15.98 kB / 413.1 MB, free: 11.36 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.0001405/0.2806, allocations: 149.7 kB / 413.2 MB, free: 11.2 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.581e-05/0.2807, allocations: 23.86 kB / 413.3 MB, free: 11.18 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.605e-05/0.2807, allocations: 25.7 kB / 413.3 MB, free: 11.15 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.2807, allocations: 0 / 413.3 MB, free: 11.15 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.492e-06/0.2807, allocations: 0 / 413.3 MB, free: 11.15 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.806e-06/0.2807, allocations: 0 / 413.3 MB, free: 11.15 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002467/0.281, allocations: 309.4 kB / 413.6 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-06/0.281, allocations: 0 / 413.6 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001272/0.2811, allocations: 19.98 kB / 413.6 MB, free: 10.78 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002529/0.2814, allocations: 64.98 kB / 413.7 MB, free: 10.71 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.643e-05/0.2814, allocations: 12 kB / 413.7 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002074/0.2835, allocations: 1.696 MB / 415.4 MB, free: 8.867 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.2835, allocations: 0 / 415.4 MB, free: 8.867 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009849/0.2845, allocations: 325.4 kB / 415.7 MB, free: 8.527 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000108/0.2846, allocations: 112.9 kB / 415.8 MB, free: 8.398 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.619e-05/0.2847, allocations: 4 kB / 415.8 MB, free: 8.395 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002436/0.2849, allocations: 27.97 kB / 415.8 MB, free: 8.367 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.808e-05/0.285, allocations: 19.97 kB / 415.9 MB, free: 8.348 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.537e-05/0.285, allocations: 11.94 kB / 415.9 MB, free: 8.336 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001903/0.2852, allocations: 205.9 kB / 416.1 MB, free: 8.133 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2852, allocations: 0 / 416.1 MB, free: 8.133 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003338/0.2856, allocations: 75.89 kB / 416.1 MB, free: 8.059 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.001285/0.2869, allocations: 0.8568 MB / 417 MB, free: 7.172 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009175/0.2878, allocations: 409.1 kB / 417.4 MB, free: 6.75 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/0.2878, allocations: 4 kB / 417.4 MB, free: 6.746 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004323/0.2883, allocations: 231.4 kB / 417.6 MB, free: 6.508 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002736/0.2885, allocations: 41.06 kB / 417.7 MB, free: 6.469 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004949/0.2935, allocations: 3.007 MB / 420.7 MB, free: 3.277 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003278/0.2939, allocations: 0.7557 MB / 421.4 MB, free: 2.496 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001189/0.294, allocations: 22.3 kB / 421.5 MB, free: 2.477 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001215/0.2941, allocations: 79.41 kB / 421.5 MB, free: 2.402 MB / 334.1 MB Notification: Performance of SimCode: time 3.41e-07/0.2941, allocations: 0 / 421.5 MB, free: 2.402 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02775/0.3219, allocations: 6.798 MB / 428.3 MB, free: 11.75 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.47/11.79, allocations: 11.22 kB / 428.3 MB, free: 11.75 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