Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.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.NonInvertingAmplifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_NonInvertingAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_NonInvertingAmplifier",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.001447/0.001447, allocations: 107.8 kB / 17.06 MB, free: 6.02 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.001599/0.001599, allocations: 191 kB / 18 MB, free: 5.102 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.265/1.265, allocations: 222.9 MB / 241.7 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001508/0.001508, allocations: 39.94 kB / 350.8 MB, free: 3.742 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2764/0.278, allocations: 49.44 MB / 400.3 MB, free: 8.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier): time 0.003775/0.2818, allocations: 2.939 MB / 403.2 MB, free: 5.988 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001123/0.2829, allocations: 0.7245 MB / 403.9 MB, free: 5.258 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000127/0.2831, allocations: 4 kB / 403.9 MB, free: 5.254 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001599/0.2833, allocations: 55.5 kB / 404 MB, free: 5.199 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001931/0.2835, allocations: 99.12 kB / 404.1 MB, free: 5.102 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002687/0.2837, allocations: 119.9 kB / 404.2 MB, free: 4.984 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004024/0.2841, allocations: 418.4 kB / 404.6 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002229/0.2844, allocations: 123.2 kB / 404.7 MB, free: 4.445 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001716/0.2846, allocations: 163.4 kB / 404.9 MB, free: 4.285 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001887/0.2847, allocations: 167.3 kB / 405.1 MB, free: 4.121 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.715e-05/0.2848, allocations: 47.92 kB / 405.1 MB, free: 4.074 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.433e-05/0.2849, allocations: 44 kB / 405.1 MB, free: 4.031 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.226e-05/0.285, allocations: 75.75 kB / 405.2 MB, free: 3.957 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001648/0.2851, allocations: 175.2 kB / 405.4 MB, free: 3.785 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004122/0.2856, allocations: 449.3 kB / 405.8 MB, free: 3.348 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.2856, allocations: 0 / 405.8 MB, free: 3.348 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.2856, allocations: 0 / 405.8 MB, free: 3.348 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.267e-06/0.2856, allocations: 0 / 405.8 MB, free: 3.348 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.001241/0.2868, allocations: 0.6874 MB / 406.5 MB, free: 2.609 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.418e-05/0.2869, allocations: 8.031 kB / 406.5 MB, free: 2.602 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.2e-05/0.2869, allocations: 62.66 kB / 406.6 MB, free: 2.531 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.798e-05/0.287, allocations: 44.69 kB / 406.6 MB, free: 2.488 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003794/0.2874, allocations: 299.8 kB / 406.9 MB, free: 2.156 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.241e-05/0.2874, allocations: 20.94 kB / 406.9 MB, free: 2.137 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.186e-05/0.2875, allocations: 24.38 kB / 407 MB, free: 2.113 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006927/0.2882, allocations: 327.7 kB / 407.3 MB, free: 1.785 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.322e-05/0.2882, allocations: 4 kB / 407.3 MB, free: 1.781 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.88e-05/0.2882, allocations: 8 kB / 407.3 MB, free: 1.773 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.086e-06/0.2882, allocations: 8 kB / 407.3 MB, free: 1.766 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007646/0.289, allocations: 282 kB / 407.6 MB, free: 1.488 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001669/0.2907, allocations: 1.147 MB / 408.7 MB, free: 272 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008206/0.2915, allocations: 258.5 kB / 409 MB, free: 4 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003428/0.2919, allocations: 116.7 kB / 409.1 MB, free: 15.89 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.3e-05/0.2919, allocations: 0 / 409.1 MB, free: 15.89 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004579/0.2924, allocations: 181.9 kB / 409.3 MB, free: 15.69 MB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 1.272e-06/0.2924, allocations: 0 / 409.3 MB, free: 15.69 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.002288/0.2947, allocations: 0.6691 MB / 409.9 MB, free: 14.99 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.852e-05/0.2948, allocations: 102.8 kB / 410 MB, free: 14.87 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002889/0.2951, allocations: 286.6 kB / 410.3 MB, free: 14.58 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.695e-05/0.2951, allocations: 33.7 kB / 410.3 MB, free: 14.54 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001244/0.2952, allocations: 200 kB / 410.5 MB, free: 14.34 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.082e-05/0.2953, allocations: 51.62 kB / 410.6 MB, free: 14.29 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.572e-05/0.2954, allocations: 49.88 kB / 410.6 MB, free: 14.23 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001141/0.2955, allocations: 343 kB / 411 MB, free: 13.89 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003455/0.2958, allocations: 100.2 kB / 411.1 MB, free: 13.79 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004199/0.2963, allocations: 209.9 kB / 411.3 MB, free: 13.54 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000705/0.297, allocations: 326.9 kB / 411.6 MB, free: 13.18 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.297, allocations: 4 kB / 411.6 MB, free: 13.17 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.00124/0.2982, allocations: 491.7 kB / 412.1 MB, free: 12.68 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.118e-05/0.2983, allocations: 29.7 kB / 412.1 MB, free: 12.64 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/0.2983, allocations: 4 kB / 412.1 MB, free: 12.64 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003711/0.2987, allocations: 88.78 kB / 412.2 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002159/0.2989, allocations: 51.94 kB / 412.3 MB, free: 12.5 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002907/0.3018, allocations: 2.056 MB / 414.3 MB, free: 10.3 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003602/0.3022, allocations: 55.81 kB / 414.4 MB, free: 10.25 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.625e-05/0.3022, allocations: 15.94 kB / 414.4 MB, free: 10.23 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (24): * Single equations (assignments): 22 * 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.0001645/0.3024, allocations: 163.4 kB / 414.5 MB, free: 10.06 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.546e-05/0.3025, allocations: 27.81 kB / 414.6 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.833e-05/0.3025, allocations: 25.83 kB / 414.6 MB, free: 10 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.3025, allocations: 0 / 414.6 MB, free: 10 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.3025, allocations: 4 kB / 414.6 MB, free: 10 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.3025, allocations: 0 / 414.6 MB, free: 10 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002787/0.3028, allocations: 321.4 kB / 414.9 MB, free: 9.637 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.3028, allocations: 4 kB / 414.9 MB, free: 9.633 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001384/0.303, allocations: 19.97 kB / 414.9 MB, free: 9.613 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002771/0.3033, allocations: 88.73 kB / 415 MB, free: 9.523 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.478e-05/0.3033, allocations: 4 kB / 415 MB, free: 9.52 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002453/0.3058, allocations: 1.986 MB / 417 MB, free: 7.395 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.3058, allocations: 8.062 kB / 417 MB, free: 7.387 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00102/0.3068, allocations: 361.5 kB / 417.4 MB, free: 7.012 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.504e-05/0.3069, allocations: 105 kB / 417.5 MB, free: 6.891 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.739e-05/0.3069, allocations: 3.938 kB / 417.5 MB, free: 6.887 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002459/0.3072, allocations: 39.95 kB / 417.5 MB, free: 6.848 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.344e-05/0.3073, allocations: 15.98 kB / 417.5 MB, free: 6.832 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.251e-05/0.3073, allocations: 11.92 kB / 417.5 MB, free: 6.82 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000192/0.3075, allocations: 198 kB / 417.7 MB, free: 6.629 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3075, allocations: 0 / 417.7 MB, free: 6.629 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003956/0.3079, allocations: 79.84 kB / 417.8 MB, free: 6.551 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.001384/0.3093, allocations: 0.9058 MB / 418.7 MB, free: 5.609 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001303/0.3106, allocations: 0.5081 MB / 419.2 MB, free: 5.078 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.3106, allocations: 0 / 419.2 MB, free: 5.078 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004666/0.3111, allocations: 243.2 kB / 419.5 MB, free: 4.828 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003144/0.3114, allocations: 36.55 kB / 419.5 MB, free: 4.789 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007158/0.3186, allocations: 3.589 MB / 423.1 MB, free: 1.031 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000311/0.3189, allocations: 0.7558 MB / 423.8 MB, free: 256 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001284/0.319, allocations: 30.31 kB / 423.9 MB, free: 228 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001217/0.3192, allocations: 83.41 kB / 424 MB, free: 144 kB / 334.1 MB Notification: Performance of SimCode: time 6.02e-07/0.3192, allocations: 4 kB / 424 MB, free: 140 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02956/0.3487, allocations: 6.84 MB / 430.8 MB, free: 9.52 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.13/11.47, allocations: 4.688 kB / 430.8 MB, free: 9.516 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier_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_NonInvertingAmplifier.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/NonInvertingAmplifier/NonInvertingAmplifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches