Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.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.Subtracter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|vOut.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|vOut.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001356/0.001357, allocations: 88.16 kB / 16.31 MB, free: 5.555 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.001954/0.001954, allocations: 182.4 kB / 17.21 MB, free: 5.473 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.549/1.549, allocations: 223.3 MB / 241.2 MB, free: 364 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004141/0.0004146, allocations: 9.562 kB / 300.8 MB, free: 6.461 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1582/0.1586, allocations: 50.42 MB / 351.3 MB, free: 4.027 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.00494/0.1636, allocations: 2.874 MB / 354.1 MB, free: 1.133 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002268/0.166, allocations: 0.7719 MB / 354.9 MB, free: 368 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005292/0.1665, allocations: 4 kB / 354.9 MB, free: 364 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003112/0.1669, allocations: 51.61 kB / 355 MB, free: 312 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005354/0.1674, allocations: 99.16 kB / 355.1 MB, free: 212 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006137/0.168, allocations: 91.89 kB / 355.1 MB, free: 120 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009637/0.169, allocations: 450.1 kB / 355.6 MB, free: 15.68 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004685/0.1695, allocations: 124.4 kB / 355.7 MB, free: 15.54 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005755/0.1701, allocations: 159.3 kB / 355.9 MB, free: 15.38 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000512/0.1706, allocations: 163.2 kB / 356 MB, free: 15.22 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.947e-05/0.1708, allocations: 20 kB / 356 MB, free: 15.2 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000135/0.1709, allocations: 24 kB / 356.1 MB, free: 15.18 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.914e-05/0.171, allocations: 63.7 kB / 356.1 MB, free: 15.12 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002127/0.1712, allocations: 97.52 kB / 356.2 MB, free: 15.02 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006474/0.1719, allocations: 439 kB / 356.7 MB, free: 14.59 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.402e-05/0.1719, allocations: 7.984 kB / 356.7 MB, free: 14.58 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.226e-06/0.1719, allocations: 0 / 356.7 MB, free: 14.58 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.904e-05/0.172, allocations: 0 / 356.7 MB, free: 14.58 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: 87 * Number of variables: 87 Notification: Performance of Generate backend data structure: time 0.001794/0.1738, allocations: 0.6433 MB / 357.3 MB, free: 13.89 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.258e-05/0.1739, allocations: 12.03 kB / 357.3 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002578/0.1741, allocations: 39.53 kB / 357.4 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006289/0.1748, allocations: 311.2 kB / 357.7 MB, free: 13.49 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.473e-05/0.1748, allocations: 24.98 kB / 357.7 MB, free: 13.47 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.257e-05/0.1749, allocations: 36 kB / 357.7 MB, free: 13.43 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009291/0.1758, allocations: 394.1 kB / 358.1 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.613e-05/0.1759, allocations: 3.938 kB / 358.1 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.044e-05/0.1759, allocations: 19.95 kB / 358.1 MB, free: 13.02 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.586e-05/0.1759, allocations: 8 kB / 358.1 MB, free: 13.01 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007704/0.1767, allocations: 303.9 kB / 358.4 MB, free: 12.71 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002532/0.1793, allocations: 1.467 MB / 359.9 MB, free: 11.15 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006599/0.1799, allocations: 250.7 kB / 360.1 MB, free: 10.89 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002205/0.1802, allocations: 104.8 kB / 360.2 MB, free: 10.79 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.769e-05/0.1802, allocations: 0 / 360.2 MB, free: 10.79 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.997e-05/0.1803, allocations: 38.55 kB / 360.3 MB, free: 10.74 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 2.004e-06/0.1803, allocations: 0 / 360.3 MB, free: 10.74 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.002222/0.1825, allocations: 0.8095 MB / 361.1 MB, free: 9.883 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.59e-05/0.1826, allocations: 59.41 kB / 361.1 MB, free: 9.812 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003889/0.183, allocations: 303.3 kB / 361.4 MB, free: 9.512 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.709e-05/0.183, allocations: 33.7 kB / 361.5 MB, free: 9.473 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001795/0.1832, allocations: 223.7 kB / 361.7 MB, free: 9.246 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.988e-05/0.1832, allocations: 55.2 kB / 361.7 MB, free: 9.191 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.535e-05/0.1833, allocations: 4 kB / 361.8 MB, free: 9.188 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001514/0.1834, allocations: 338.8 kB / 362.1 MB, free: 8.848 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002306/0.1837, allocations: 87.95 kB / 362.2 MB, free: 8.762 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002649/0.1839, allocations: 165.3 kB / 362.3 MB, free: 8.566 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002371/0.1842, allocations: 98.73 kB / 362.4 MB, free: 8.473 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.1842, allocations: 0 / 362.4 MB, free: 8.473 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001067/0.1853, allocations: 450.7 kB / 362.9 MB, free: 8.02 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.554e-05/0.1853, allocations: 4 kB / 362.9 MB, free: 8.016 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.198e-05/0.1853, allocations: 4 kB / 362.9 MB, free: 8.012 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005129/0.1858, allocations: 125.7 kB / 363 MB, free: 7.883 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001682/0.186, allocations: 39.88 kB / 363 MB, free: 7.844 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00456/0.1906, allocations: 3.322 MB / 366.4 MB, free: 4.258 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003618/0.191, allocations: 35.69 kB / 366.4 MB, free: 4.223 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.83e-05/0.1911, allocations: 11.98 kB / 366.4 MB, free: 4.211 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * 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: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0002984/0.1914, allocations: 157.7 kB / 366.6 MB, free: 4.047 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.677e-05/0.1915, allocations: 27.66 kB / 366.6 MB, free: 4.02 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.706e-05/0.1916, allocations: 34.36 kB / 366.6 MB, free: 3.98 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-06/0.1916, allocations: 8 kB / 366.6 MB, free: 3.973 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.154e-06/0.1916, allocations: 0 / 366.6 MB, free: 3.973 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/0.1916, allocations: 0 / 366.6 MB, free: 3.973 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005799/0.1922, allocations: 365.3 kB / 367 MB, free: 3.566 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.652e-06/0.1922, allocations: 3.953 kB / 367 MB, free: 3.562 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.405e-05/0.1923, allocations: 12 kB / 367 MB, free: 3.551 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004331/0.1928, allocations: 121.7 kB / 367.1 MB, free: 3.426 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.806e-05/0.1928, allocations: 7.984 kB / 367.1 MB, free: 3.418 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2917/0.4845, allocations: 3.195 MB / 370.3 MB, free: 23.95 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.93e-06/0.4846, allocations: 0.6875 kB / 370.3 MB, free: 23.95 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001244/0.4858, allocations: 447.8 kB / 370.8 MB, free: 23.81 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001137/0.486, allocations: 103.9 kB / 370.9 MB, free: 23.71 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.851e-05/0.486, allocations: 8.672 kB / 370.9 MB, free: 23.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002388/0.4863, allocations: 29.86 kB / 370.9 MB, free: 23.71 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.401e-05/0.4864, allocations: 21.14 kB / 370.9 MB, free: 23.71 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.946e-05/0.4864, allocations: 5.234 kB / 370.9 MB, free: 23.71 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003261/0.4867, allocations: 219 kB / 371.1 MB, free: 23.64 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4867, allocations: 1.688 kB / 371.1 MB, free: 23.64 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006854/0.4874, allocations: 101.9 kB / 371.2 MB, free: 23.64 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002442/0.4877, allocations: 101.9 kB / 371.3 MB, free: 23.55 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001398/0.4891, allocations: 0.5381 MB / 371.9 MB, free: 23.33 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.4891, allocations: 0.5938 kB / 371.9 MB, free: 23.33 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004631/0.4896, allocations: 346.5 kB / 372.2 MB, free: 23.11 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005222/0.4901, allocations: 43.91 kB / 372.3 MB, free: 23.1 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001424/0.4915, allocations: 0.6886 MB / 372.9 MB, free: 22.73 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003886/0.4919, allocations: 0.7817 MB / 373.7 MB, free: 22.03 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001347/0.4921, allocations: 28.2 kB / 373.8 MB, free: 22.03 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.527e-05/0.4921, allocations: 20.47 kB / 373.8 MB, free: 22.02 MB / 302.1 MB Notification: Performance of SimCode: time 7.61e-07/0.4921, allocations: 0 / 373.8 MB, free: 22.02 MB / 302.1 MB Notification: Performance of Templates: time 0.01006/0.5022, allocations: 3.565 MB / 377.3 MB, free: 21.85 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Subtracter/Subtracter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches