Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.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.InvertingAmp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|vIn.signalSource.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp") translateModel(Modelica.Electrical.Analog.Examples.InvertingAmp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|vIn.signalSource.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002035/0.002035, allocations: 110.2 kB / 17.17 MB, free: 6.344 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.002166/0.002166, allocations: 194.9 kB / 18.08 MB, free: 5.441 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.616/2.616, allocations: 222.9 MB / 241.8 MB, free: 13.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002134/0.002135, allocations: 42.94 kB / 300.6 MB, free: 6.086 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.163/0.1652, allocations: 49.46 MB / 350.1 MB, free: 4.633 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.006916/0.1721, allocations: 2.83 MB / 352.9 MB, free: 1.781 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002029/0.1742, allocations: 0.6389 MB / 353.5 MB, free: 1.137 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002448/0.1745, allocations: 4 kB / 353.5 MB, free: 1.133 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002735/0.1749, allocations: 31.75 kB / 353.6 MB, free: 1.102 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003583/0.1753, allocations: 83.38 kB / 353.7 MB, free: 1.02 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004397/0.1757, allocations: 79.88 kB / 353.7 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005836/0.1763, allocations: 350.5 kB / 354.1 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003458/0.1767, allocations: 111.6 kB / 354.2 MB, free: 496 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000276/0.177, allocations: 135.4 kB / 354.3 MB, free: 360 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003031/0.1773, allocations: 155.3 kB / 354.5 MB, free: 204 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.266e-05/0.1774, allocations: 24 kB / 354.5 MB, free: 180 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.76e-05/0.1775, allocations: 20 kB / 354.5 MB, free: 160 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001405/0.1777, allocations: 67.75 kB / 354.6 MB, free: 92 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003698/0.178, allocations: 151.2 kB / 354.7 MB, free: 15.94 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004746/0.1785, allocations: 279.5 kB / 355 MB, free: 15.67 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.258e-06/0.1786, allocations: 8 kB / 355 MB, free: 15.66 MB / 302.1 MB Notification: Performance of FrontEnd: time 5.611e-06/0.1786, allocations: 3.984 kB / 355 MB, free: 15.66 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.173e-05/0.1786, allocations: 0 / 355 MB, free: 15.66 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.00223/0.1809, allocations: 0.642 MB / 355.6 MB, free: 14.96 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.071e-05/0.1809, allocations: 8.031 kB / 355.7 MB, free: 14.95 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001396/0.1811, allocations: 32.56 kB / 355.7 MB, free: 14.92 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005755/0.1817, allocations: 284.6 kB / 356 MB, free: 14.6 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.37e-05/0.1817, allocations: 20.94 kB / 356 MB, free: 14.58 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.854e-05/0.1818, allocations: 20.38 kB / 356 MB, free: 14.56 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001189/0.183, allocations: 303.7 kB / 356.3 MB, free: 14.26 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.717e-05/0.1831, allocations: 0 / 356.3 MB, free: 14.26 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.403e-05/0.1831, allocations: 12 kB / 356.3 MB, free: 14.25 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.404e-05/0.1831, allocations: 7.938 kB / 356.3 MB, free: 14.24 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001372/0.1845, allocations: 257.5 kB / 356.6 MB, free: 13.99 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003076/0.1876, allocations: 1.097 MB / 357.7 MB, free: 12.8 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001457/0.1891, allocations: 206.5 kB / 357.9 MB, free: 12.59 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006351/0.1898, allocations: 96.78 kB / 358 MB, free: 12.49 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.242e-05/0.1898, allocations: 4 kB / 358 MB, free: 12.48 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008322/0.1907, allocations: 165.9 kB / 358.1 MB, free: 12.3 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 2.915e-06/0.1907, allocations: 4 kB / 358.1 MB, free: 12.3 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.003709/0.1944, allocations: 0.5105 MB / 358.6 MB, free: 11.76 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001062/0.1946, allocations: 106.8 kB / 358.8 MB, free: 11.63 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006282/0.1952, allocations: 290.5 kB / 359 MB, free: 11.34 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.345e-05/0.1953, allocations: 33.7 kB / 359.1 MB, free: 11.3 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002322/0.1955, allocations: 195.6 kB / 359.3 MB, free: 11.1 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.578e-05/0.1956, allocations: 39.39 kB / 359.3 MB, free: 11.06 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000171/0.1958, allocations: 57.84 kB / 359.4 MB, free: 11 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002105/0.196, allocations: 330.8 kB / 359.7 MB, free: 10.66 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006034/0.1967, allocations: 92.16 kB / 359.8 MB, free: 10.57 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000721/0.1974, allocations: 206.1 kB / 360 MB, free: 10.32 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001316/0.1987, allocations: 293.5 kB / 360.3 MB, free: 9.988 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.08e-05/0.1988, allocations: 7.938 kB / 360.3 MB, free: 9.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.002351/0.2011, allocations: 430.9 kB / 360.7 MB, free: 9.547 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.656e-05/0.2012, allocations: 33.7 kB / 360.7 MB, free: 9.508 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.7e-05/0.2013, allocations: 4 kB / 360.7 MB, free: 9.504 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006241/0.2019, allocations: 72.73 kB / 360.8 MB, free: 9.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000388/0.2023, allocations: 52 kB / 360.8 MB, free: 9.379 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003982/0.2063, allocations: 1.582 MB / 362.4 MB, free: 7.664 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007546/0.2071, allocations: 59.64 kB / 362.5 MB, free: 7.605 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.065e-05/0.2072, allocations: 12 kB / 362.5 MB, free: 7.594 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0003113/0.2075, allocations: 153.7 kB / 362.6 MB, free: 7.434 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001085/0.2076, allocations: 27.66 kB / 362.7 MB, free: 7.406 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.839e-05/0.2077, allocations: 25.7 kB / 362.7 MB, free: 7.387 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.2078, allocations: 0 / 362.7 MB, free: 7.387 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.2078, allocations: 0 / 362.7 MB, free: 7.387 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5e-06/0.2078, allocations: 3.938 kB / 362.7 MB, free: 7.383 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000556/0.2084, allocations: 309.3 kB / 363 MB, free: 7.031 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.2084, allocations: 0 / 363 MB, free: 7.031 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002291/0.2086, allocations: 27.91 kB / 363 MB, free: 7.004 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005204/0.2092, allocations: 60.81 kB / 363.1 MB, free: 6.941 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.306e-05/0.2092, allocations: 11.98 kB / 363.1 MB, free: 6.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00371/0.2129, allocations: 1.566 MB / 364.7 MB, free: 5.227 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.073e-05/0.213, allocations: 12.05 kB / 364.7 MB, free: 5.215 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001806/0.2148, allocations: 309.3 kB / 365 MB, free: 4.891 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002837/0.2151, allocations: 120.7 kB / 365.1 MB, free: 4.754 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.53e-05/0.2152, allocations: 0 / 365.1 MB, free: 4.754 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004809/0.2157, allocations: 27.97 kB / 365.1 MB, free: 4.727 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001869/0.2159, allocations: 27.95 kB / 365.2 MB, free: 4.699 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.985e-05/0.216, allocations: 4 kB / 365.2 MB, free: 4.695 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004387/0.2164, allocations: 202 kB / 365.4 MB, free: 4.5 MB / 302.1 MB Notification: Performance of sort global known variables: time 8.72e-07/0.2164, allocations: 0 / 365.4 MB, free: 4.5 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007666/0.2172, allocations: 79.84 kB / 365.4 MB, free: 4.422 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 (7): * Single equations (assignments): 4 * 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,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002352/0.2175, allocations: 99.23 kB / 365.5 MB, free: 4.316 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001796/0.2193, allocations: 413.7 kB / 365.9 MB, free: 3.887 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.199e-06/0.2193, allocations: 0.8125 kB / 365.9 MB, free: 3.887 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007948/0.2201, allocations: 218.6 kB / 366.1 MB, free: 3.66 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005912/0.2207, allocations: 41.56 kB / 366.2 MB, free: 3.617 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001872/0.2226, allocations: 0.5826 MB / 366.8 MB, free: 3 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004657/0.2231, allocations: 0.7482 MB / 367.5 MB, free: 2.227 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001183/0.2232, allocations: 23.44 kB / 367.5 MB, free: 2.203 MB / 302.1 MB Notification: Performance of SimCode: time 8.22e-07/0.2233, allocations: 0 / 367.5 MB, free: 2.203 MB / 302.1 MB Notification: Performance of Templates: time 0.2931/0.5164, allocations: 4.383 MB / 371.9 MB, free: 25.09 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/InvertingAmp/InvertingAmp.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches