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/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.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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001016/0.001016, allocations: 182.8 kB / 8.137 MB, free: 2.184 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.138/1.138, allocations: 221.4 MB / 229.9 MB, free: 2.996 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009385/0.0009385, allocations: 107 kB / 280.8 MB, free: 1.234 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.373e-06/7.404e-06, allocations: 0 / 336.5 MB, free: 9.492 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1927/0.1928, allocations: 50.4 MB / 386.9 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08517/0.278, allocations: 80.09 MB / 467 MB, free: 6.711 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001836/0.2782, allocations: 87.92 kB / 467.1 MB, free: 6.625 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.01575/0.294, allocations: 5.866 MB / 473 MB, free: 0.7695 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.604e-05/0.294, allocations: 11.98 kB / 473 MB, free: 0.7578 MB / 346.7 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.0008707/0.2949, allocations: 0.6005 MB / 473.6 MB, free: 116 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.044e-05/0.2949, allocations: 12.03 kB / 473.6 MB, free: 104 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.032e-05/0.295, allocations: 48 kB / 473.6 MB, free: 56 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004515/0.2955, allocations: 312.4 kB / 473.9 MB, free: 15.71 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.749e-05/0.2955, allocations: 15.98 kB / 474 MB, free: 15.69 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.392e-05/0.2956, allocations: 20 kB / 474 MB, free: 15.67 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004679/0.296, allocations: 230.5 kB / 474.2 MB, free: 15.45 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000536/0.2966, allocations: 309.4 kB / 474.5 MB, free: 15.13 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.16e-05/0.2966, allocations: 0 / 474.5 MB, free: 15.13 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.082e-05/0.2967, allocations: 2.438 kB / 474.5 MB, free: 15.13 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.292e-05/0.2967, allocations: 15.91 kB / 474.5 MB, free: 15.12 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002254/0.2989, allocations: 1.402 MB / 475.9 MB, free: 13.63 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003602/0.2993, allocations: 158.9 kB / 476.1 MB, free: 13.47 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001132/0.2994, allocations: 72.86 kB / 476.1 MB, free: 13.39 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.239e-05/0.2995, allocations: 0 / 476.1 MB, free: 13.39 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.751e-05/0.2995, allocations: 42.5 kB / 476.2 MB, free: 13.34 MB / 362.7 MB Notification: Performance of pre-optimization done (n=16): time 1.353e-06/0.2995, allocations: 0 / 476.2 MB, free: 13.34 MB / 362.7 MB Notification: Performance of matching and sorting (n=16): time 0.0007047/0.3002, allocations: 262.9 kB / 476.4 MB, free: 13.07 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.675e-05/0.3003, allocations: 51.69 kB / 476.5 MB, free: 13.01 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002824/0.3005, allocations: 241 kB / 476.7 MB, free: 12.77 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.368e-05/0.3006, allocations: 29.69 kB / 476.8 MB, free: 12.73 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000107/0.3007, allocations: 211.5 kB / 477 MB, free: 12.52 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.658e-05/0.3007, allocations: 47.25 kB / 477 MB, free: 12.48 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.074e-05/0.3008, allocations: 4 kB / 477 MB, free: 12.47 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001126/0.3009, allocations: 330.8 kB / 477.3 MB, free: 12.14 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001007/0.301, allocations: 59.98 kB / 477.4 MB, free: 12.08 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001427/0.3011, allocations: 133.4 kB / 477.5 MB, free: 11.92 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001228/0.3013, allocations: 67.98 kB / 477.6 MB, free: 11.85 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.3013, allocations: 4 kB / 477.6 MB, free: 11.85 MB / 362.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0007449/0.302, allocations: 349 kB / 477.9 MB, free: 11.5 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.208e-05/0.302, allocations: 4 kB / 477.9 MB, free: 11.49 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.3021, allocations: 4 kB / 477.9 MB, free: 11.49 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002808/0.3023, allocations: 79.41 kB / 478 MB, free: 11.41 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001765/0.3025, allocations: 45.95 kB / 478.1 MB, free: 11.36 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002582/0.3051, allocations: 2.897 MB / 481 MB, free: 8.238 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002275/0.3054, allocations: 39.73 kB / 481 MB, free: 8.199 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.206e-05/0.3054, allocations: 13.31 kB / 481 MB, free: 8.188 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: feedback.opAmp.v_in:VARIABLE(unit = "V" ) "Input voltage difference" type: Real 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 () * 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.0001356/0.3055, allocations: 110.6 kB / 481.1 MB, free: 8.074 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.791e-05/0.3056, allocations: 32.39 kB / 481.2 MB, free: 8.043 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.955e-05/0.3057, allocations: 29.89 kB / 481.2 MB, free: 8.016 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.446e-06/0.3057, allocations: 4 kB / 481.2 MB, free: 8.012 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.3057, allocations: 0 / 481.2 MB, free: 8.012 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.491e-06/0.3057, allocations: 3.906 kB / 481.2 MB, free: 8.008 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000336/0.306, allocations: 309.9 kB / 481.5 MB, free: 7.668 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.306, allocations: 0 / 481.5 MB, free: 7.668 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.059e-05/0.3061, allocations: 15.94 kB / 481.5 MB, free: 7.652 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002084/0.3064, allocations: 87.92 kB / 481.6 MB, free: 7.562 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.163e-05/0.3064, allocations: 0 / 481.6 MB, free: 7.562 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002563/0.309, allocations: 2.893 MB / 484.5 MB, free: 4.441 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.774e-06/0.309, allocations: 0 / 484.5 MB, free: 4.441 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006465/0.3096, allocations: 372.2 kB / 484.9 MB, free: 4.059 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.505e-05/0.3097, allocations: 104.8 kB / 485 MB, free: 3.938 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.894e-05/0.3098, allocations: 7.891 kB / 485 MB, free: 3.93 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002422/0.31, allocations: 27.98 kB / 485 MB, free: 3.902 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.341e-05/0.31, allocations: 7.984 kB / 485 MB, free: 3.895 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.483e-05/0.3101, allocations: 4 kB / 485 MB, free: 3.891 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001718/0.3102, allocations: 185.2 kB / 485.2 MB, free: 3.711 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004814/0.3107, allocations: 91.69 kB / 485.3 MB, free: 3.621 MB / 362.7 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 () * 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.000161/0.3109, allocations: 107.2 kB / 485.4 MB, free: 3.508 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005328/0.3114, allocations: 364 kB / 485.7 MB, free: 3.133 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.3115, allocations: 4.125 kB / 485.7 MB, free: 3.129 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003035/0.3118, allocations: 283.5 kB / 486 MB, free: 2.832 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002744/0.3121, allocations: 31.66 kB / 486 MB, free: 2.805 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008163/0.3129, allocations: 361.3 kB / 486.4 MB, free: 2.422 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004487/0.3133, allocations: 0.8 MB / 487.2 MB, free: 1.598 MB / 362.7 MB Notification: Performance of SimCode: time 2.91e-07/0.3133, allocations: 0 / 487.2 MB, free: 1.598 MB / 362.7 MB Notification: Performance of Templates: time 0.006899/0.3203, allocations: 3.41 MB / 490.6 MB, free: 14.22 MB / 378.7 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","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches