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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001062/0.001062, allocations: 181.9 kB / 16.39 MB, free: 5.762 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.316/1.316, allocations: 223.2 MB / 240.3 MB, free: 11.88 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.0008333/0.0008332, allocations: 97.22 kB / 291.5 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002975/0.0002975, allocations: 7.938 kB / 351.1 MB, free: 15.3 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2515/0.2518, allocations: 50.4 MB / 401.5 MB, free: 32.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09916/0.351, allocations: 81.18 MB / 482.7 MB, free: 15.32 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002458/0.3513, allocations: 89.03 kB / 482.8 MB, free: 15.23 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01731/0.3687, allocations: 6.45 MB / 489.2 MB, free: 8.754 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.3687, allocations: 0 / 489.2 MB, free: 8.754 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.501e-05/0.3687, allocations: 11.94 kB / 489.2 MB, free: 8.742 MB / 362.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.001137/0.3699, allocations: 0.6353 MB / 489.9 MB, free: 8.051 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.833e-05/0.3699, allocations: 8.031 kB / 489.9 MB, free: 8.043 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.973e-05/0.37, allocations: 31.62 kB / 489.9 MB, free: 8.012 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004006/0.3704, allocations: 287.1 kB / 490.2 MB, free: 7.691 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.593e-05/0.3705, allocations: 20.5 kB / 490.2 MB, free: 7.672 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.061e-05/0.3705, allocations: 28 kB / 490.2 MB, free: 7.645 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007169/0.3712, allocations: 339.9 kB / 490.6 MB, free: 7.305 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.512e-05/0.3713, allocations: 7.953 kB / 490.6 MB, free: 7.297 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.352e-05/0.3713, allocations: 11.94 kB / 490.6 MB, free: 7.285 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.099e-05/0.3713, allocations: 8 kB / 490.6 MB, free: 7.277 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008246/0.3722, allocations: 310.1 kB / 490.9 MB, free: 6.973 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002023/0.3742, allocations: 1.189 MB / 492.1 MB, free: 5.707 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008443/0.375, allocations: 278.5 kB / 492.4 MB, free: 5.426 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.665e-05/0.3751, allocations: 4 kB / 492.4 MB, free: 5.422 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005244/0.3756, allocations: 190.7 kB / 492.6 MB, free: 5.215 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 3.657e-06/0.3756, allocations: 0 / 492.6 MB, free: 5.215 MB / 362.7 MB Notification: Performance of matching and sorting (n=13): time 0.002209/0.3778, allocations: 0.7283 MB / 493.3 MB, free: 4.461 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.185e-05/0.3779, allocations: 118.7 kB / 493.4 MB, free: 4.32 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002732/0.3782, allocations: 253.8 kB / 493.6 MB, free: 4.066 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.619e-05/0.3782, allocations: 25.7 kB / 493.7 MB, free: 4.035 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001333/0.3784, allocations: 199.6 kB / 493.9 MB, free: 3.836 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.838e-05/0.3784, allocations: 47.36 kB / 493.9 MB, free: 3.789 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.269e-05/0.3784, allocations: 4 kB / 493.9 MB, free: 3.785 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000141/0.3786, allocations: 336 kB / 494.2 MB, free: 3.449 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003425/0.3789, allocations: 124.4 kB / 494.4 MB, free: 3.324 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003884/0.3793, allocations: 210.5 kB / 494.6 MB, free: 3.078 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000403/0.3797, allocations: 164.4 kB / 494.7 MB, free: 2.914 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.3798, allocations: 224 / 494.7 MB, free: 2.914 MB / 362.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001212/0.381, allocations: 0.4957 MB / 495.2 MB, free: 2.402 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.669e-05/0.381, allocations: 45.62 kB / 495.3 MB, free: 2.352 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.381, allocations: 4 kB / 495.3 MB, free: 2.348 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003691/0.3814, allocations: 88.86 kB / 495.4 MB, free: 2.258 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002163/0.3816, allocations: 51.89 kB / 495.4 MB, free: 2.207 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002494/0.3842, allocations: 1.846 MB / 497.3 MB, free: 228 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003395/0.3845, allocations: 55.88 kB / 497.3 MB, free: 172 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.52e-05/0.3845, allocations: 15.98 kB / 497.3 MB, free: 156 kB / 362.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 (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.0001822/0.3847, allocations: 153.7 kB / 497.5 MB, free: 15.99 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.535e-05/0.3848, allocations: 27.72 kB / 497.5 MB, free: 15.96 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.925e-05/0.3848, allocations: 25.78 kB / 497.5 MB, free: 15.95 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.3848, allocations: 4 kB / 497.5 MB, free: 15.94 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.673e-06/0.3848, allocations: 0 / 497.5 MB, free: 15.94 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.3848, allocations: 0 / 497.5 MB, free: 15.94 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002732/0.3851, allocations: 321.3 kB / 497.8 MB, free: 15.58 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.584e-06/0.3851, allocations: 7.984 kB / 497.9 MB, free: 15.57 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001436/0.3853, allocations: 23.98 kB / 497.9 MB, free: 15.55 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002646/0.3856, allocations: 88.8 kB / 498 MB, free: 15.46 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.364e-05/0.3856, allocations: 0 / 498 MB, free: 15.46 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002085/0.3877, allocations: 1.734 MB / 499.7 MB, free: 13.59 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.3877, allocations: 0 / 499.7 MB, free: 13.59 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001011/0.3887, allocations: 413.5 kB / 0.4884 GB, free: 13.16 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.775e-05/0.3888, allocations: 100.8 kB / 0.4885 GB, free: 13.05 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.389e-05/0.3888, allocations: 4 kB / 0.4885 GB, free: 13.04 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002487/0.3891, allocations: 43.95 kB / 0.4885 GB, free: 13 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.063e-05/0.3892, allocations: 23.92 kB / 0.4885 GB, free: 12.98 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.307e-05/0.3892, allocations: 7.938 kB / 0.4886 GB, free: 12.97 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001926/0.3894, allocations: 202 kB / 0.4887 GB, free: 12.77 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3894, allocations: 0 / 0.4887 GB, free: 12.77 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003831/0.3898, allocations: 79.84 kB / 0.4888 GB, free: 12.69 MB / 378.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) * Number of clocked states: 0 () * 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.0001672/0.39, allocations: 111.2 kB / 0.4889 GB, free: 12.57 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009752/0.391, allocations: 461.9 kB / 0.4894 GB, free: 12.1 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.391, allocations: 4 kB / 0.4894 GB, free: 12.09 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004816/0.3915, allocations: 251 kB / 0.4896 GB, free: 11.84 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002865/0.3918, allocations: 39.47 kB / 0.4897 GB, free: 11.8 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001227/0.393, allocations: 0.5648 MB / 0.4902 GB, free: 11.2 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004438/0.3935, allocations: 0.7677 MB / 0.491 GB, free: 10.41 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001966/0.3937, allocations: 22.3 kB / 0.491 GB, free: 10.39 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.892e-05/0.3937, allocations: 19.44 kB / 0.491 GB, free: 10.37 MB / 378.7 MB Notification: Performance of SimCode: time 5.21e-07/0.3937, allocations: 0 / 0.491 GB, free: 10.37 MB / 378.7 MB Notification: Performance of Templates: time 0.007219/0.401, allocations: 3.671 MB / 0.4946 GB, free: 6.734 MB / 378.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