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.001729/0.001729, allocations: 112.5 kB / 17.06 MB, free: 5.945 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.002176/0.002176, allocations: 196.1 kB / 18.01 MB, free: 5.027 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.583/1.583, allocations: 222.9 MB / 241.7 MB, free: 15.06 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001402/0.001402, allocations: 43.94 kB / 351.3 MB, free: 3.207 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4802/0.4816, allocations: 49.44 MB / 400.8 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.004587/0.4863, allocations: 2.933 MB / 403.7 MB, free: 5.918 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001325/0.4876, allocations: 0.7206 MB / 404.4 MB, free: 5.191 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001593/0.4878, allocations: 4 kB / 404.4 MB, free: 5.188 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001929/0.488, allocations: 51.5 kB / 404.5 MB, free: 5.137 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000191/0.4882, allocations: 107.2 kB / 404.6 MB, free: 5.031 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003202/0.4885, allocations: 111.8 kB / 404.7 MB, free: 4.922 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004312/0.489, allocations: 418.4 kB / 405.1 MB, free: 4.512 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002567/0.4892, allocations: 127.2 kB / 405.2 MB, free: 4.379 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001867/0.4894, allocations: 159.4 kB / 405.4 MB, free: 4.223 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002038/0.4897, allocations: 167.3 kB / 405.5 MB, free: 4.059 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.619e-05/0.4897, allocations: 40 kB / 405.6 MB, free: 4.02 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.132e-05/0.4898, allocations: 43.94 kB / 405.6 MB, free: 3.977 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.33e-05/0.4899, allocations: 79.75 kB / 405.7 MB, free: 3.898 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001946/0.4901, allocations: 179.1 kB / 405.9 MB, free: 3.723 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004702/0.4905, allocations: 450.1 kB / 406.3 MB, free: 3.285 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.935e-06/0.4906, allocations: 4 kB / 406.3 MB, free: 3.281 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.086e-06/0.4906, allocations: 0 / 406.3 MB, free: 3.281 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.053e-05/0.4906, allocations: 0 / 406.3 MB, free: 3.281 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.001298/0.4919, allocations: 0.6806 MB / 407 MB, free: 2.547 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.744e-05/0.4919, allocations: 11.89 kB / 407 MB, free: 2.535 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.832e-05/0.492, allocations: 40.69 kB / 407 MB, free: 2.496 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004087/0.4924, allocations: 295.8 kB / 407.3 MB, free: 2.168 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.759e-05/0.4925, allocations: 24.88 kB / 407.4 MB, free: 2.145 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.898e-05/0.4925, allocations: 24.38 kB / 407.4 MB, free: 2.121 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006755/0.4932, allocations: 331.9 kB / 407.7 MB, free: 1.789 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.111e-05/0.4932, allocations: 0 / 407.7 MB, free: 1.789 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.831e-05/0.4933, allocations: 8 kB / 407.7 MB, free: 1.781 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.087e-06/0.4933, allocations: 8 kB / 407.7 MB, free: 1.773 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007828/0.4941, allocations: 290 kB / 408 MB, free: 1.488 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001889/0.496, allocations: 1.155 MB / 409.2 MB, free: 264 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007991/0.4968, allocations: 246.5 kB / 409.4 MB, free: 8 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003475/0.4971, allocations: 108.9 kB / 409.5 MB, free: 15.89 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.732e-05/0.4972, allocations: 3.984 kB / 409.5 MB, free: 15.89 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000474/0.4977, allocations: 181.8 kB / 409.7 MB, free: 15.69 MB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 1.283e-06/0.4977, allocations: 0 / 409.7 MB, free: 15.69 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.002291/0.5, allocations: 0.6692 MB / 410.4 MB, free: 15 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.966e-05/0.5001, allocations: 106.8 kB / 410.5 MB, free: 14.87 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003009/0.5004, allocations: 278.7 kB / 410.7 MB, free: 14.59 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.854e-05/0.5004, allocations: 33.7 kB / 410.8 MB, free: 14.55 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001424/0.5005, allocations: 207.9 kB / 411 MB, free: 14.34 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.413e-05/0.5006, allocations: 39.69 kB / 411 MB, free: 14.3 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.26e-05/0.5007, allocations: 53.89 kB / 411.1 MB, free: 14.24 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001224/0.5008, allocations: 330.8 kB / 411.4 MB, free: 13.91 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000336/0.5012, allocations: 108.4 kB / 411.5 MB, free: 13.8 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004404/0.5016, allocations: 205.5 kB / 411.7 MB, free: 13.56 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006997/0.5023, allocations: 315.7 kB / 412 MB, free: 13.21 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.201e-06/0.5023, allocations: 4 kB / 412 MB, free: 13.2 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001223/0.5036, allocations: 474 kB / 412.5 MB, free: 12.73 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.525e-05/0.5036, allocations: 41.69 kB / 412.5 MB, free: 12.68 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.226e-06/0.5036, allocations: 4 kB / 412.5 MB, free: 12.68 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004012/0.504, allocations: 80.88 kB / 412.6 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002064/0.5043, allocations: 47.89 kB / 412.6 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002699/0.507, allocations: 1.986 MB / 414.6 MB, free: 10.42 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003662/0.5074, allocations: 64.05 kB / 414.7 MB, free: 10.36 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.904e-05/0.5074, allocations: 12 kB / 414.7 MB, free: 10.35 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.0002058/0.5076, allocations: 157.6 kB / 414.8 MB, free: 10.18 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.083e-05/0.5077, allocations: 23.86 kB / 414.9 MB, free: 10.16 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.509e-05/0.5077, allocations: 29.86 kB / 414.9 MB, free: 10.12 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.5077, allocations: 0 / 414.9 MB, free: 10.12 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.495e-06/0.5078, allocations: 0 / 414.9 MB, free: 10.12 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.5078, allocations: 0 / 414.9 MB, free: 10.12 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003397/0.5081, allocations: 333.3 kB / 415.2 MB, free: 9.75 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.5081, allocations: 7.922 kB / 415.2 MB, free: 9.742 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001336/0.5083, allocations: 19.98 kB / 415.3 MB, free: 9.723 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002869/0.5086, allocations: 84.8 kB / 415.3 MB, free: 9.637 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.462e-05/0.5086, allocations: 0 / 415.3 MB, free: 9.637 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002309/0.5109, allocations: 1.813 MB / 417.1 MB, free: 7.68 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.5109, allocations: 0 / 417.1 MB, free: 7.68 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001094/0.512, allocations: 373.6 kB / 417.5 MB, free: 7.293 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001018/0.5121, allocations: 100.9 kB / 417.6 MB, free: 7.176 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.89e-05/0.5122, allocations: 8 kB / 417.6 MB, free: 7.168 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002842/0.5125, allocations: 27.95 kB / 417.6 MB, free: 7.141 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001091/0.5126, allocations: 27.97 kB / 417.7 MB, free: 7.113 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.374e-05/0.5126, allocations: 0 / 417.7 MB, free: 7.113 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002424/0.5129, allocations: 213.8 kB / 417.9 MB, free: 6.906 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5129, allocations: 0 / 417.9 MB, free: 6.906 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004245/0.5133, allocations: 83.84 kB / 418 MB, free: 6.824 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.0002229/0.5135, allocations: 99.25 kB / 418.1 MB, free: 6.715 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001134/0.5147, allocations: 425.8 kB / 418.5 MB, free: 6.273 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.614e-06/0.5147, allocations: 0 / 418.5 MB, free: 6.273 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004782/0.5152, allocations: 247.1 kB / 418.7 MB, free: 6.02 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003626/0.5155, allocations: 55.73 kB / 418.8 MB, free: 5.965 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001061/0.5166, allocations: 492 kB / 419.3 MB, free: 5.465 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003392/0.517, allocations: 0.7596 MB / 420 MB, free: 4.676 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001062/0.5171, allocations: 34.27 kB / 420 MB, free: 4.645 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.876e-05/0.5172, allocations: 19.44 kB / 420.1 MB, free: 4.629 MB / 334.1 MB Notification: Performance of SimCode: time 3.31e-07/0.5172, allocations: 0 / 420.1 MB, free: 4.629 MB / 334.1 MB Notification: Performance of Templates: time 0.008725/0.5259, allocations: 4.171 MB / 424.2 MB, free: 0.4961 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