Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009255/0.0009257, allocations: 96.34 kB / 18 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001068/0.001068, allocations: 203.6 kB / 18.93 MB, free: 4.848 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.335/1.335, allocations: 227.7 MB / 247.5 MB, free: 11.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003712/0.0003713, allocations: 8 kB / 308.4 MB, free: 0.8281 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1181/0.1185, allocations: 51.53 MB / 359.9 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.003137/0.1217, allocations: 2.618 MB / 362.5 MB, free: 10.67 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001502/0.1232, allocations: 0.7558 MB / 363.3 MB, free: 9.91 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002545/0.1235, allocations: 4 kB / 363.3 MB, free: 9.906 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001766/0.1237, allocations: 43.69 kB / 363.3 MB, free: 9.863 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002766/0.124, allocations: 83.39 kB / 363.4 MB, free: 9.781 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003302/0.1243, allocations: 99.89 kB / 363.5 MB, free: 9.684 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004408/0.1247, allocations: 394.4 kB / 363.9 MB, free: 9.297 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002344/0.125, allocations: 107.8 kB / 364 MB, free: 9.191 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002228/0.1252, allocations: 131.4 kB / 364.1 MB, free: 9.062 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002352/0.1255, allocations: 151.2 kB / 364.3 MB, free: 8.914 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.329e-05/0.1255, allocations: 16 kB / 364.3 MB, free: 8.898 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.92e-05/0.1256, allocations: 16 kB / 364.3 MB, free: 8.883 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.827e-05/0.1256, allocations: 51.77 kB / 364.4 MB, free: 8.832 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001652/0.1258, allocations: 180.9 kB / 364.5 MB, free: 8.648 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003118/0.1261, allocations: 347.2 kB / 364.9 MB, free: 8.309 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.1261, allocations: 4 kB / 364.9 MB, free: 8.305 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.185e-06/0.1262, allocations: 4 kB / 364.9 MB, free: 8.301 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.436e-05/0.1262, allocations: 0 / 364.9 MB, free: 8.301 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001318/0.1275, allocations: 0.6381 MB / 365.5 MB, free: 7.602 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.699e-05/0.1276, allocations: 12.03 kB / 365.5 MB, free: 7.59 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001227/0.1277, allocations: 36.56 kB / 365.6 MB, free: 7.555 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004246/0.1281, allocations: 303.5 kB / 365.9 MB, free: 7.219 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.58e-05/0.1282, allocations: 16.94 kB / 365.9 MB, free: 7.203 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.596e-05/0.1282, allocations: 20.38 kB / 365.9 MB, free: 7.184 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007974/0.129, allocations: 347.9 kB / 366.3 MB, free: 6.836 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.186e-05/0.129, allocations: 3.938 kB / 366.3 MB, free: 6.832 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.079e-05/0.1291, allocations: 8 kB / 366.3 MB, free: 6.824 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.59e-05/0.1291, allocations: 8 kB / 366.3 MB, free: 6.816 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008616/0.13, allocations: 314.1 kB / 366.6 MB, free: 6.508 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001968/0.1319, allocations: 1.178 MB / 367.8 MB, free: 5.246 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008607/0.1328, allocations: 282.5 kB / 368 MB, free: 4.961 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003507/0.1332, allocations: 120.8 kB / 368.2 MB, free: 4.84 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.283e-05/0.1332, allocations: 0 / 368.2 MB, free: 4.84 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004953/0.1337, allocations: 197.8 kB / 368.3 MB, free: 4.625 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.393e-06/0.1337, allocations: 224 / 368.3 MB, free: 4.625 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.002433/0.1362, allocations: 0.7372 MB / 369.1 MB, free: 3.859 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.314e-05/0.1362, allocations: 114.7 kB / 369.2 MB, free: 3.723 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003034/0.1366, allocations: 282.6 kB / 369.5 MB, free: 3.438 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.75e-05/0.1366, allocations: 37.7 kB / 369.5 MB, free: 3.395 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001333/0.1367, allocations: 203.5 kB / 369.7 MB, free: 3.191 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.932e-05/0.1368, allocations: 43.45 kB / 369.7 MB, free: 3.148 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.451e-05/0.1368, allocations: 29.7 kB / 369.8 MB, free: 3.113 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001113/0.1369, allocations: 330.8 kB / 370.1 MB, free: 2.781 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003741/0.1373, allocations: 120.4 kB / 370.2 MB, free: 2.66 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000421/0.1378, allocations: 220.1 kB / 370.4 MB, free: 2.406 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007556/0.1385, allocations: 342.1 kB / 370.8 MB, free: 2.031 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.995e-06/0.1385, allocations: 0 / 370.8 MB, free: 2.031 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001291/0.1398, allocations: 0.4958 MB / 371.3 MB, free: 1.52 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.419e-05/0.1399, allocations: 41.75 kB / 371.3 MB, free: 1.473 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.032e-05/0.1399, allocations: 8 kB / 371.3 MB, free: 1.465 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003729/0.1403, allocations: 80.81 kB / 371.4 MB, free: 1.383 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002206/0.1405, allocations: 59.88 kB / 371.4 MB, free: 1.324 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1787/0.3192, allocations: 1.839 MB / 373.3 MB, free: 18.32 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004101/0.3197, allocations: 64.92 kB / 373.3 MB, free: 18.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.57e-05/0.3197, allocations: 12.97 kB / 373.4 MB, free: 18.32 MB / 302.1 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 (vIn.signalSource.count,$PRE.vIn.signalSource.count,vIn.signalSource.T_start,$PRE.vIn.signalSource.T_start,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001824/0.3199, allocations: 152.6 kB / 373.5 MB, free: 18.2 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.96e-05/0.32, allocations: 28.44 kB / 373.5 MB, free: 18.2 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.158e-05/0.3201, allocations: 31.03 kB / 373.6 MB, free: 18.2 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.945e-06/0.3201, allocations: 1.156 kB / 373.6 MB, free: 18.2 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.274e-06/0.3201, allocations: 0.8125 kB / 373.6 MB, free: 18.2 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.838e-06/0.3201, allocations: 0.75 kB / 373.6 MB, free: 18.2 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000314/0.3204, allocations: 323.2 kB / 373.9 MB, free: 18.01 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.3204, allocations: 0 / 373.9 MB, free: 18.01 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001552/0.3206, allocations: 33.48 kB / 373.9 MB, free: 18.01 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000309/0.3209, allocations: 89.77 kB / 374 MB, free: 18 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.651e-05/0.3209, allocations: 1.688 kB / 374 MB, free: 18 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001961/0.3229, allocations: 1.705 MB / 375.7 MB, free: 16.75 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.3229, allocations: 0 / 375.7 MB, free: 16.75 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001137/0.324, allocations: 407.7 kB / 376.1 MB, free: 16.68 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.132e-05/0.3241, allocations: 100.1 kB / 376.2 MB, free: 16.58 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.883e-05/0.3242, allocations: 10.73 kB / 376.2 MB, free: 16.58 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002574/0.3244, allocations: 44.06 kB / 376.3 MB, free: 16.58 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.653e-05/0.3245, allocations: 29.3 kB / 376.3 MB, free: 16.58 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.199e-05/0.3245, allocations: 5.312 kB / 376.3 MB, free: 16.58 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001915/0.3247, allocations: 199.1 kB / 376.5 MB, free: 16.5 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3247, allocations: 1.219 kB / 376.5 MB, free: 16.5 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003895/0.3251, allocations: 82.58 kB / 376.6 MB, free: 16.49 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: 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001113/0.3252, allocations: 109.8 kB / 376.7 MB, free: 16.41 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001085/0.3263, allocations: 453.8 kB / 377.1 MB, free: 16.23 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.616e-06/0.3264, allocations: 0 / 377.1 MB, free: 16.23 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005171/0.3269, allocations: 253.5 kB / 377.4 MB, free: 16.12 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003523/0.3272, allocations: 50.14 kB / 377.4 MB, free: 16.11 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001042/0.3283, allocations: 0.6296 MB / 378.1 MB, free: 15.73 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001861/0.3285, allocations: 0.7558 MB / 378.8 MB, free: 15.03 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.485e-05/0.3286, allocations: 20.97 kB / 378.8 MB, free: 15.02 MB / 302.1 MB Notification: Performance of SimCode: time 3.71e-07/0.3286, allocations: 0 / 378.8 MB, free: 15.02 MB / 302.1 MB Notification: Performance of Templates: time 0.00824/0.3368, allocations: 4.705 MB / 383.5 MB, free: 14.65 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/InvertingAmplifier/InvertingAmplifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches