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/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.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") [: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.001388/0.001388, allocations: 182.7 kB / 8.134 MB, free: 2.199 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.184/1.184, allocations: 221.4 MB / 229.9 MB, free: 3.016 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.0009097/0.0009097, allocations: 97.38 kB / 280.8 MB, free: 1.262 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.011e-05/1.015e-05, allocations: 4 kB / 336.5 MB, free: 9.504 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1793/0.1793, allocations: 50.4 MB / 386.9 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08153/0.2609, allocations: 80.37 MB / 467.3 MB, free: 6.422 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001929/0.2611, allocations: 80.83 kB / 467.4 MB, free: 6.344 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.01757/0.2787, allocations: 6.191 MB / 473.6 MB, free: 168 kB / 346.7 MB Notification: Performance of Transformations before backend: time 1.826e-05/0.2787, allocations: 8 kB / 473.6 MB, free: 160 kB / 346.7 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.0009782/0.2797, allocations: 0.5996 MB / 474.2 MB, free: 15.51 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.427e-05/0.2798, allocations: 12.03 kB / 474.2 MB, free: 15.5 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.53e-05/0.2799, allocations: 35.53 kB / 474.2 MB, free: 15.46 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003912/0.2803, allocations: 294.9 kB / 474.5 MB, free: 15.13 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.479e-05/0.2803, allocations: 8 kB / 474.5 MB, free: 15.12 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.647e-05/0.2803, allocations: 13.22 kB / 474.5 MB, free: 15.11 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003415/0.2807, allocations: 177.6 kB / 474.7 MB, free: 14.94 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003821/0.2811, allocations: 241.8 kB / 474.9 MB, free: 14.69 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.689e-06/0.2811, allocations: 0 / 474.9 MB, free: 14.69 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.624e-05/0.2811, allocations: 0 / 474.9 MB, free: 14.69 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.895e-06/0.2811, allocations: 11.94 kB / 474.9 MB, free: 14.68 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001878/0.283, allocations: 1.138 MB / 476.1 MB, free: 13.47 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003036/0.2833, allocations: 146.6 kB / 476.2 MB, free: 13.32 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001065/0.2834, allocations: 61.41 kB / 476.3 MB, free: 13.26 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.125e-05/0.2835, allocations: 0 / 476.3 MB, free: 13.26 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001813/0.2837, allocations: 122 kB / 476.4 MB, free: 13.12 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 1.172e-06/0.2837, allocations: 3.938 kB / 476.4 MB, free: 13.11 MB / 362.7 MB Notification: Performance of matching and sorting (n=13): time 0.0006104/0.2843, allocations: 227.5 kB / 476.6 MB, free: 12.88 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.577e-05/0.2844, allocations: 108 kB / 476.7 MB, free: 12.75 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002334/0.2846, allocations: 225 kB / 477 MB, free: 12.53 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.654e-05/0.2846, allocations: 29.7 kB / 477 MB, free: 12.5 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001158/0.2848, allocations: 187.5 kB / 477.2 MB, free: 12.31 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.896e-05/0.2848, allocations: 43.36 kB / 477.2 MB, free: 12.27 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.19e-05/0.2848, allocations: 0 / 477.2 MB, free: 12.27 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001351/0.285, allocations: 330.8 kB / 477.5 MB, free: 11.93 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001095/0.2851, allocations: 56.45 kB / 477.6 MB, free: 11.88 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001886/0.2853, allocations: 156.7 kB / 477.7 MB, free: 11.68 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001209/0.2854, allocations: 65.2 kB / 477.8 MB, free: 11.62 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.554e-06/0.2854, allocations: 0 / 477.8 MB, free: 11.62 MB / 362.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006976/0.2861, allocations: 314.2 kB / 478.1 MB, free: 11.3 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.553e-05/0.2861, allocations: 4 kB / 478.1 MB, free: 11.3 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.155e-05/0.2862, allocations: 6.188 kB / 478.1 MB, free: 11.29 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002406/0.2864, allocations: 48.78 kB / 478.2 MB, free: 11.24 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002323/0.2866, allocations: 56.02 kB / 478.2 MB, free: 11.19 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001737/0.2884, allocations: 1.473 MB / 479.7 MB, free: 9.602 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003571/0.2888, allocations: 63.86 kB / 479.8 MB, free: 9.539 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.539e-05/0.2888, allocations: 8 kB / 479.8 MB, free: 9.531 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: gain.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: 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001344/0.2889, allocations: 118.5 kB / 479.9 MB, free: 9.41 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.718e-05/0.289, allocations: 24.28 kB / 479.9 MB, free: 9.387 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.639e-05/0.289, allocations: 21.98 kB / 479.9 MB, free: 9.359 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.569e-06/0.289, allocations: 4 kB / 479.9 MB, free: 9.355 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.463e-06/0.2891, allocations: 3.938 kB / 479.9 MB, free: 9.352 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.2891, allocations: 4.922 kB / 479.9 MB, free: 9.348 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002478/0.2893, allocations: 277.9 kB / 480.2 MB, free: 9.039 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.335e-06/0.2893, allocations: 4.562 kB / 480.2 MB, free: 9.035 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001539/0.2895, allocations: 31.97 kB / 480.3 MB, free: 9.004 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000132/0.2896, allocations: 57.02 kB / 480.3 MB, free: 8.945 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.381e-05/0.2897, allocations: 7.938 kB / 480.3 MB, free: 8.938 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001349/0.291, allocations: 1.451 MB / 481.8 MB, free: 7.375 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.291, allocations: 3.906 kB / 481.8 MB, free: 7.371 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005364/0.2916, allocations: 262.3 kB / 482 MB, free: 7.094 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.138e-05/0.2917, allocations: 100.8 kB / 482.1 MB, free: 6.977 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.27e-05/0.2917, allocations: 0 / 482.1 MB, free: 6.977 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002805/0.292, allocations: 43.97 kB / 482.2 MB, free: 6.934 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.28e-05/0.2921, allocations: 19.95 kB / 482.2 MB, free: 6.914 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.435e-05/0.2921, allocations: 7.938 kB / 482.2 MB, free: 6.906 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001639/0.2923, allocations: 181.2 kB / 482.4 MB, free: 6.73 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003507/0.2926, allocations: 79.69 kB / 482.4 MB, free: 6.652 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: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001742/0.2928, allocations: 103.2 kB / 482.6 MB, free: 6.539 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005006/0.2933, allocations: 284.4 kB / 482.8 MB, free: 6.246 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.2933, allocations: 0.6875 kB / 482.8 MB, free: 6.246 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002299/0.2936, allocations: 165.8 kB / 483 MB, free: 6.074 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002757/0.2938, allocations: 35.3 kB / 483 MB, free: 6.039 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007363/0.2946, allocations: 300.7 kB / 483.3 MB, free: 5.715 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003722/0.295, allocations: 0.79 MB / 484.1 MB, free: 4.902 MB / 362.7 MB Notification: Performance of SimCode: time 2.6e-07/0.295, allocations: 4 kB / 484.1 MB, free: 4.898 MB / 362.7 MB Notification: Performance of Templates: time 0.006988/0.302, allocations: 3.544 MB / 487.7 MB, free: 1.422 MB / 362.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/InvertingAmplifier/InvertingAmplifier.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches