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.001164/0.001164, allocations: 109 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.001165/0.001165, 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.323/1.323, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001062/0.001062, allocations: 51.92 kB / 350.8 MB, free: 3.742 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2667/0.2678, allocations: 49.45 MB / 400.3 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.00385/0.2717, allocations: 2.938 MB / 403.2 MB, free: 5.887 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001156/0.2728, allocations: 0.7207 MB / 403.9 MB, free: 5.16 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000128/0.273, allocations: 4 kB / 403.9 MB, free: 5.156 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001523/0.2732, allocations: 51.5 kB / 404 MB, free: 5.105 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000179/0.2733, allocations: 103.2 kB / 404.1 MB, free: 5.004 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002666/0.2736, allocations: 111.8 kB / 404.2 MB, free: 4.895 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004236/0.2741, allocations: 430.4 kB / 404.6 MB, free: 4.473 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002208/0.2743, allocations: 123.3 kB / 404.7 MB, free: 4.344 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001575/0.2745, allocations: 159.4 kB / 404.9 MB, free: 4.188 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001878/0.2746, allocations: 167.3 kB / 405.1 MB, free: 4.023 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.506e-05/0.2747, allocations: 40 kB / 405.1 MB, free: 3.984 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.843e-05/0.2748, allocations: 47.94 kB / 405.1 MB, free: 3.938 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.262e-05/0.2748, allocations: 75.75 kB / 405.2 MB, free: 3.863 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001564/0.275, allocations: 183.1 kB / 405.4 MB, free: 3.684 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004302/0.2754, allocations: 449.3 kB / 405.8 MB, free: 3.246 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.656e-06/0.2755, allocations: 4 kB / 405.8 MB, free: 3.242 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.2755, allocations: 0 / 405.8 MB, free: 3.242 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.923e-06/0.2755, allocations: 0 / 405.8 MB, free: 3.242 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.00119/0.2767, allocations: 0.6728 MB / 406.5 MB, free: 2.516 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.901e-05/0.2767, allocations: 12.03 kB / 406.5 MB, free: 2.504 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.771e-05/0.2768, allocations: 62.72 kB / 406.6 MB, free: 2.434 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.436e-05/0.2768, allocations: 32.75 kB / 406.6 MB, free: 2.402 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003943/0.2772, allocations: 307.7 kB / 406.9 MB, free: 2.062 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.096e-05/0.2773, allocations: 20.94 kB / 406.9 MB, free: 2.043 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.73e-05/0.2773, allocations: 20.38 kB / 407 MB, free: 2.023 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006578/0.278, allocations: 327.8 kB / 407.3 MB, free: 1.695 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.278e-05/0.278, allocations: 3.984 kB / 407.3 MB, free: 1.691 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.837e-05/0.278, allocations: 12 kB / 407.3 MB, free: 1.68 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.032e-05/0.2781, allocations: 4 kB / 407.3 MB, free: 1.676 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007639/0.2788, allocations: 289.9 kB / 407.6 MB, free: 1.391 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001772/0.2806, allocations: 1.151 MB / 408.7 MB, free: 168 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000793/0.2814, allocations: 254.6 kB / 409 MB, free: 15.91 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000392/0.2818, allocations: 108.8 kB / 409.1 MB, free: 15.8 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.526e-05/0.2819, allocations: 0 / 409.1 MB, free: 15.8 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004417/0.2823, allocations: 185.8 kB / 409.3 MB, free: 15.59 MB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 1.212e-06/0.2823, allocations: 0 / 409.3 MB, free: 15.59 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.002181/0.2845, allocations: 0.6611 MB / 409.9 MB, free: 14.91 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.115e-05/0.2846, allocations: 118.8 kB / 410 MB, free: 14.77 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002812/0.2849, allocations: 274.7 kB / 410.3 MB, free: 14.49 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.666e-05/0.2849, allocations: 33.7 kB / 410.3 MB, free: 14.45 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001323/0.2851, allocations: 200 kB / 410.5 MB, free: 14.25 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.842e-05/0.2851, allocations: 47.62 kB / 410.6 MB, free: 14.2 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.19e-05/0.2852, allocations: 49.89 kB / 410.6 MB, free: 14.14 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001236/0.2853, allocations: 338.8 kB / 411 MB, free: 13.8 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003315/0.2857, allocations: 104.4 kB / 411.1 MB, free: 13.7 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004011/0.2861, allocations: 206.2 kB / 411.3 MB, free: 13.46 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006727/0.2868, allocations: 314.1 kB / 411.6 MB, free: 13.11 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.2868, allocations: 0 / 411.6 MB, free: 13.11 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001188/0.288, allocations: 475.7 kB / 412 MB, free: 12.63 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.366e-05/0.288, allocations: 29.7 kB / 412.1 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.288, allocations: 7.938 kB / 412.1 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004035/0.2884, allocations: 88.86 kB / 412.2 MB, free: 12.5 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001948/0.2886, allocations: 51.89 kB / 412.2 MB, free: 12.45 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002449/0.2911, allocations: 2.002 MB / 414.2 MB, free: 10.3 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003235/0.2914, allocations: 47.81 kB / 414.3 MB, free: 10.26 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.563e-05/0.2915, allocations: 15.88 kB / 414.3 MB, free: 10.24 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.0001626/0.2916, allocations: 161.6 kB / 414.4 MB, free: 10.07 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.471e-05/0.2917, allocations: 19.86 kB / 414.5 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.942e-05/0.2917, allocations: 33.89 kB / 414.5 MB, free: 10.02 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.2917, allocations: 0 / 414.5 MB, free: 10.02 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.2918, allocations: 4 kB / 414.5 MB, free: 10.01 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.848e-06/0.2918, allocations: 0 / 414.5 MB, free: 10.01 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002869/0.2921, allocations: 313.5 kB / 414.8 MB, free: 9.656 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.2921, allocations: 3.984 kB / 414.8 MB, free: 9.652 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001268/0.2922, allocations: 27.97 kB / 414.8 MB, free: 9.625 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002686/0.2925, allocations: 88.86 kB / 414.9 MB, free: 9.535 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.696e-05/0.2925, allocations: 4 kB / 414.9 MB, free: 9.531 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002179/0.2947, allocations: 1.809 MB / 416.7 MB, free: 7.578 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.2947, allocations: 3.938 kB / 416.7 MB, free: 7.574 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00101/0.2957, allocations: 365.7 kB / 417.1 MB, free: 7.195 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.325e-05/0.2958, allocations: 104.9 kB / 417.2 MB, free: 7.074 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.635e-05/0.2958, allocations: 4 kB / 417.2 MB, free: 7.07 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002308/0.2961, allocations: 39.95 kB / 417.2 MB, free: 7.031 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.093e-05/0.2962, allocations: 15.98 kB / 417.3 MB, free: 7.016 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.388e-05/0.2962, allocations: 8.109 kB / 417.3 MB, free: 7.008 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001949/0.2964, allocations: 202 kB / 417.5 MB, free: 6.812 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.2964, allocations: 0 / 417.5 MB, free: 6.812 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003581/0.2968, allocations: 79.84 kB / 417.5 MB, free: 6.734 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.001382/0.2981, allocations: 0.9014 MB / 418.4 MB, free: 5.801 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009452/0.2991, allocations: 437.8 kB / 418.9 MB, free: 5.348 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.2991, allocations: 0.6875 kB / 418.9 MB, free: 5.348 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000474/0.2996, allocations: 246.4 kB / 419.1 MB, free: 5.094 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003239/0.2999, allocations: 61.52 kB / 419.2 MB, free: 5.035 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0052/0.3051, allocations: 3.108 MB / 422.3 MB, free: 1.766 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003571/0.3055, allocations: 0.7518 MB / 423 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001213/0.3057, allocations: 34.27 kB / 423.1 MB, free: 0.957 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001298/0.3058, allocations: 83.41 kB / 423.1 MB, free: 0.875 MB / 334.1 MB Notification: Performance of SimCode: time 6.51e-07/0.3058, allocations: 0 / 423.1 MB, free: 0.875 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02903/0.3348, allocations: 6.854 MB / 430 MB, free: 10.21 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11/11.33, allocations: 8.625 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