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.001877/0.001877, allocations: 108.5 kB / 17.16 MB, free: 6.328 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.002489/0.00249, allocations: 198.9 kB / 18.08 MB, free: 5.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.578/2.578, allocations: 222.9 MB / 241.7 MB, free: 15.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001299/0.0013, allocations: 47.08 kB / 300.6 MB, free: 6.289 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/0.1139, allocations: 49.45 MB / 350.1 MB, free: 4.832 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier): time 0.005064/0.119, allocations: 2.963 MB / 353 MB, free: 1.848 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001608/0.1207, allocations: 0.7285 MB / 353.8 MB, free: 1.113 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002877/0.121, allocations: 7.938 kB / 353.8 MB, free: 1.105 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002307/0.1213, allocations: 35.75 kB / 353.8 MB, free: 1.07 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003029/0.1216, allocations: 91.31 kB / 353.9 MB, free: 0.9805 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003883/0.122, allocations: 99.91 kB / 354 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005382/0.1226, allocations: 386.4 kB / 354.4 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002791/0.1228, allocations: 111.8 kB / 354.5 MB, free: 404 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002324/0.1231, allocations: 135.4 kB / 354.6 MB, free: 268 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002385/0.1233, allocations: 159.2 kB / 354.8 MB, free: 108 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.464e-05/0.1234, allocations: 24 kB / 354.8 MB, free: 84 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.268e-05/0.1235, allocations: 23.94 kB / 354.8 MB, free: 60 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.934e-05/0.1236, allocations: 67.73 kB / 354.9 MB, free: 15.99 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001938/0.1238, allocations: 155.1 kB / 355 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003839/0.1242, allocations: 367.3 kB / 355.4 MB, free: 15.48 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.97e-06/0.1242, allocations: 0 / 355.4 MB, free: 15.48 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1242, allocations: 0 / 355.4 MB, free: 15.48 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.465e-05/0.1242, allocations: 0 / 355.4 MB, free: 15.48 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.001506/0.1257, allocations: 0.6692 MB / 356.1 MB, free: 14.75 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.418e-05/0.1258, allocations: 8.031 kB / 356.1 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001095/0.1259, allocations: 32.56 kB / 356.1 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004213/0.1263, allocations: 307.5 kB / 356.4 MB, free: 14.38 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.826e-05/0.1264, allocations: 24.94 kB / 356.4 MB, free: 14.35 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.802e-05/0.1265, allocations: 20.38 kB / 356.4 MB, free: 14.33 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007755/0.1272, allocations: 328 kB / 356.8 MB, free: 14 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.429e-05/0.1273, allocations: 4 kB / 356.8 MB, free: 14 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.352e-05/0.1273, allocations: 8 kB / 356.8 MB, free: 13.99 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.272e-05/0.1273, allocations: 8 kB / 356.8 MB, free: 13.98 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008958/0.1282, allocations: 286 kB / 357.1 MB, free: 13.7 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002128/0.1304, allocations: 1.15 MB / 358.2 MB, free: 12.47 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009068/0.1313, allocations: 246.6 kB / 358.5 MB, free: 12.22 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003551/0.1317, allocations: 112.7 kB / 358.6 MB, free: 12.11 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.74e-05/0.1317, allocations: 11.97 kB / 358.6 MB, free: 12.1 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000605/0.1323, allocations: 183.6 kB / 358.8 MB, free: 11.9 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.994e-06/0.1323, allocations: 0 / 358.8 MB, free: 11.9 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.00249/0.1348, allocations: 0.6628 MB / 359.4 MB, free: 11.21 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.402e-05/0.1349, allocations: 110.8 kB / 359.5 MB, free: 11.07 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003627/0.1353, allocations: 286.6 kB / 359.8 MB, free: 10.79 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.317e-05/0.1354, allocations: 33.7 kB / 359.8 MB, free: 10.75 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001642/0.1355, allocations: 199.5 kB / 360 MB, free: 10.55 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.226e-05/0.1356, allocations: 43.45 kB / 360.1 MB, free: 10.5 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001444/0.1358, allocations: 53.84 kB / 360.1 MB, free: 10.44 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001556/0.1359, allocations: 330.8 kB / 360.5 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003971/0.1363, allocations: 108.2 kB / 360.6 MB, free: 10 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004646/0.1368, allocations: 213.2 kB / 360.8 MB, free: 9.75 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007883/0.1376, allocations: 316.9 kB / 361.1 MB, free: 9.395 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.356e-06/0.1376, allocations: 0 / 361.1 MB, free: 9.395 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.00141/0.139, allocations: 490.7 kB / 361.6 MB, free: 8.902 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.213e-05/0.1391, allocations: 33.7 kB / 361.6 MB, free: 8.863 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.235e-06/0.1391, allocations: 0 / 361.6 MB, free: 8.863 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004247/0.1396, allocations: 92.8 kB / 361.7 MB, free: 8.77 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002339/0.1398, allocations: 47.91 kB / 361.7 MB, free: 8.723 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003199/0.143, allocations: 1.873 MB / 363.6 MB, free: 6.715 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004296/0.1435, allocations: 55.73 kB / 363.7 MB, free: 6.66 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.957e-05/0.1435, allocations: 16.06 kB / 363.7 MB, free: 6.645 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.0002201/0.1438, allocations: 149.7 kB / 363.8 MB, free: 6.488 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.215e-05/0.1438, allocations: 23.72 kB / 363.8 MB, free: 6.465 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.355e-05/0.1439, allocations: 25.83 kB / 363.9 MB, free: 6.438 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.1439, allocations: 0 / 363.9 MB, free: 6.438 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.685e-06/0.1439, allocations: 0 / 363.9 MB, free: 6.438 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.1439, allocations: 0 / 363.9 MB, free: 6.438 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003739/0.1443, allocations: 333.2 kB / 364.2 MB, free: 6.062 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.1443, allocations: 0 / 364.2 MB, free: 6.062 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001557/0.1445, allocations: 32.02 kB / 364.2 MB, free: 6.031 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003286/0.1448, allocations: 80.78 kB / 364.3 MB, free: 5.949 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.01e-05/0.1449, allocations: 4 kB / 364.3 MB, free: 5.945 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002602/0.1475, allocations: 1.787 MB / 366.1 MB, free: 4.027 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.1475, allocations: 4.062 kB / 366.1 MB, free: 4.023 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001235/0.1487, allocations: 368.4 kB / 366.5 MB, free: 3.645 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.879e-05/0.1489, allocations: 100.8 kB / 366.6 MB, free: 3.527 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.607e-05/0.1489, allocations: 8 kB / 366.6 MB, free: 3.52 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002805/0.1492, allocations: 31.95 kB / 366.6 MB, free: 3.488 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.45e-05/0.1493, allocations: 15.98 kB / 366.6 MB, free: 3.473 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.189e-05/0.1493, allocations: 11.98 kB / 366.6 MB, free: 3.461 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000253/0.1496, allocations: 202 kB / 366.8 MB, free: 3.266 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1496, allocations: 3.938 kB / 366.8 MB, free: 3.262 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005238/0.1501, allocations: 83.78 kB / 366.9 MB, free: 3.18 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.0001702/0.1503, allocations: 107.2 kB / 367 MB, free: 3.062 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00145/0.1518, allocations: 0.4905 MB / 367.5 MB, free: 2.547 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.987e-06/0.1518, allocations: 4.062 kB / 367.5 MB, free: 2.543 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000574/0.1524, allocations: 238.5 kB / 367.7 MB, free: 2.297 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004234/0.1528, allocations: 52.42 kB / 367.8 MB, free: 2.246 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003394/0.1562, allocations: 1.055 MB / 368.8 MB, free: 1.152 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003598/0.1566, allocations: 0.7521 MB / 369.6 MB, free: 384 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.771e-05/0.1567, allocations: 23.44 kB / 369.6 MB, free: 360 kB / 302.1 MB Notification: Performance of SimCode: time 9.72e-07/0.1567, allocations: 0 / 369.6 MB, free: 360 kB / 302.1 MB Notification: Performance of Templates: time 0.1718/0.3285, allocations: 4.745 MB / 374.4 MB, free: 24.61 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 -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