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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001099/0.001099, allocations: 111.9 kB / 17.68 MB, free: 5.355 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.001089/0.001089, allocations: 190.9 kB / 18.62 MB, free: 4.434 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.372/1.372, allocations: 222.9 MB / 242.3 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001042/0.001042, allocations: 46.88 kB / 302.1 MB, free: 5.152 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.1085, allocations: 49.44 MB / 351.5 MB, free: 3.688 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.004055/0.1126, allocations: 2.934 MB / 354.4 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001084/0.1137, allocations: 0.7285 MB / 355.2 MB, free: 4 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001437/0.1139, allocations: 7.984 kB / 355.2 MB, free: 15.99 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001628/0.1141, allocations: 47.52 kB / 355.2 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001845/0.1143, allocations: 99.12 kB / 355.3 MB, free: 15.85 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002914/0.1146, allocations: 119.8 kB / 355.4 MB, free: 15.73 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004068/0.115, allocations: 418.5 kB / 355.8 MB, free: 15.32 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002293/0.1152, allocations: 127.2 kB / 356 MB, free: 15.2 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001686/0.1154, allocations: 159.4 kB / 356.1 MB, free: 15.04 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001879/0.1156, allocations: 175.2 kB / 356.3 MB, free: 14.87 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.936e-05/0.1157, allocations: 40 kB / 356.3 MB, free: 14.83 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.467e-05/0.1157, allocations: 44 kB / 356.4 MB, free: 14.79 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.758e-05/0.1158, allocations: 79.75 kB / 356.5 MB, free: 14.71 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001594/0.116, allocations: 179.1 kB / 356.6 MB, free: 14.53 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004365/0.1164, allocations: 454.5 kB / 357.1 MB, free: 14.09 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.1164, allocations: 0 / 357.1 MB, free: 14.09 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1164, allocations: 0 / 357.1 MB, free: 14.09 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.834e-06/0.1165, allocations: 0 / 357.1 MB, free: 14.09 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.001276/0.1177, allocations: 0.6769 MB / 357.8 MB, free: 13.35 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.908e-05/0.1178, allocations: 15.89 kB / 357.8 MB, free: 13.34 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.053e-05/0.1179, allocations: 32.56 kB / 357.8 MB, free: 13.3 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003863/0.1182, allocations: 295.6 kB / 358.1 MB, free: 12.98 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.385e-05/0.1183, allocations: 24.94 kB / 358.1 MB, free: 12.95 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.19e-05/0.1183, allocations: 24.38 kB / 358.1 MB, free: 12.93 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006876/0.119, allocations: 331.9 kB / 358.5 MB, free: 12.59 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.243e-05/0.119, allocations: 0 / 358.5 MB, free: 12.59 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.995e-05/0.1191, allocations: 12 kB / 358.5 MB, free: 12.58 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.087e-06/0.1191, allocations: 4 kB / 358.5 MB, free: 12.58 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007693/0.1199, allocations: 286.1 kB / 358.8 MB, free: 12.3 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001922/0.1218, allocations: 1.15 MB / 359.9 MB, free: 11.07 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008595/0.1227, allocations: 250.5 kB / 360.1 MB, free: 10.82 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000338/0.123, allocations: 112.8 kB / 360.3 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.356e-05/0.1231, allocations: 0 / 360.3 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004909/0.1236, allocations: 177.9 kB / 360.4 MB, free: 10.51 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.493e-06/0.1236, allocations: 4 kB / 360.4 MB, free: 10.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.002313/0.1259, allocations: 0.655 MB / 361.1 MB, free: 9.82 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.697e-05/0.126, allocations: 106.8 kB / 361.2 MB, free: 9.691 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002891/0.1263, allocations: 286.6 kB / 361.5 MB, free: 9.402 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.777e-05/0.1263, allocations: 33.7 kB / 361.5 MB, free: 9.363 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001259/0.1265, allocations: 203.6 kB / 361.7 MB, free: 9.16 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.606e-05/0.1265, allocations: 43.45 kB / 361.7 MB, free: 9.117 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.26e-05/0.1266, allocations: 49.84 kB / 361.8 MB, free: 9.059 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001117/0.1267, allocations: 334.8 kB / 362.1 MB, free: 8.723 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003326/0.1271, allocations: 108.4 kB / 362.2 MB, free: 8.617 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003747/0.1274, allocations: 198 kB / 362.4 MB, free: 8.383 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006554/0.1281, allocations: 311.7 kB / 362.7 MB, free: 8.035 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.1281, allocations: 0 / 362.7 MB, free: 8.035 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001176/0.1293, allocations: 474.2 kB / 363.2 MB, free: 7.559 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.684e-05/0.1293, allocations: 37.69 kB / 363.2 MB, free: 7.516 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.684e-06/0.1294, allocations: 7.984 kB / 363.2 MB, free: 7.508 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003686/0.1297, allocations: 88.86 kB / 363.3 MB, free: 7.418 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002015/0.1299, allocations: 47.84 kB / 363.4 MB, free: 7.371 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002582/0.1325, allocations: 1.99 MB / 365.4 MB, free: 5.242 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003276/0.1329, allocations: 55.77 kB / 365.4 MB, free: 5.188 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.552e-05/0.1329, allocations: 12.22 kB / 365.4 MB, free: 5.176 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.0001803/0.1331, allocations: 153.7 kB / 365.6 MB, free: 5.016 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.751e-05/0.1332, allocations: 31.59 kB / 365.6 MB, free: 4.984 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.718e-05/0.1332, allocations: 21.83 kB / 365.6 MB, free: 4.965 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.1332, allocations: 4 kB / 365.6 MB, free: 4.961 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.864e-06/0.1332, allocations: 4 kB / 365.6 MB, free: 4.957 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.1332, allocations: 0 / 365.6 MB, free: 4.957 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002964/0.1335, allocations: 325.4 kB / 366 MB, free: 4.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.1335, allocations: 0 / 366 MB, free: 4.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001348/0.1337, allocations: 24.11 kB / 366 MB, free: 4.566 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002772/0.134, allocations: 84.8 kB / 366.1 MB, free: 4.48 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.604e-05/0.134, allocations: 4 kB / 366.1 MB, free: 4.477 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002196/0.1362, allocations: 1.808 MB / 367.9 MB, free: 2.527 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.1362, allocations: 0 / 367.9 MB, free: 2.527 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001041/0.1373, allocations: 376.4 kB / 368.2 MB, free: 2.141 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.044e-05/0.1373, allocations: 96.83 kB / 368.3 MB, free: 2.027 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.1e-05/0.1374, allocations: 11.98 kB / 368.3 MB, free: 2.016 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002451/0.1376, allocations: 32.16 kB / 368.4 MB, free: 1.984 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.327e-05/0.1377, allocations: 23.97 kB / 368.4 MB, free: 1.961 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.588e-05/0.1378, allocations: 8 kB / 368.4 MB, free: 1.953 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002023/0.138, allocations: 201.9 kB / 368.6 MB, free: 1.758 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.138, allocations: 0 / 368.6 MB, free: 1.758 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003947/0.1384, allocations: 83.75 kB / 368.7 MB, free: 1.676 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.0001404/0.1385, allocations: 107.2 kB / 368.8 MB, free: 1.559 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009806/0.1395, allocations: 426.4 kB / 369.2 MB, free: 1.117 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.1395, allocations: 4.125 kB / 369.2 MB, free: 1.113 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000445/0.14, allocations: 234.6 kB / 369.4 MB, free: 0.8711 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003424/0.1403, allocations: 52.41 kB / 369.5 MB, free: 0.8203 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009682/0.1413, allocations: 480.2 kB / 370 MB, free: 328 kB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1447/0.2861, allocations: 0.7582 MB / 370.7 MB, free: 25.02 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001531/0.2862, allocations: 26.12 kB / 370.7 MB, free: 25.02 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.179e-05/0.2863, allocations: 21.59 kB / 370.8 MB, free: 25.01 MB / 302.1 MB Notification: Performance of SimCode: time 6.61e-07/0.2863, allocations: 0.625 kB / 370.8 MB, free: 25.01 MB / 302.1 MB Notification: Performance of Templates: time 0.00815/0.2945, allocations: 4.145 MB / 374.9 MB, free: 24.94 MB / 302.1 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 -s gbode -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/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_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches