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.001057/0.001057, allocations: 89.27 kB / 16.65 MB, free: 6.59 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.001375/0.001375, allocations: 182.8 kB / 17.56 MB, free: 6.203 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.564/1.564, allocations: 223.3 MB / 241.6 MB, free: 124 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003961/0.0003961, allocations: 4 kB / 301.4 MB, free: 6.125 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1577/0.1581, allocations: 50.41 MB / 351.8 MB, free: 3.703 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.004818/0.163, allocations: 2.607 MB / 354.5 MB, free: 1.078 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001932/0.165, allocations: 0.7169 MB / 355.2 MB, free: 364 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002613/0.1653, allocations: 8 kB / 355.2 MB, free: 356 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001942/0.1655, allocations: 35.7 kB / 355.2 MB, free: 320 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002776/0.1658, allocations: 83.38 kB / 355.3 MB, free: 236 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004527/0.1663, allocations: 99.91 kB / 355.4 MB, free: 136 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005181/0.1668, allocations: 390.5 kB / 355.8 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004071/0.1672, allocations: 107.7 kB / 355.9 MB, free: 15.64 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002224/0.1675, allocations: 127.4 kB / 356 MB, free: 15.52 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002266/0.1677, allocations: 147.4 kB / 356.1 MB, free: 15.37 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.372e-05/0.1678, allocations: 16 kB / 356.2 MB, free: 15.36 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.278e-05/0.1678, allocations: 19.94 kB / 356.2 MB, free: 15.34 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.157e-05/0.1679, allocations: 55.75 kB / 356.2 MB, free: 15.28 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000232/0.1682, allocations: 180.8 kB / 356.4 MB, free: 15.1 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005575/0.1687, allocations: 418.6 kB / 356.8 MB, free: 14.69 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.124e-05/0.1687, allocations: 4 kB / 356.8 MB, free: 14.68 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.028e-06/0.1687, allocations: 0 / 356.8 MB, free: 14.68 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.975e-06/0.1688, allocations: 0 / 356.8 MB, free: 14.68 MB / 302.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.001516/0.1703, allocations: 0.6459 MB / 357.5 MB, free: 13.98 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.013e-05/0.1704, allocations: 12.03 kB / 357.5 MB, free: 13.97 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.842e-05/0.1704, allocations: 32.56 kB / 357.5 MB, free: 13.94 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004184/0.1709, allocations: 295.6 kB / 357.8 MB, free: 13.61 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.652e-05/0.1709, allocations: 20.94 kB / 357.8 MB, free: 13.59 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.056e-05/0.171, allocations: 28.36 kB / 357.9 MB, free: 13.56 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008642/0.1719, allocations: 340 kB / 358.2 MB, free: 13.22 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.785e-05/0.1719, allocations: 0 / 358.2 MB, free: 13.22 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.705e-05/0.1719, allocations: 15.94 kB / 358.2 MB, free: 13.2 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.541e-05/0.172, allocations: 7.984 kB / 358.2 MB, free: 13.2 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008975/0.1729, allocations: 318.1 kB / 358.5 MB, free: 12.89 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002304/0.1752, allocations: 1.178 MB / 359.7 MB, free: 11.63 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001009/0.1762, allocations: 282.5 kB / 360 MB, free: 11.34 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003967/0.1766, allocations: 128.7 kB / 360.1 MB, free: 11.21 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.12e-05/0.1766, allocations: 0 / 360.1 MB, free: 11.21 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005977/0.1773, allocations: 201 kB / 360.3 MB, free: 11 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.653e-06/0.1773, allocations: 0 / 360.3 MB, free: 11 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.002894/0.1802, allocations: 0.7332 MB / 361 MB, free: 10.24 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000107/0.1803, allocations: 106.8 kB / 361.1 MB, free: 10.11 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004555/0.1808, allocations: 282.6 kB / 361.4 MB, free: 9.824 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.558e-05/0.1808, allocations: 37.7 kB / 361.4 MB, free: 9.781 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000225/0.181, allocations: 203.5 kB / 361.6 MB, free: 9.578 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.296e-05/0.1811, allocations: 43.45 kB / 361.7 MB, free: 9.535 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.966e-05/0.1812, allocations: 21.7 kB / 361.7 MB, free: 9.508 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002663/0.1815, allocations: 338.8 kB / 362 MB, free: 9.168 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004026/0.1819, allocations: 120.4 kB / 362.2 MB, free: 9.047 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004497/0.1823, allocations: 221.7 kB / 362.4 MB, free: 8.789 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007946/0.1831, allocations: 338.1 kB / 362.7 MB, free: 8.418 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.448e-06/0.1832, allocations: 0 / 362.7 MB, free: 8.418 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001366/0.1845, allocations: 0.4996 MB / 363.2 MB, free: 7.902 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.249e-05/0.1846, allocations: 33.7 kB / 363.2 MB, free: 7.863 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.497e-05/0.1846, allocations: 8.047 kB / 363.2 MB, free: 7.855 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005084/0.1852, allocations: 88.81 kB / 363.3 MB, free: 7.766 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002317/0.1854, allocations: 55.89 kB / 363.4 MB, free: 7.711 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002788/0.1882, allocations: 1.85 MB / 365.2 MB, free: 5.727 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003936/0.1886, allocations: 55.88 kB / 365.3 MB, free: 5.672 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.973e-05/0.1886, allocations: 8 kB / 365.3 MB, free: 5.664 MB / 302.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.0002291/0.1889, allocations: 157.7 kB / 365.5 MB, free: 5.5 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.79e-05/0.1889, allocations: 23.72 kB / 365.5 MB, free: 5.477 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.297e-05/0.189, allocations: 25.83 kB / 365.5 MB, free: 5.449 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.189, allocations: 224 / 365.5 MB, free: 5.449 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.189, allocations: 0 / 365.5 MB, free: 5.449 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.134e-06/0.1891, allocations: 7.922 kB / 365.5 MB, free: 5.441 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00039/0.1895, allocations: 329.3 kB / 365.8 MB, free: 5.07 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.766e-06/0.1895, allocations: 4 kB / 365.8 MB, free: 5.066 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001544/0.1896, allocations: 31.91 kB / 365.9 MB, free: 5.035 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003318/0.19, allocations: 92.8 kB / 366 MB, free: 4.941 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.83e-05/0.19, allocations: 0 / 366 MB, free: 4.941 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002822/0.1928, allocations: 1.719 MB / 367.7 MB, free: 3.094 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.1928, allocations: 0 / 367.7 MB, free: 3.094 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001213/0.1941, allocations: 405.4 kB / 368.1 MB, free: 2.676 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001046/0.1942, allocations: 104.8 kB / 368.2 MB, free: 2.555 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.475e-05/0.1942, allocations: 4 kB / 368.2 MB, free: 2.551 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002738/0.1945, allocations: 43.95 kB / 368.2 MB, free: 2.508 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.22e-05/0.1946, allocations: 19.97 kB / 368.2 MB, free: 2.488 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.398e-05/0.1946, allocations: 4 kB / 368.2 MB, free: 2.484 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002204/0.1949, allocations: 206 kB / 368.4 MB, free: 2.285 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.1949, allocations: 0 / 368.4 MB, free: 2.285 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004463/0.1953, allocations: 75.84 kB / 368.5 MB, free: 2.211 MB / 302.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.000167/0.1955, allocations: 110.2 kB / 368.6 MB, free: 2.094 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001124/0.1966, allocations: 464.9 kB / 369.1 MB, free: 1.617 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.1967, allocations: 0 / 369.1 MB, free: 1.617 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005316/0.1972, allocations: 251.1 kB / 369.3 MB, free: 1.359 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004078/0.1976, allocations: 66.67 kB / 369.4 MB, free: 1.301 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001263/0.1989, allocations: 0.5999 MB / 370 MB, free: 0.668 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2179/0.4168, allocations: 0.7494 MB / 370.7 MB, free: 24.21 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002535/0.4171, allocations: 27.94 kB / 370.8 MB, free: 24.21 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.325e-05/0.4172, allocations: 20.97 kB / 370.8 MB, free: 24.2 MB / 302.1 MB Notification: Performance of SimCode: time 2.935e-06/0.4173, allocations: 0 / 370.8 MB, free: 24.2 MB / 302.1 MB Notification: Performance of Templates: time 0.0121/0.4294, allocations: 3.756 MB / 374.5 MB, free: 24.11 MB / 302.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