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.001342/0.001342, allocations: 114.1 kB / 17.07 MB, free: 5.984 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.001246/0.001246, allocations: 193.4 kB / 18 MB, free: 5.066 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.39/1.39, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001423/0.001423, allocations: 47.92 kB / 350.8 MB, free: 3.723 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2559/0.2573, allocations: 49.45 MB / 400.3 MB, free: 8.402 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.004509/0.2619, allocations: 2.937 MB / 403.2 MB, free: 5.848 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001623/0.2635, allocations: 0.7246 MB / 403.9 MB, free: 5.117 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001609/0.2637, allocations: 4 kB / 403.9 MB, free: 5.113 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001837/0.2639, allocations: 47.5 kB / 404 MB, free: 5.066 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002016/0.2641, allocations: 99.19 kB / 404.1 MB, free: 4.969 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003155/0.2645, allocations: 111.8 kB / 404.2 MB, free: 4.859 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005203/0.265, allocations: 430.4 kB / 404.6 MB, free: 4.438 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002514/0.2653, allocations: 119.3 kB / 404.7 MB, free: 4.312 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002013/0.2655, allocations: 159.4 kB / 404.9 MB, free: 4.156 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002293/0.2657, allocations: 175.3 kB / 405.1 MB, free: 3.984 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.475e-05/0.2658, allocations: 40 kB / 405.1 MB, free: 3.945 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.347e-05/0.2658, allocations: 44 kB / 405.1 MB, free: 3.902 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.906e-05/0.2659, allocations: 79.7 kB / 405.2 MB, free: 3.824 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001782/0.2661, allocations: 175.2 kB / 405.4 MB, free: 3.652 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005028/0.2666, allocations: 449.3 kB / 405.8 MB, free: 3.215 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.63e-06/0.2666, allocations: 7.938 kB / 405.8 MB, free: 3.207 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.2667, allocations: 0 / 405.8 MB, free: 3.207 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.233e-06/0.2667, allocations: 0 / 405.8 MB, free: 3.207 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.001407/0.2681, allocations: 0.6767 MB / 406.5 MB, free: 2.477 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.445e-05/0.2681, allocations: 12.02 kB / 406.5 MB, free: 2.465 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.813e-05/0.2682, allocations: 58.73 kB / 406.6 MB, free: 2.398 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.997e-05/0.2683, allocations: 32.75 kB / 406.6 MB, free: 2.367 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004711/0.2688, allocations: 307.7 kB / 406.9 MB, free: 2.027 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.211e-05/0.2688, allocations: 20.88 kB / 406.9 MB, free: 2.008 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.728e-05/0.2689, allocations: 28.38 kB / 407 MB, free: 1.98 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007256/0.2696, allocations: 327.8 kB / 407.3 MB, free: 1.652 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.831e-05/0.2696, allocations: 7.938 kB / 407.3 MB, free: 1.645 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.891e-05/0.2696, allocations: 12 kB / 407.3 MB, free: 1.633 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.839e-06/0.2697, allocations: 8 kB / 407.3 MB, free: 1.625 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008184/0.2705, allocations: 278.1 kB / 407.6 MB, free: 1.352 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001992/0.2725, allocations: 1.158 MB / 408.7 MB, free: 120 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008927/0.2734, allocations: 246.6 kB / 409 MB, free: 15.86 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003483/0.2738, allocations: 108.8 kB / 409.1 MB, free: 15.75 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.615e-05/0.2738, allocations: 4 kB / 409.1 MB, free: 15.75 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005155/0.2743, allocations: 177.9 kB / 409.3 MB, free: 15.55 MB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 1.964e-06/0.2743, allocations: 0 / 409.3 MB, free: 15.55 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.002459/0.2768, allocations: 0.6689 MB / 409.9 MB, free: 14.86 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.851e-05/0.2769, allocations: 106.8 kB / 410 MB, free: 14.73 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003349/0.2772, allocations: 282.7 kB / 410.3 MB, free: 14.45 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.11e-05/0.2773, allocations: 29.7 kB / 410.3 MB, free: 14.41 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001583/0.2774, allocations: 204 kB / 410.5 MB, free: 14.21 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.542e-05/0.2775, allocations: 47.53 kB / 410.6 MB, free: 14.16 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.915e-05/0.2776, allocations: 53.89 kB / 410.6 MB, free: 14.1 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001682/0.2778, allocations: 330.8 kB / 411 MB, free: 13.77 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003647/0.2781, allocations: 108.4 kB / 411.1 MB, free: 13.66 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004361/0.2786, allocations: 202.2 kB / 411.3 MB, free: 13.42 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007745/0.2794, allocations: 315.7 kB / 411.6 MB, free: 13.07 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.2794, allocations: 224 / 411.6 MB, free: 13.07 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0013/0.2807, allocations: 474.2 kB / 412 MB, free: 12.59 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.002e-05/0.2807, allocations: 41.64 kB / 412.1 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.084e-05/0.2808, allocations: 7.984 kB / 412.1 MB, free: 12.54 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004066/0.2812, allocations: 80.88 kB / 412.2 MB, free: 12.46 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002104/0.2814, allocations: 51.89 kB / 412.2 MB, free: 12.41 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002904/0.2843, allocations: 1.994 MB / 414.2 MB, free: 10.27 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003367/0.2847, allocations: 51.81 kB / 414.3 MB, free: 10.22 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.937e-05/0.2847, allocations: 19.92 kB / 414.3 MB, free: 10.2 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.0001789/0.2849, allocations: 153.7 kB / 414.4 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.146e-05/0.2849, allocations: 35.89 kB / 414.5 MB, free: 10.01 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.933e-05/0.285, allocations: 21.83 kB / 414.5 MB, free: 9.98 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.285, allocations: 4 kB / 414.5 MB, free: 9.977 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.733e-06/0.285, allocations: 0 / 414.5 MB, free: 9.977 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.285, allocations: 0 / 414.5 MB, free: 9.977 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003418/0.2854, allocations: 325.4 kB / 414.8 MB, free: 9.609 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.2854, allocations: 0 / 414.8 MB, free: 9.609 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000137/0.2855, allocations: 27.91 kB / 414.8 MB, free: 9.582 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000282/0.2858, allocations: 84.8 kB / 414.9 MB, free: 9.496 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.462e-05/0.2858, allocations: 0 / 414.9 MB, free: 9.496 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002473/0.2883, allocations: 1.813 MB / 416.7 MB, free: 7.539 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.2883, allocations: 4 kB / 416.7 MB, free: 7.535 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001113/0.2894, allocations: 369.6 kB / 417.1 MB, free: 7.152 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.335e-05/0.2896, allocations: 101 kB / 417.2 MB, free: 7.035 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.617e-05/0.2896, allocations: 4 kB / 417.2 MB, free: 7.031 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002491/0.2898, allocations: 35.95 kB / 417.2 MB, free: 6.996 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.114e-05/0.2899, allocations: 19.98 kB / 417.3 MB, free: 6.977 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.709e-05/0.2899, allocations: 11.92 kB / 417.3 MB, free: 6.965 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002156/0.2902, allocations: 194 kB / 417.5 MB, free: 6.777 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.2902, allocations: 0 / 417.5 MB, free: 6.777 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003846/0.2906, allocations: 83.84 kB / 417.5 MB, free: 6.695 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.001488/0.2921, allocations: 0.9107 MB / 418.4 MB, free: 5.754 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001065/0.2931, allocations: 433.7 kB / 418.9 MB, free: 5.305 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.919e-06/0.2932, allocations: 0.6875 kB / 418.9 MB, free: 5.305 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004947/0.2937, allocations: 242.5 kB / 419.1 MB, free: 5.055 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003177/0.294, allocations: 44.47 kB / 419.2 MB, free: 5.008 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00545/0.2994, allocations: 3.112 MB / 422.3 MB, free: 1.734 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004151/0.2999, allocations: 0.7596 MB / 423 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001115/0.3, allocations: 26.28 kB / 423 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000134/0.3001, allocations: 79.41 kB / 423.1 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of SimCode: time 3.5e-07/0.3001, allocations: 0 / 423.1 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03408/0.3342, allocations: 6.861 MB / 430 MB, free: 10.18 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.72/12.06, allocations: 12.5 kB / 430 MB, free: 10.16 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