Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.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.NonInvertingAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|buffer.opAmp.out.v|buffer.opAmp.out.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|buffer.opAmp.out.v|buffer.opAmp.out.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001001/0.001001, allocations: 116.5 kB / 17.7 MB, free: 5.438 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.0009994/0.0009995, allocations: 187 kB / 18.63 MB, free: 4.512 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.314/1.314, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001024/0.001024, allocations: 56.2 kB / 302.1 MB, free: 5.16 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1083, allocations: 49.45 MB / 351.5 MB, free: 3.68 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier): time 0.004533/0.1129, allocations: 2.921 MB / 354.4 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001271/0.1142, allocations: 0.7285 MB / 355.2 MB, free: 4 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001627/0.1144, allocations: 8.047 kB / 355.2 MB, free: 15.99 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000191/0.1146, allocations: 51.45 kB / 355.2 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00019/0.1148, allocations: 99.17 kB / 355.3 MB, free: 15.85 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003055/0.1151, allocations: 115.8 kB / 355.4 MB, free: 15.73 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004422/0.1156, allocations: 414.4 kB / 355.8 MB, free: 15.33 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002576/0.1158, allocations: 131.2 kB / 356 MB, free: 15.2 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001954/0.116, allocations: 167.3 kB / 356.1 MB, free: 15.03 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002122/0.1163, allocations: 167.3 kB / 356.3 MB, free: 14.87 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.027e-05/0.1163, allocations: 40 kB / 356.3 MB, free: 14.83 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.338e-05/0.1164, allocations: 40 kB / 356.4 MB, free: 14.79 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.981e-05/0.1165, allocations: 83.69 kB / 356.5 MB, free: 14.71 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001824/0.1167, allocations: 167.2 kB / 356.6 MB, free: 14.54 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004955/0.1172, allocations: 462.4 kB / 357.1 MB, free: 14.09 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.943e-06/0.1172, allocations: 0 / 357.1 MB, free: 14.09 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.665e-06/0.1172, allocations: 0 / 357.1 MB, free: 14.09 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.546e-06/0.1172, 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.001371/0.1186, allocations: 0.6808 MB / 357.8 MB, free: 13.35 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.652e-05/0.1187, allocations: 11.89 kB / 357.8 MB, free: 13.34 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.115e-05/0.1188, allocations: 32.56 kB / 357.8 MB, free: 13.31 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004782/0.1192, allocations: 303.5 kB / 358.1 MB, free: 12.97 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.159e-05/0.1193, allocations: 16.94 kB / 358.1 MB, free: 12.96 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.15e-05/0.1193, allocations: 28.38 kB / 358.1 MB, free: 12.93 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006835/0.12, allocations: 327.9 kB / 358.5 MB, free: 12.6 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.478e-05/0.12, allocations: 4 kB / 358.5 MB, free: 12.59 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.046e-05/0.1201, allocations: 8 kB / 358.5 MB, free: 12.59 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.115e-05/0.1201, allocations: 8 kB / 358.5 MB, free: 12.58 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007556/0.1209, allocations: 286 kB / 358.8 MB, free: 12.3 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001784/0.1226, allocations: 1.142 MB / 359.9 MB, free: 11.08 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007809/0.1234, allocations: 250.6 kB / 360.1 MB, free: 10.82 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003158/0.1238, allocations: 108.7 kB / 360.3 MB, free: 10.71 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.531e-05/0.1238, allocations: 4 kB / 360.3 MB, free: 10.71 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004478/0.1243, allocations: 178.7 kB / 360.4 MB, free: 10.52 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.413e-06/0.1243, allocations: 0 / 360.4 MB, free: 10.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.002236/0.1265, allocations: 0.6697 MB / 361.1 MB, free: 9.82 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.421e-05/0.1266, allocations: 102.8 kB / 361.2 MB, free: 9.695 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003093/0.1269, allocations: 298.5 kB / 361.5 MB, free: 9.395 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.571e-05/0.127, allocations: 29.7 kB / 361.5 MB, free: 9.359 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001447/0.1271, allocations: 199.5 kB / 361.7 MB, free: 9.16 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.848e-05/0.1272, allocations: 43.67 kB / 361.8 MB, free: 9.117 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.984e-05/0.1273, allocations: 53.78 kB / 361.8 MB, free: 9.055 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001275/0.1274, allocations: 342.8 kB / 362.1 MB, free: 8.711 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003312/0.1277, allocations: 112.1 kB / 362.3 MB, free: 8.602 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003936/0.1281, allocations: 209.7 kB / 362.5 MB, free: 8.352 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006814/0.1288, allocations: 320.6 kB / 362.8 MB, free: 7.992 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.1289, allocations: 4 kB / 362.8 MB, free: 7.988 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.00118/0.13, allocations: 471.7 kB / 363.2 MB, free: 7.512 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.463e-05/0.1301, allocations: 33.7 kB / 363.3 MB, free: 7.473 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.007e-06/0.1301, allocations: 4 kB / 363.3 MB, free: 7.469 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000372/0.1305, allocations: 88.86 kB / 363.4 MB, free: 7.379 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002208/0.1307, allocations: 55.89 kB / 363.4 MB, free: 7.324 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002992/0.1337, allocations: 2.056 MB / 365.5 MB, free: 5.129 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003408/0.1341, allocations: 59.8 kB / 365.5 MB, free: 5.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.472e-05/0.1341, allocations: 8 kB / 365.5 MB, free: 5.062 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (24): * Single equations (assignments): 22 * 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.000153/0.1343, allocations: 157.7 kB / 365.7 MB, free: 4.898 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.719e-05/0.1343, allocations: 23.72 kB / 365.7 MB, free: 4.875 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.375e-05/0.1344, allocations: 29.83 kB / 365.7 MB, free: 4.848 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.1344, allocations: 0 / 365.7 MB, free: 4.848 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.853e-06/0.1344, allocations: 0 / 365.7 MB, free: 4.848 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.519e-06/0.1344, allocations: 8 kB / 365.8 MB, free: 4.84 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002939/0.1347, allocations: 329.2 kB / 366.1 MB, free: 4.469 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.953e-06/0.1347, allocations: 0 / 366.1 MB, free: 4.469 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001369/0.1348, allocations: 27.97 kB / 366.1 MB, free: 4.441 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002763/0.1351, allocations: 76.94 kB / 366.2 MB, free: 4.363 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.084e-05/0.1352, allocations: 11.98 kB / 366.2 MB, free: 4.352 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002414/0.1376, allocations: 1.97 MB / 368.2 MB, free: 2.242 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.1376, allocations: 3.938 kB / 368.2 MB, free: 2.238 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001022/0.1386, allocations: 373.4 kB / 368.5 MB, free: 1.852 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.357e-05/0.1387, allocations: 96.83 kB / 368.6 MB, free: 1.738 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.98e-05/0.1388, allocations: 7.984 kB / 368.6 MB, free: 1.73 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002417/0.139, allocations: 35.91 kB / 368.7 MB, free: 1.695 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.095e-05/0.1391, allocations: 23.97 kB / 368.7 MB, free: 1.672 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.307e-05/0.1391, allocations: 0 / 368.7 MB, free: 1.672 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002053/0.1393, allocations: 206 kB / 368.9 MB, free: 1.473 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1393, allocations: 0 / 368.9 MB, free: 1.473 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004213/0.1398, allocations: 79.78 kB / 369 MB, free: 1.395 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.0001458/0.1399, allocations: 107.3 kB / 369.1 MB, free: 1.277 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001287/0.1412, allocations: 0.4939 MB / 369.6 MB, free: 0.7578 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.1412, allocations: 0 / 369.6 MB, free: 0.7578 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005001/0.1417, allocations: 251.1 kB / 369.8 MB, free: 0.5 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003444/0.1421, allocations: 47.31 kB / 369.9 MB, free: 468 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1549/0.297, allocations: 0.9125 MB / 370.8 MB, free: 25.44 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002124/0.2973, allocations: 0.7571 MB / 371.5 MB, free: 24.74 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001462/0.2974, allocations: 25.44 kB / 371.6 MB, free: 24.74 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.761e-05/0.2975, allocations: 24.72 kB / 371.6 MB, free: 24.73 MB / 302.1 MB Notification: Performance of SimCode: time 8.01e-07/0.2975, allocations: 0 / 371.6 MB, free: 24.73 MB / 302.1 MB Notification: Performance of Templates: time 0.009289/0.3068, allocations: 4.084 MB / 375.7 MB, free: 24.66 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/NonInvertingAmplifier/NonInvertingAmplifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches