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: translateModel(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|gain.opAmp.out.v|gain.opAmp.out.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|gain.opAmp.out.v|gain.opAmp.out.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001268/0.001268, allocations: 108.8 kB / 17.06 MB, free: 6.137 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.001274/0.001274, allocations: 191 kB / 18 MB, free: 5.219 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.504/1.504, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001303/0.001303, allocations: 59.89 kB / 351.3 MB, free: 3.211 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3945/0.3958, allocations: 49.43 MB / 400.8 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.004314/0.4001, allocations: 2.941 MB / 403.7 MB, free: 5.926 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001463/0.4016, allocations: 0.7245 MB / 404.4 MB, free: 5.195 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001731/0.4018, allocations: 7.938 kB / 404.4 MB, free: 5.188 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001926/0.4021, allocations: 51.5 kB / 404.5 MB, free: 5.137 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002021/0.4023, allocations: 99.19 kB / 404.6 MB, free: 5.039 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003221/0.4026, allocations: 123.8 kB / 404.7 MB, free: 4.918 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004125/0.403, allocations: 418.4 kB / 405.1 MB, free: 4.508 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002481/0.4033, allocations: 123.3 kB / 405.2 MB, free: 4.379 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001864/0.4035, allocations: 155.4 kB / 405.4 MB, free: 4.227 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002114/0.4037, allocations: 179.3 kB / 405.6 MB, free: 4.051 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.769e-05/0.4038, allocations: 43.94 kB / 405.6 MB, free: 4.008 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.269e-05/0.4038, allocations: 40 kB / 405.6 MB, free: 3.969 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.864e-05/0.4039, allocations: 79.75 kB / 405.7 MB, free: 3.891 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001638/0.4041, allocations: 171.2 kB / 405.9 MB, free: 3.723 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004549/0.4045, allocations: 451.6 kB / 406.3 MB, free: 3.285 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.4046, allocations: 0 / 406.3 MB, free: 3.285 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.4046, allocations: 0 / 406.3 MB, free: 3.285 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.784e-06/0.4046, allocations: 0 / 406.3 MB, free: 3.285 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.00132/0.4059, allocations: 0.6809 MB / 407 MB, free: 2.551 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.02e-05/0.406, allocations: 11.89 kB / 407 MB, free: 2.539 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.038e-05/0.406, allocations: 36.47 kB / 407 MB, free: 2.504 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004183/0.4065, allocations: 299.7 kB / 407.3 MB, free: 2.172 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.155e-05/0.4065, allocations: 16.94 kB / 407.4 MB, free: 2.156 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.516e-05/0.4066, allocations: 24.38 kB / 407.4 MB, free: 2.133 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007346/0.4073, allocations: 331.9 kB / 407.7 MB, free: 1.801 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.243e-05/0.4073, allocations: 0 / 407.7 MB, free: 1.801 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.376e-05/0.4074, allocations: 12 kB / 407.7 MB, free: 1.789 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.257e-06/0.4074, allocations: 4 kB / 407.7 MB, free: 1.785 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008441/0.4082, allocations: 290 kB / 408 MB, free: 1.5 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001923/0.4102, allocations: 1.146 MB / 409.1 MB, free: 284 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008843/0.4111, allocations: 250.5 kB / 409.4 MB, free: 24 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003768/0.4114, allocations: 112.8 kB / 409.5 MB, free: 15.91 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.07e-05/0.4115, allocations: 0 / 409.5 MB, free: 15.91 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005225/0.412, allocations: 185.8 kB / 409.7 MB, free: 15.71 MB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 1.843e-06/0.412, allocations: 0 / 409.7 MB, free: 15.71 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.002525/0.4146, allocations: 0.659 MB / 410.3 MB, free: 15.02 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.804e-05/0.4147, allocations: 110.8 kB / 410.5 MB, free: 14.89 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003611/0.415, allocations: 286.6 kB / 410.7 MB, free: 14.6 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.176e-05/0.4151, allocations: 29.7 kB / 410.8 MB, free: 14.56 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001496/0.4152, allocations: 195.6 kB / 411 MB, free: 14.37 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.263e-05/0.4153, allocations: 43.38 kB / 411 MB, free: 14.32 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001026/0.4154, allocations: 53.94 kB / 411 MB, free: 14.26 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001278/0.4155, allocations: 330.8 kB / 411.4 MB, free: 13.93 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003561/0.4159, allocations: 108.4 kB / 411.5 MB, free: 13.82 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004327/0.4163, allocations: 205.5 kB / 411.7 MB, free: 13.58 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007262/0.4171, allocations: 315.6 kB / 412 MB, free: 13.23 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.4171, allocations: 0 / 412 MB, free: 13.23 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001284/0.4184, allocations: 471.7 kB / 412.4 MB, free: 12.75 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.844e-05/0.4184, allocations: 44.14 kB / 412.5 MB, free: 12.7 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/0.4185, allocations: 0 / 412.5 MB, free: 12.7 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004096/0.4189, allocations: 84.86 kB / 412.6 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002234/0.4191, allocations: 43.97 kB / 412.6 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003132/0.4222, allocations: 2.002 MB / 414.6 MB, free: 10.43 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004234/0.4227, allocations: 51.8 kB / 414.7 MB, free: 10.38 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.934e-05/0.4227, allocations: 15.94 kB / 414.7 MB, free: 10.37 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.0002695/0.423, allocations: 157.7 kB / 414.8 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.151e-05/0.4231, allocations: 27.72 kB / 414.9 MB, free: 10.18 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.297e-05/0.4231, allocations: 21.83 kB / 414.9 MB, free: 10.15 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.088e-06/0.4231, allocations: 4 kB / 414.9 MB, free: 10.14 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.4231, allocations: 0 / 414.9 MB, free: 10.14 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.4232, allocations: 0 / 414.9 MB, free: 10.14 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003784/0.4235, allocations: 329.3 kB / 415.2 MB, free: 9.773 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.4236, allocations: 0 / 415.2 MB, free: 9.773 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001397/0.4237, allocations: 19.97 kB / 415.2 MB, free: 9.754 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002948/0.424, allocations: 80.81 kB / 415.3 MB, free: 9.672 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.195e-05/0.424, allocations: 7.984 kB / 415.3 MB, free: 9.664 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002529/0.4266, allocations: 1.808 MB / 417.1 MB, free: 7.711 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.4266, allocations: 64 / 417.1 MB, free: 7.711 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001125/0.4277, allocations: 377.2 kB / 417.5 MB, free: 7.324 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.79e-05/0.4278, allocations: 104.8 kB / 417.6 MB, free: 7.203 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.199e-05/0.4279, allocations: 7.984 kB / 417.6 MB, free: 7.195 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002468/0.4281, allocations: 31.97 kB / 417.6 MB, free: 7.164 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.649e-05/0.4282, allocations: 23.97 kB / 417.7 MB, free: 7.141 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.273e-05/0.4283, allocations: 4 kB / 417.7 MB, free: 7.137 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002112/0.4285, allocations: 201.9 kB / 417.9 MB, free: 6.941 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4285, allocations: 0 / 417.9 MB, free: 6.941 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004308/0.4289, allocations: 79.84 kB / 417.9 MB, free: 6.863 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.0002091/0.4291, allocations: 111.1 kB / 418 MB, free: 6.742 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001131/0.4303, allocations: 437.8 kB / 418.5 MB, free: 6.289 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.4303, allocations: 0 / 418.5 MB, free: 6.289 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004987/0.4308, allocations: 234.5 kB / 418.7 MB, free: 6.047 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004143/0.4312, allocations: 53.16 kB / 418.8 MB, free: 5.992 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001216/0.4324, allocations: 488 kB / 419.2 MB, free: 5.492 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003631/0.4328, allocations: 0.7518 MB / 420 MB, free: 4.711 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000115/0.4329, allocations: 30.28 kB / 420 MB, free: 4.684 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.294e-05/0.433, allocations: 23.44 kB / 420 MB, free: 4.664 MB / 334.1 MB Notification: Performance of SimCode: time 4.21e-07/0.433, allocations: 0 / 420 MB, free: 4.664 MB / 334.1 MB Notification: Performance of Templates: time 0.009026/0.4421, allocations: 4.177 MB / 424.2 MB, free: 0.5234 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.makefile (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 & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/InvertingAmplifier/InvertingAmplifier.csv","/var/lib/jenkins/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