Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Electrical.Analog.Examples.OpAmps.Differentiator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|der_.c.v|der_.opAmp.out.v|der_.opAmp.out.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.Differentiator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|der_.c.v|der_.opAmp.out.v|der_.opAmp.out.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009385/0.0009386, allocations: 179.6 kB / 17.04 MB, free: 5.113 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.209/1.209, allocations: 223.3 MB / 241 MB, free: 10.07 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007252/0.0007252, allocations: 83.44 kB / 292.2 MB, free: 10.67 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002079/0.0002079, allocations: 8 kB / 351.8 MB, free: 15.06 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1774/0.1777, allocations: 50.41 MB / 402.2 MB, free: 32.53 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Differentiator): time 0.00195/0.1797, allocations: 2.418 MB / 404.6 MB, free: 30.1 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007177/0.1804, allocations: 0.6897 MB / 405.3 MB, free: 29.41 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000104/0.1805, allocations: 4 kB / 405.3 MB, free: 29.41 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001014/0.1806, allocations: 32.34 kB / 405.4 MB, free: 29.38 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001224/0.1807, allocations: 77.17 kB / 405.4 MB, free: 29.3 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001871/0.1809, allocations: 75.84 kB / 405.5 MB, free: 29.23 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002082/0.1811, allocations: 351.1 kB / 405.9 MB, free: 28.88 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001536/0.1813, allocations: 94.48 kB / 406 MB, free: 28.79 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001311/0.1814, allocations: 120.5 kB / 406.1 MB, free: 28.68 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00012/0.1816, allocations: 139.4 kB / 406.2 MB, free: 28.54 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.865e-05/0.1816, allocations: 24 kB / 406.2 MB, free: 28.52 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.875e-05/0.1817, allocations: 16 kB / 406.2 MB, free: 28.5 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.272e-05/0.1817, allocations: 51.75 kB / 406.3 MB, free: 28.45 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.874e-05/0.1818, allocations: 77.58 kB / 406.4 MB, free: 28.37 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000181/0.1819, allocations: 320.6 kB / 406.7 MB, free: 28.05 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.182, allocations: 0 / 406.7 MB, free: 28.05 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.303e-06/0.182, allocations: 0 / 406.7 MB, free: 28.05 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.609e-06/0.182, allocations: 0 / 406.7 MB, free: 28.05 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.0009062/0.1829, allocations: 0.638 MB / 407.3 MB, free: 27.36 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.705e-05/0.1829, allocations: 15.95 kB / 407.3 MB, free: 27.34 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.629e-05/0.183, allocations: 31.62 kB / 407.4 MB, free: 27.31 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002291/0.1832, allocations: 279.5 kB / 407.6 MB, free: 27 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.821e-05/0.1832, allocations: 16.56 kB / 407.7 MB, free: 26.98 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.859e-05/0.1833, allocations: 27.94 kB / 407.7 MB, free: 26.95 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005788/0.1839, allocations: 331.5 kB / 408 MB, free: 26.62 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.696e-06/0.1839, allocations: 0 / 408 MB, free: 26.62 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.473e-05/0.1839, allocations: 16 kB / 408 MB, free: 26.61 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-06/0.1839, allocations: 8 kB / 408 MB, free: 26.6 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006948/0.1846, allocations: 302.1 kB / 408.3 MB, free: 26.3 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001371/0.186, allocations: 1.142 MB / 409.5 MB, free: 25.08 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000778/0.1868, allocations: 282.5 kB / 409.7 MB, free: 24.79 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002952/0.1871, allocations: 116.8 kB / 409.9 MB, free: 24.68 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.833e-05/0.1871, allocations: 4 kB / 409.9 MB, free: 24.67 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004035/0.1875, allocations: 184.9 kB / 410 MB, free: 24.47 MB / 298.7 MB Notification: Performance of pre-optimization done (n=12): time 1.363e-06/0.1876, allocations: 0 / 410 MB, free: 24.47 MB / 298.7 MB Notification: Performance of matching and sorting (n=12): time 0.0009127/0.1885, allocations: 361.2 kB / 410.4 MB, free: 24.11 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.635e-05/0.1885, allocations: 85.09 kB / 410.5 MB, free: 24.01 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001883/0.1887, allocations: 262.5 kB / 410.7 MB, free: 23.75 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.658e-05/0.1887, allocations: 33.64 kB / 410.8 MB, free: 23.71 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.816e-05/0.1888, allocations: 191.6 kB / 411 MB, free: 23.52 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.769e-05/0.1888, allocations: 47.39 kB / 411 MB, free: 23.47 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.083e-05/0.1889, allocations: 4 kB / 411 MB, free: 23.47 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.503e-05/0.1889, allocations: 330.8 kB / 411.3 MB, free: 23.14 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003068/0.1892, allocations: 116.2 kB / 411.4 MB, free: 23.02 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003184/0.1895, allocations: 209.2 kB / 411.6 MB, free: 22.78 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003082/0.1899, allocations: 156.6 kB / 411.8 MB, free: 22.62 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.1899, allocations: 7.953 kB / 411.8 MB, free: 22.61 MB / 298.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.000714/0.1906, allocations: 387 kB / 412.2 MB, free: 22.22 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.331e-05/0.1906, allocations: 33.7 kB / 412.2 MB, free: 22.18 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.1906, allocations: 4 kB / 412.2 MB, free: 22.18 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.252e-05/0.1907, allocations: 4 kB / 412.2 MB, free: 22.18 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002531/0.1909, allocations: 75.88 kB / 412.3 MB, free: 22.1 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.294e-06/0.1909, allocations: 4 kB / 412.3 MB, free: 22.1 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002648/0.1912, allocations: 63.75 kB / 412.4 MB, free: 22.04 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.871e-05/0.1912, allocations: 12 kB / 412.4 MB, free: 22.02 MB / 298.7 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 ($whenCondition1,$PRE.vIn.signalSource.T_start,vIn.signalSource.T_start,$PRE.vIn.signalSource.count,vIn.signalSource.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.076e-05/0.1913, allocations: 141.8 kB / 412.5 MB, free: 21.88 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.628e-05/0.1914, allocations: 27.66 kB / 412.5 MB, free: 21.85 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.96e-05/0.1914, allocations: 29.72 kB / 412.6 MB, free: 21.82 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.814e-06/0.1914, allocations: 0 / 412.6 MB, free: 21.82 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.1914, allocations: 3.984 kB / 412.6 MB, free: 21.81 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.1914, allocations: 3.984 kB / 412.6 MB, free: 21.81 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001732/0.1916, allocations: 313.3 kB / 412.9 MB, free: 21.45 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.1916, allocations: 0 / 412.9 MB, free: 21.45 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002193/0.1918, allocations: 63.84 kB / 412.9 MB, free: 21.39 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.1918, allocations: 4 kB / 413 MB, free: 21.39 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.252e-05/0.1919, allocations: 0 / 413 MB, free: 21.39 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.233e-06/0.1919, allocations: 0 / 413 MB, free: 21.39 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.1919, allocations: 0 / 413 MB, free: 21.39 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000896/0.1928, allocations: 408.7 kB / 413.4 MB, free: 20.97 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.739e-05/0.1928, allocations: 100.8 kB / 413.4 MB, free: 20.85 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.25e-05/0.1929, allocations: 8.016 kB / 413.5 MB, free: 20.84 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002188/0.1931, allocations: 35.97 kB / 413.5 MB, free: 20.81 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.405e-05/0.1931, allocations: 19.97 kB / 413.5 MB, free: 20.79 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.06e-05/0.1932, allocations: 11.94 kB / 413.5 MB, free: 20.78 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001181/0.1933, allocations: 182 kB / 413.7 MB, free: 20.6 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1933, allocations: 4 kB / 413.7 MB, free: 20.59 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002362/0.1935, allocations: 71.83 kB / 413.8 MB, free: 20.52 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (der_.c.v) * 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 (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.628e-05/0.1936, allocations: 103.2 kB / 413.9 MB, free: 20.41 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.00066/0.1943, allocations: 323.2 kB / 414.2 MB, free: 20.09 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.1943, allocations: 0 / 414.2 MB, free: 20.09 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002885/0.1946, allocations: 116.4 kB / 414.3 MB, free: 19.97 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000263/0.1949, allocations: 40.53 kB / 414.3 MB, free: 19.93 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008372/0.1957, allocations: 0.6587 MB / 415 MB, free: 19.24 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001201/0.1959, allocations: 0.7482 MB / 415.8 MB, free: 18.46 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.019e-05/0.1959, allocations: 27.42 kB / 415.8 MB, free: 18.44 MB / 298.7 MB Notification: Performance of SimCode: time 2.4e-07/0.1959, allocations: 0 / 415.8 MB, free: 18.44 MB / 298.7 MB Notification: Performance of Templates: time 0.003612/0.1996, allocations: 3.304 MB / 419.1 MB, free: 15.14 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Differentiator/Differentiator.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches