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.00159/0.00159, allocations: 109 kB / 17.16 MB, free: 6.082 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.001779/0.001779, allocations: 194.9 kB / 18.08 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.263/2.263, allocations: 222.9 MB / 241.8 MB, free: 15.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001917/0.001917, allocations: 43.03 kB / 300.6 MB, free: 6.297 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1526/0.1545, allocations: 49.46 MB / 350.1 MB, free: 4.832 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.006611/0.1612, allocations: 2.97 MB / 353 MB, free: 1.84 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001989/0.1632, allocations: 0.7246 MB / 353.8 MB, free: 1.109 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002145/0.1635, allocations: 4 kB / 353.8 MB, free: 1.105 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002486/0.1637, allocations: 35.69 kB / 353.8 MB, free: 1.07 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003133/0.1641, allocations: 91.36 kB / 353.9 MB, free: 0.9805 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004179/0.1645, allocations: 103.9 kB / 354 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005595/0.1651, allocations: 382.5 kB / 354.4 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003175/0.1655, allocations: 107.8 kB / 354.5 MB, free: 408 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002399/0.1657, allocations: 139.4 kB / 354.6 MB, free: 268 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002701/0.166, allocations: 163.2 kB / 354.8 MB, free: 104 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.119e-05/0.1661, allocations: 20 kB / 354.8 MB, free: 84 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.112e-05/0.1662, allocations: 24 kB / 354.8 MB, free: 60 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.717e-05/0.1663, allocations: 55.7 kB / 354.9 MB, free: 4 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002633/0.1665, allocations: 155.2 kB / 355 MB, free: 15.85 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004849/0.167, allocations: 371.3 kB / 355.4 MB, free: 15.49 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.1671, allocations: 0 / 355.4 MB, free: 15.49 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1671, allocations: 0 / 355.4 MB, free: 15.49 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.532e-06/0.1671, allocations: 0 / 355.4 MB, free: 15.49 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.001913/0.169, allocations: 0.6808 MB / 356.1 MB, free: 14.75 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.306e-05/0.1691, allocations: 8.031 kB / 356.1 MB, free: 14.74 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001276/0.1692, allocations: 32.56 kB / 356.1 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000502/0.1697, allocations: 291.6 kB / 356.4 MB, free: 14.39 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.485e-05/0.1698, allocations: 20.94 kB / 356.4 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.477e-05/0.1699, allocations: 28.36 kB / 356.4 MB, free: 14.34 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001102/0.171, allocations: 331.9 kB / 356.8 MB, free: 14 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.791e-05/0.171, allocations: 4 kB / 356.8 MB, free: 14 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.768e-05/0.1711, allocations: 8 kB / 356.8 MB, free: 13.99 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.427e-05/0.1711, allocations: 8 kB / 356.8 MB, free: 13.98 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001242/0.1723, allocations: 290 kB / 357.1 MB, free: 13.7 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002841/0.1752, allocations: 1.154 MB / 358.2 MB, free: 12.47 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001205/0.1764, allocations: 250.5 kB / 358.5 MB, free: 12.21 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005058/0.1769, allocations: 104.8 kB / 358.6 MB, free: 12.11 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.506e-05/0.177, allocations: 0 / 358.6 MB, free: 12.11 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007901/0.1778, allocations: 186.5 kB / 358.7 MB, free: 11.91 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.693e-06/0.1778, allocations: 0 / 358.7 MB, free: 11.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.003312/0.1811, allocations: 0.6611 MB / 359.4 MB, free: 11.22 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.475e-05/0.1812, allocations: 107 kB / 359.5 MB, free: 11.09 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004985/0.1817, allocations: 286.5 kB / 359.8 MB, free: 10.8 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.717e-05/0.1818, allocations: 33.64 kB / 359.8 MB, free: 10.76 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001966/0.182, allocations: 203.6 kB / 360 MB, free: 10.56 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.725e-05/0.1821, allocations: 43.45 kB / 360.1 MB, free: 10.52 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001411/0.1822, allocations: 49.84 kB / 360.1 MB, free: 10.46 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001937/0.1824, allocations: 338.8 kB / 360.4 MB, free: 10.12 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005077/0.183, allocations: 108.4 kB / 360.6 MB, free: 10.01 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006054/0.1836, allocations: 200.9 kB / 360.7 MB, free: 9.773 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001062/0.1847, allocations: 322.7 kB / 361.1 MB, free: 9.418 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.1847, allocations: 4 kB / 361.1 MB, free: 9.414 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001858/0.1865, allocations: 471.6 kB / 361.5 MB, free: 8.938 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.993e-05/0.1866, allocations: 33.7 kB / 361.6 MB, free: 8.898 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.28e-05/0.1866, allocations: 4 kB / 361.6 MB, free: 8.895 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005239/0.1872, allocations: 88.8 kB / 361.6 MB, free: 8.805 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003115/0.1875, allocations: 43.97 kB / 361.7 MB, free: 8.762 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003618/0.1911, allocations: 1.803 MB / 363.5 MB, free: 6.824 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005534/0.1917, allocations: 51.72 kB / 363.5 MB, free: 6.773 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.7e-05/0.1918, allocations: 8 kB / 363.6 MB, free: 6.766 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.0002657/0.192, allocations: 161.8 kB / 363.7 MB, free: 6.598 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.41e-05/0.1921, allocations: 27.66 kB / 363.7 MB, free: 6.57 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.659e-05/0.1922, allocations: 25.83 kB / 363.8 MB, free: 6.543 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.1922, allocations: 0 / 363.8 MB, free: 6.543 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.1922, allocations: 0 / 363.8 MB, free: 6.543 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.207e-06/0.1922, allocations: 0 / 363.8 MB, free: 6.543 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004561/0.1927, allocations: 325.4 kB / 364.1 MB, free: 6.176 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.1927, allocations: 0 / 364.1 MB, free: 6.176 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002075/0.1929, allocations: 23.97 kB / 364.1 MB, free: 6.152 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004027/0.1933, allocations: 84.8 kB / 364.2 MB, free: 6.066 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.015e-05/0.1934, allocations: 0 / 364.2 MB, free: 6.066 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003152/0.1965, allocations: 1.683 MB / 365.9 MB, free: 4.254 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.1965, allocations: 0 / 365.9 MB, free: 4.254 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001559/0.1981, allocations: 369.4 kB / 366.2 MB, free: 3.871 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001234/0.1982, allocations: 104.8 kB / 366.3 MB, free: 3.75 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.063e-05/0.1983, allocations: 4 kB / 366.3 MB, free: 3.746 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003696/0.1987, allocations: 35.97 kB / 366.4 MB, free: 3.711 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001165/0.1988, allocations: 19.97 kB / 366.4 MB, free: 3.691 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.96e-05/0.1988, allocations: 0 / 366.4 MB, free: 3.691 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003271/0.1992, allocations: 209.9 kB / 366.6 MB, free: 3.488 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.1992, allocations: 0 / 366.6 MB, free: 3.488 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007198/0.1999, allocations: 75.84 kB / 366.7 MB, free: 3.414 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.0002002/0.2001, allocations: 110 kB / 366.8 MB, free: 3.297 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001458/0.2016, allocations: 437.1 kB / 367.2 MB, free: 2.848 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.49e-06/0.2016, allocations: 4.188 kB / 367.2 MB, free: 2.844 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006739/0.2023, allocations: 226.6 kB / 367.4 MB, free: 2.609 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000561/0.2029, allocations: 60.33 kB / 367.5 MB, free: 2.551 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001661/0.2046, allocations: 0.6177 MB / 368.1 MB, free: 1.895 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004596/0.205, allocations: 0.756 MB / 368.9 MB, free: 1.113 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001063/0.2052, allocations: 19.44 kB / 368.9 MB, free: 1.094 MB / 302.1 MB Notification: Performance of SimCode: time 5.41e-07/0.2052, allocations: 0 / 368.9 MB, free: 1.094 MB / 302.1 MB Notification: Performance of Templates: time 0.2168/0.4219, allocations: 4.716 MB / 373.6 MB, free: 24.91 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/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